-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: local mode printing of credentials during docker login closes #2180 #3014
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
fix: local mode printing of credentials during docker login closes #2180 #3014
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3014 +/- ##
=======================================
Coverage 89.33% 89.33%
=======================================
Files 196 196
Lines 16645 16646 +1
=======================================
+ Hits 14870 14871 +1
Misses 1775 1775
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Forgot the None handling...will update |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
fbc5934
to
2810b03
Compare
Now it will pipe the output to stdout directly. A failed login looks like this (replace with ecr repo name):
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
2810b03
to
e64206f
Compare
e64206f
to
39b74cc
Compare
Not sure how to handle black here. Installed 22.3.0 and it wants to reformat everything. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #, if available:
#2180
Description of changes:
No longer print token during login. Feel free to make any changes needed directly.
Sorry about the formatting changes, black really wanted those unrelated lines formatted and it seems to be right with
-l 100
.Testing done:
Tested locally, this likely should be validated in notebook environments to ensure docker behaves the same there. It should, since docker warns about passing of credentials in an insecure manner and recommends doing this. I frequently docker login this way when testing images in ci.
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.