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

[2.11] Avoid permissions errors on Windows #398

Conversation

HarrisonWAffel
Copy link
Contributor

Issue: rancher/rancher#46769

This PR updates GetFilePermissionWarnings to ignore Windows platforms. The current file permission checks are not appropriate for Windows as Go does not handle permission bits in the same way as it does on Linux. For Windows, Go will only use the owner bit, effectively turning 600 into 666. Access Control Lists are the intended means of securing files, and the cli currently sets the ACLs properly, only allowing access to the local system and administrators.

Copy link
Contributor

@crobby crobby left a comment

Choose a reason for hiding this comment

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

Sounds reasonable. Thanks for the explanation.

@HarrisonWAffel HarrisonWAffel requested a review from a team November 15, 2024 17:41
@HarrisonWAffel HarrisonWAffel changed the title [2.10.1] Avoid permissions errors on Windows [2.11] Avoid permissions errors on Windows Nov 15, 2024
@HarrisonWAffel HarrisonWAffel merged commit f0fe6d3 into rancher:main Dec 6, 2024
1 check passed
@HarrisonWAffel HarrisonWAffel deleted the windows-invalid-permissions-errors branch December 6, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants