From cbe9ab87fa03d284ae1935eabf4d357c3de3abfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Sun, 20 Dec 2020 19:23:49 +0100 Subject: [PATCH] move secret value "credentials" to trace log (#707) --- pkg/registry/auth/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/registry/auth/auth.go b/pkg/registry/auth/auth.go index 1596aca..3b3d088 100644 --- a/pkg/registry/auth/auth.go +++ b/pkg/registry/auth/auth.go @@ -89,7 +89,8 @@ func GetBearerHeader(challenge string, img string, err error, registryAuth strin } if registryAuth != "" { - logrus.WithField("credentials", registryAuth).Debug("Credentials found.") + logrus.Debug("Credentials found.") + logrus.Tracef("Credentials: %v", registryAuth) r.Header.Add("Authorization", fmt.Sprintf("Basic %s", registryAuth)) } else { logrus.Debug("No credentials found.")