-
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
Make ConfigMap volume readable as non-root #23793
Conversation
Labelling this PR as size/L |
GCE e2e build/test passed for commit e4fee9396e0fdc63696e9474522e821c651c53d9. |
e4fee93
to
fecffcf
Compare
@@ -341,6 +341,12 @@ func (w *AtomicWriter) newTimestampDir() (string, error) { | |||
return "", err | |||
} | |||
|
|||
err = os.Chmod(tsDir, 0655) |
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.
rw- r-x r-x
Shouldn't this be 0755 ?
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.
We could get away with 0655 since owner is always going to be root and will have dac override capability, but 0755 is more correct, probably.
Set yourself a release note label and feel free to self-LGTM. Looks good just a wrong (IMO) mode value. |
fecffcf
to
3a4992c
Compare
GCE e2e build/test passed for commit fecffcf00fe109b8e2637c5cba224679a7d5cbff. |
GCE e2e build/test passed for commit 3a4992cee3ce6eadd855297dced5b5ab58ec3974. |
I opened #23825 to discuss whether this should be cherry-picked (IIUC can't cherry-pick a PR without a corresponding issue in v1.2 milestone). |
3a4992c
to
33081fb
Compare
33081fb
to
e838ff2
Compare
GCE e2e build/test passed for commit 33081fb2b94ae196777f0254cad5c4a66bbf5bea. |
GCE e2e build/test passed for commit e838ff2. |
GCE e2e build/test failed for commit e838ff2. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
Just rolled this on a local cluster and it works! Thanks @pmorie! www-data@config-test:/$ ls -l /etc/config/..data/
total 8
-rw-r--r-- 1 root root 5 Apr 6 00:38 example.property.1
-rw-r--r-- 1 root root 5 Apr 6 00:38 example.property.2 |
@nickschuch thanks for the test, glad it worked for you! |
GCE e2e build/test passed for commit e838ff2. |
By the power vested in me by Tim in #23793 (comment), I declare this PR to LGTM. |
@k8s-oncall: Manual merge, please. I'd like this on master for a little while before we cherrypick. |
…3793-upstream-release-1.2 Automated cherry pick of #23793
Commit found in the "release-1.2" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…pick-of-#23793-upstream-release-1.2 Automated cherry pick of kubernetes#23793
…pick-of-#23793-upstream-release-1.2 Automated cherry pick of kubernetes#23793
Found by @mikedanese
cc @thockin