-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
adds aws ecr get-login-password
customization
#4874
adds aws ecr get-login-password
customization
#4874
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4874 +/- ##
===========================================
+ Coverage 93.93% 93.94% +<.01%
===========================================
Files 189 189
Lines 14511 14524 +13
===========================================
+ Hits 13631 13644 +13
Misses 880 880
Continue to review full report at Codecov.
|
8969480
to
784906d
Compare
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
as proposed in aws#4867, and previously discussed in aws#2875 (comment) aws#3687 (comment) this commit adds a new customization command for ECR that only returns the password to login to a registry. this approach is composable, is compatible with other container clients, allows use of functionality like Docker's --password-stdin flag, and is more resilient to changes in client APIs
784906d
to
00cfc2c
Compare
@matthew-russo First off, thank you for implementing this ❤️. I'm really happy to get rid of the warning. Reading through the PR, I noticed that |
The password that is returned is valid for any registry that your IAM principal has access to. We have updated our documentation to be more explicit about the authorization data that is returned in the https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html#registry_auth |
upgrading to v2 forced me to use this, but I get a very short token expiration... I can't push or pull..
|
Issue #, if available:
fixes #4867
Description of changes:
as proposed in #4867
and previously discussed in
#2875 (comment)
#3687 (comment)
this commit adds a new customization command for ECR that only
returns the password to login to a registry. this approach is
composable, is compatible with other container clients, allows
use of functionality like Docker's --password-stdin flag, and
is more resilient to changes in client APIs
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.