Removed all potential debug password prints, both plaintext and encoded (#537)

pull/540/head
Sebastiaan Tammer 4 years ago committed by GitHub
parent 46f43764d2
commit b34a2f968d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,10 +13,10 @@ func GetPullOptions(imageName string) (types.ImagePullOptions, error) {
return types.ImagePullOptions{}, err
}
log.Debugf("Got auth value: %s", auth)
if auth == "" {
return types.ImagePullOptions{}, nil
}
log.Debugf("Got auth value")
return types.ImagePullOptions{
RegistryAuth: auth,

@ -36,7 +36,7 @@ func EncodedEnvAuth(ref string) (string, error) {
Username: username,
Password: password,
}
log.Debugf("Loaded auth credentials %s for %s", auth, ref)
log.Debugf("Loaded auth credentials for user %s on registry %s", auth.Username, ref)
return EncodeAuth(auth)
}
return "", errors.New("Registry auth environment variables (REPO_USER, REPO_PASS) not set")
@ -68,7 +68,7 @@ func EncodedConfigAuth(ref string) (string, error) {
log.Debugf("No credentials for %s in %s", server, configFile.Filename)
return "", nil
}
log.Debugf("Loaded auth credentials %s from %s", auth, configFile.Filename)
log.Debugf("Loaded auth credentials for user %s, on registry %s, from file %s", auth.Username, ref, configFile.Filename)
return EncodeAuth(auth)
}

Loading…
Cancel
Save