-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support env vars for registry auth when executing kp import
#251
Comments
kp import
kp import
commands
kp import
commandskp import
kp import
kp import
Thinking out loud here, but shouldn't this extend to any place we use a keychain to interact with the registry in kp? I think it might be confusing if we only support these envs in one of the commands that reach out to to the registry |
Great idea. I think we could do this anywhere keychain := authn.NewMultiKeychain(
authn.NewKeychainFromHelper(
importpkg.NewCredHelperFromEnvVars(envVarRegistryUrl, envVarRegistryUser, envVarRegistryPassword)),
defaultKeychain,
)
// maybe just:
//
// keychain := secret.NewDefaultEnvVarKeychain()
//
// which would also move the CredHelper out of helpers.go and into kpack-cli/pkg/secret/helpers.go (or credhelper.go) The following files would be affected: image/update_factory.go |
perhaps |
When authenticating against registries during
kp import
:The text was updated successfully, but these errors were encountered: