Skip to content

Windows: skip permissions check on key#1968

Merged
vdemeester merged 1 commit intodocker:masterfrom
thaJeztah:skip_windows_permissions_check
Jul 5, 2019
Merged

Windows: skip permissions check on key#1968
vdemeester merged 1 commit intodocker:masterfrom
thaJeztah:skip_windows_permissions_check

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

fixes #1696

This code was attempting to check Linux file permissions to determine if the key was accessible by other users, which doesn't work, and therefore prevented users on Windows to load keys.

Skipping this check on Windows (correspinding tests were already skipped).

- Description for the changelog

* Fix docker refusing to load key from delegation.key on Windows

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

This code was attempting to check Linux file permissions
to determine if the key was accessible by other users, which
doesn't work, and therefore prevented users on Windows
to load keys.

Skipping this check on Windows (correspinding tests
were already skipped).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Copy Markdown
Member Author

ping @justincormack @riyazdf ptal

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1968 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
+ Coverage   56.72%   56.73%   +<.01%     
==========================================
  Files         310      310              
  Lines       21800    21801       +1     
==========================================
+ Hits        12367    12368       +1     
  Misses       8518     8518              
  Partials      915      915

1 similar comment
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1968 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
+ Coverage   56.72%   56.73%   +<.01%     
==========================================
  Files         310      310              
  Lines       21800    21801       +1     
==========================================
+ Hits        12367    12368       +1     
  Misses       8518     8518              
  Partials      915      915

Copy link
Copy Markdown
Contributor

@silvin-lubecki silvin-lubecki 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
Copy Markdown
Member Author

ping @vdemeester ptal

Copy link
Copy Markdown
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🍷

@vdemeester vdemeester merged commit c9db0fe into docker:master Jul 5, 2019
@GordonTheTurtle GordonTheTurtle added this to the 19.09.0 milestone Jul 5, 2019
@thaJeztah thaJeztah deleted the skip_windows_permissions_check branch July 5, 2019 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows refusing to load key from delegation.key: private key file delegation.key must not be readable or writable by others

5 participants