You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use default keychain to resolve OCI credentials (#8274)
The ECR credential helper stopped working for one of our on-prem users
after they switched from podman to OCI. This is because `oci.Resolve()`
doesn't respect credential helpers.
This PR enables the default keychain in `oci.Resolve()` (behind a flag)
so that credential helpers will work. The default keychain respects
commonly used container auth config files, including
`.docker/config.json` and podman's
`$XDG_RUNTIME_DIR/containers/auth.json`.
The customer was specifically trying to use
`~/.config/containers/auth.json` which doesn't quite work after this PR,
but will work if we either patch
google/go-containerregistry#2052 or if the
customer switches to `~/.docker/config.json` instead (that file is
generally the least common denominator and is supported by docker,
podman, and now oci after this PR).
The plan is to either enable this new flag by default (but make sure
it's disabled for our cloud executors), or just enable it in the helm
charts.
defaultKeychainEnabled=flag.Bool("executor.container_registry_default_keychain_enabled", false, "Enable the default container registry keychain, respecting both docker configs and podman configs.")
0 commit comments