From 3c45aba52add398ac40b48c5d6a66e2aaf020042 Mon Sep 17 00:00:00 2001 From: Puskar Basu <45908484+pskrbasu@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:38:39 +0530 Subject: [PATCH] Get credentials from the platform-default native credentials store for turbot hosted private plugins. Closes #643 --- ociinstaller/oci_downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ociinstaller/oci_downloader.go b/ociinstaller/oci_downloader.go index a9d761c7..be1b0000 100644 --- a/ociinstaller/oci_downloader.go +++ b/ociinstaller/oci_downloader.go @@ -77,8 +77,8 @@ func (o *OciDownloader[I, C]) Pull(ctx context.Context, ref string, mediaTypes [ return nil, nil, nil, nil, err } - // Get credentials from the docker credentials store - storeOpts := credentials.StoreOptions{} + // Get credentials from the platform-default native credentials store + storeOpts := credentials.StoreOptions{DetectDefaultNativeStore: true} var credStore *credentials.DynamicStore if strings.HasPrefix(ref, o.baseImageRef) { credStore, err = credentials.NewStore("", storeOpts)