-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: 58720: Ensure that the runtime mounts RO volumes read-only #18255
Conversation
|
/test unit |
@@ -273,7 +273,7 @@ func downwardAPIVolumePodForModeTest(name, filePath string, itemMode, defaultMod | |||
VolumeMounts: []v1.VolumeMount{ | |||
{ | |||
Name: "podinfo", | |||
MountPath: "/etc", | |||
MountPath: "/etc/podinfo", |
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.
thanks for fixing this! I noticed this while working on a flake for this test and was surprised when it overwrote /etc :P
@@ -56,8 +56,7 @@ spec: | |||
timeoutSeconds: 30 | |||
volumes: | |||
- name: kubernetes-dashboard-certs | |||
secret: | |||
secretName: kubernetes-dashboard-certs | |||
emptyDir: {} |
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.
does this work? does the dashboard create its own certs at start time?
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.
@joelsmith could you respond here?
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.
irrelevant for this pick.
@joelsmith could you check for failures if there is anything relevant? |
@smarterclayton could you approve this? |
/approve
|
/retest |
Since upstream PR is merged, is it ok to give lgtm here? @derekwaynecarr |
/approved |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, joelsmith, smarterclayton The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 18423, 18255, 18526, 18539, 18509). |
This is a backport of kubernetes/kubernetes#58720
This change makes it so that containers cannot write to secret, configMap, downwardAPI and projected volumes since the runtime will now mount them read-only. This change makes things less confusing for a user since any attempt to update a secret volume will result in an error rather than a successful change followed by a revert by the kubelet when the volume next syncs.
Which issue(s) this PR fixes
N/A
Release note: