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

pull/540/head
Sebastiaan Tammer 5 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 return types.ImagePullOptions{}, err
} }
log.Debugf("Got auth value: %s", auth)
if auth == "" { if auth == "" {
return types.ImagePullOptions{}, nil return types.ImagePullOptions{}, nil
} }
log.Debugf("Got auth value")
return types.ImagePullOptions{ return types.ImagePullOptions{
RegistryAuth: auth, RegistryAuth: auth,

@ -36,7 +36,7 @@ func EncodedEnvAuth(ref string) (string, error) {
Username: username, Username: username,
Password: password, 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 EncodeAuth(auth)
} }
return "", errors.New("Registry auth environment variables (REPO_USER, REPO_PASS) not set") 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) log.Debugf("No credentials for %s in %s", server, configFile.Filename)
return "", nil 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) return EncodeAuth(auth)
} }

Loading…
Cancel
Save