-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow users to set containers[*].securityContext.runAsGroup #12003
Conversation
6d58764
to
9063864
Compare
Codecov Report
@@ Coverage Diff @@
## main #12003 +/- ##
==========================================
- Coverage 87.54% 87.53% -0.02%
==========================================
Files 196 196
Lines 9506 9503 -3
==========================================
- Hits 8322 8318 -4
- Misses 912 913 +1
Partials 272 272
Continue to review full report at Codecov.
|
…tion Most of them you can set and we shouldn't advertise setting RunAsNonRoot=false since it behaves the same when the field is not set
/retest |
/assign @julz @markusthoemmes |
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.
LGTM but given that the discussion seems to still be open want to let others weigh in
if in.RunAsNonRoot != nil && *in.RunAsNonRoot { | ||
out.RunAsNonRoot = in.RunAsNonRoot | ||
} |
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.
IIRC we had some reason to only allow true
through here. You sure that's not necessary?
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.
Left a comment below regarding this
// RunAsNonRoot when unset behaves the same way as false
// We do want the ability for folks to set this value to true
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 we were worried that people may have defaulted runAsNonRoot to true, in which case allowing it to be false would be a security regression. I think the PSP doesn't allow you to default runAsNonRoot though (it just has a MustRunAsNonRoot setting instead) so this might be fine.
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.
.. in fact it's a straight boolean and not a pointer, so it can't really be defaulted any way other than false
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.
/lgtm
/hold to check @markusthoemmes is OK with this too
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, julz 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 |
/unhold me fine. |
Part of: #9067
Release Note