fix: remove logging of credentials

This commit is contained in:
nils måsén 2023-01-22 09:24:46 +01:00
parent c16ac967c5
commit 4a09d028df
4 changed files with 19 additions and 12 deletions

View file

@ -91,7 +91,8 @@ func GetBearerHeader(challenge string, img string, registryAuth string) (string,
if registryAuth != "" {
logrus.Debug("Credentials found.")
logrus.Tracef("Credentials: %v", registryAuth)
// CREDENTIAL: Uncomment to log registry credentials
// logrus.Tracef("Credentials: %v", registryAuth)
r.Header.Add("Authorization", fmt.Sprintf("Basic %s", registryAuth))
} else {
logrus.Debug("No credentials found.")