-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update default container security context #2265
Conversation
/assign @jacobsalway @ImpSy |
Might need to do some investigation to map out all the disk usage of Might not be worth it if this isn't a common Kubernetes cluster security requirement in the same way that running as non-root and dropping all capabilities are. Related PR: #2219 |
Yeah I feel like But like the PR #2219 propose we could mount a volume on /tmp and use |
Could push the user and group directives down to the Dockerfile rather than the container security context. I'm not sold on read-only FS because any temporary disk usage that isn't on a volume could cause a panic but it's an enhancement we can make later down the line if requested/it's a common security requirement or implemented in the other PR. |
I have pushed the user and group directives down to the Dockerfile. Agree on that we would better implement the readOnlyRootFileSystem in a dedicated PR. |
Signed-off-by: Yi Chen <[email protected]>
Signed-off-by: Yi Chen <[email protected]>
Signed-off-by: Yi Chen <[email protected]>
5bb94cf
to
406d917
Compare
Signed-off-by: Yi Chen <[email protected]>
406d917
to
43937ce
Compare
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
Works for me in local testing on Kind. As you said let's do readOnlyRootFilesystem: true
in a separate PR.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ChenYi015, jacobsalway 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 |
majority of these local files created don't need to be stored permanently correct? |
Purpose of this PR
Proposed changes:
Change Category
Indicate the type of change by marking the applicable boxes:
Rationale
Checklist
Before submitting your PR, please review the following:
Additional Notes