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: updated config file permission requirements for windows (#9666) #9732
fix: updated config file permission requirements for windows (#9666) #9732
Conversation
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
…pdate_windows_permissions
Codecov Report
@@ Coverage Diff @@
## master #9732 +/- ##
=======================================
Coverage 45.85% 45.85%
=======================================
Files 226 227 +1
Lines 26795 26795
=======================================
Hits 12286 12286
Misses 12840 12840
Partials 1669 1669
Continue to review full report at Codecov.
|
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.
Thank you!
…pdate_windows_permissions
@@ -1,3 +1,5 @@ | |||
//go:build !windows |
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.
Can we have an equivalent test for windows?
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.
From Slack:
I actually did try to create windows only tests but I just couldn't manage to set the permission properly with golang it just won't set it to something other than 0444 or 0666
lgtm. :-)
PR fixes v2.4 regression. Adding cherry-pick label. |
* fix: reduced config file permission restriction on windows Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * fix: updated localconfig tests to check error Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
Cherry-picked onto release-2.4 for release with 2.4.2. |
Fixes #9666
Fixes #9702
This PR updates the permission requirements for windows to 0444 or 0666 instead of 0400 and 0600. The config file produced by argocd cli on windows always appears to be having 0666 permission this is probably due to some limitations on windows acl, hence this PR updates the requirement specifically for windows for 0666 or 0444 permission instead of 0400/0600.
Checklist: