-
Notifications
You must be signed in to change notification settings - Fork 553
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
feat: integrate Alibaba Cloud Container Registry cred helper #2008
feat: integrate Alibaba Cloud Container Registry cred helper #2008
Conversation
85b58a1
to
1024cf4
Compare
Integrate a new keychain to support Alibaba Cloud Container Registry when run with the `--k8s-keychain` flag. Resolves: sigstore#2007 Signed-off-by: mozillazg <[email protected]>
1024cf4
to
d1ac93c
Compare
Codecov Report
@@ Coverage Diff @@
## main #2008 +/- ##
==========================================
+ Coverage 26.03% 26.69% +0.65%
==========================================
Files 131 131
Lines 7689 7690 +1
==========================================
+ Hits 2002 2053 +51
+ Misses 5445 5376 -69
- Partials 242 261 +19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: mozillazg <[email protected]>
@imjasonh Anything I can help with to get this PR approved? |
cmd/cosign/cli/options/registry.go
Outdated
@@ -85,6 +86,7 @@ func (o *RegistryOptions) GetRegistryClientOpts(ctx context.Context) []remote.Op | |||
google.Keychain, | |||
authn.NewKeychainFromHelper(ecr.NewECRHelper(ecr.WithLogger(ioutil.Discard))), | |||
authn.NewKeychainFromHelper(credhelper.NewACRCredentialsHelper()), | |||
authn.NewKeychainFromHelper(alibabaacr.NewACRHelper().WithLoggerOut(ioutil.Discard)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really your responsibility, but I'd like to document this behavior a little better in general.
Along with that, the --k8s-keychain
flag that controls this is somewhat poorly named -- it always has been, but it's especially confusing if we add a cred helper that isn't included in the standard k8s cred helpers, and it'll only get worse if we add more in the future.
Again, this isn't really your fault, and I don't think we need to change anything in this PR, just noting it for whomever decides to take this on in the future (likely me).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we'll need approval from owners to get it merged though.
…-keychain Signed-off-by: mozillazg <[email protected]>
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Signed-off-by: mozillazg <[email protected]>
@dlorenc ping~ |
Signed-off-by: mozillazg <[email protected]>
Summary
Integrate a new keychain to support Alibaba Cloud Container Registry.
Ticket Link
Fixes #2007
Release Note