UPSTREAM: 58720: Ensure that the runtime mounts RO volumes read-only#18255
UPSTREAM: 58720: Ensure that the runtime mounts RO volumes read-only#18255openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
|
|
/test unit |
| { | ||
| Name: "podinfo", | ||
| MountPath: "/etc", | ||
| MountPath: "/etc/podinfo", |
There was a problem hiding this comment.
thanks for fixing this! I noticed this while working on a flake for this test and was surprised when it overwrote /etc :P
| - name: kubernetes-dashboard-certs | ||
| secret: | ||
| secretName: kubernetes-dashboard-certs | ||
| emptyDir: {} |
There was a problem hiding this comment.
does this work? does the dashboard create its own certs at start time?
There was a problem hiding this comment.
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. DetailsNeeds 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: