-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Change default filestore permissions to 0700 #129214
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tallclair The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @haircommander @marosset |
/triage accepted |
/lgtm makes sense to me! |
LGTM label has been added. Git tree hash: 9868de823b299d68ffed6214792119b9948230ab
|
@ffromani can you think of any risks here? |
Are we sure this change isn't visible to cluster admins? If it is, we should changelog it. |
Missed a case in my original analysis of this: #129217 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Change the default directory permissions used by
pkg/kubelet/util/store/filestore.go
from0755
to0700
. This utility is only used for storing Kubelet state, through either checkpoint_manager or usersns_manager, so there don't need to be any other readers.This change is mainly to protect windows kubelets, which perform chmod on the target directory of
MkdirAll
, whether or not it's created (kubernetes/pkg/util/filesystem/util_windows.go
Line 102 in ce31c0f
Fixes #128897
Does this PR introduce a user-facing change?
/sig node
/priority important-soon
/milestone v1.33