-
Notifications
You must be signed in to change notification settings - Fork 145
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: Update examples for mount permissions to 0775 #2310
base: master
Are you sure you want to change the base?
Conversation
Welcome @m-anyac! |
Hi @m-anyac. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
pkg/azurefile/azurefile_options.go
Outdated
@@ -70,7 +70,7 @@ func (o *DriverOptions) AddFlags() *flag.FlagSet { | |||
fs.BoolVar(&o.EnableGetVolumeStats, "enable-get-volume-stats", true, "allow GET_VOLUME_STATS on agent node") | |||
fs.BoolVar(&o.EnableKataCCMount, "enable-kata-cc-mount", false, "enable Kata Confidential Containers mount") | |||
fs.BoolVar(&o.AppendMountErrorHelpLink, "append-mount-error-help-link", true, "Whether to include a link for help with mount errors when a mount error occurs.") | |||
fs.Uint64Var(&o.MountPermissions, "mount-permissions", 0777, "mounted folder permissions") | |||
fs.Uint64Var(&o.MountPermissions, "mount-permissions", 0775, "mounted folder permissions") |
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.
I think this is a breaking change. If I have an app that counts with 777 as the default and I update to this code, my application breaks. This needs to be announced properly, at least with a "breaking change" warning in the release notes.
I would personally also bump the major version, but I am not sure what are rules in this repo.
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.
Hey Jan, thanks for pointing this out. It works on my end with 777. Could you provide more details about the crash, such as any error messages or related information?
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.
@edreed This could be breaking change as we are making the permissions more restrictive. Is it a hard requirement to move to 0775 as default?
Should we just update the storageclass and other examples, or should we make this code change and mention in the release notes so that the users are aware?
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.
@jsafrane this will revert to 777 thanks
/ok-to-test |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: m-anyac The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi Andy @andyzhangx, could I get review from you? |
@m-anyac |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Update examples for mount permissions of directory and file to 0775
Fix install document
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: