From dd75d7ca15a15b665972db1d09f9ad2b18f17be0 Mon Sep 17 00:00:00 2001 From: nemezo <107478254+nemezo@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:25:18 +0100 Subject: [PATCH] re-add DefaultAuthHandler comments --- pkg/registry/registry.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/registry/registry.go b/pkg/registry/registry.go index cb46281..ef33ea3 100644 --- a/pkg/registry/registry.go +++ b/pkg/registry/registry.go @@ -31,6 +31,9 @@ func GetPullOptions(imageName string) (image.PullOptions, error) { }, nil } +// DefaultAuthHandler will be invoked if an AuthConfig is rejected +// It could be used to return a new value for the "X-Registry-Auth" authentication header, +// but there's no point trying again with the same value as used in AuthConfig func DefaultAuthHandler(ctx context.Context) (string, error) { log.Debug("Authentication request was rejected. Trying again without authentication") return "", nil