-
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
eval aws ecr get-login should provide option to use password-stdin #3687
Labels
Comments
The trick, potentially, is windows support, so something like that last bit may be necessary. In any case we should definitely support the stdin password feature. |
Duplicated #2875 |
matthew-russo
pushed a commit
to matthew-russo/aws-cli
that referenced
this issue
Jan 24, 2020
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
matthew-russo
pushed a commit
to matthew-russo/aws-cli
that referenced
this issue
Jan 24, 2020
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
matthew-russo
pushed a commit
to matthew-russo/aws-cli
that referenced
this issue
Jan 24, 2020
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
matthew-russo
pushed a commit
to matthew-russo/aws-cli
that referenced
this issue
Jan 24, 2020
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
matthew-russo
pushed a commit
to matthew-russo/aws-cli
that referenced
this issue
Jan 24, 2020
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
The instructions are pretty clear that
aws ecr get-login
prints credentials. Since these credentials are designed to be used in aneval
context, the password can be observed elsewhere on the machine.But recent versions of docker support a more secure approach using
--password-stdin
. You can use it now, but it's cumbersome:Or as a one-liner if you feel like manually composing the endpoint url:
aws could support clean, secure docker login by providing more machine-parseable output, by providing a docker credentials-helper, or by providing the password separately from the rest of the command as in:
The text was updated successfully, but these errors were encountered: