Skip to content
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

cli/config/credentials: move warning to fileStore #5259

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

thaJeztah
Copy link
Member

cli/config/credentials: move warning to fileStore

The fileStore itself is aware that it's insecure, so we can make it
responsible for printing the warning. It's not "perfect", as we use
os.Stderr unconditionally (not dockerCli.Err()), but probably won't
make a difference in most cases.

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 61.46%. Comparing base (fcefe44) to head (ab80ea3).
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5259      +/-   ##
==========================================
- Coverage   61.49%   61.46%   -0.03%     
==========================================
  Files         299      299              
  Lines       20822    20820       -2     
==========================================
- Hits        12804    12797       -7     
- Misses       7109     7112       +3     
- Partials      909      911       +2     

@thaJeztah thaJeztah self-assigned this Jul 18, 2024
The fileStore itself is aware that it's insecure, so we can make it
responsible for printing the warning. It's not "perfect", as we use
`os.Stderr` unconditionally (not `dockerCli.Err()`), but probably won't
make a difference in _most_ cases.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the move_file_warning branch from 6adc409 to ab80ea3 Compare July 18, 2024 23:42
@thaJeztah thaJeztah marked this pull request as ready for review July 18, 2024 23:42
@thaJeztah thaJeztah closed this Jul 19, 2024
@thaJeztah thaJeztah reopened this Jul 19, 2024
@thaJeztah thaJeztah closed this Jul 19, 2024
@thaJeztah thaJeztah reopened this Jul 19, 2024
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah
Copy link
Member Author

@laurazard good to merge this one? (it will require a rebase and changes in your PR)

@laurazard
Copy link
Member

Oh, yup! No worries.

@laurazard laurazard merged commit 8f20c9a into docker:master Jul 22, 2024
90 checks passed
@thaJeztah thaJeztah deleted the move_file_warning branch July 22, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants