-
Notifications
You must be signed in to change notification settings - Fork 451
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
Validate that containers run as non-root
#9640
Validate that containers run as non-root
#9640
Conversation
/lgtm |
LGTM label has been added. Git tree hash: 4fcdc376ac633feefd068cd324f2e4d0b7f70eb4
|
Thanks 😄 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oliver-goetz 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 |
@AleksandarSavchev: The following test failed, say
Full PR test history. Your PR dashboard. Command help for this repository. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
How to categorize this PR?
/area security quality
/kind enhancement
What this PR does / why we need it:
This PR enhances the
securityContext
of pods that already run asnon-root
with therunAsNonRoot
field set totrue
. This will force thekubelet
to validate that the containers in a pod are started with anon-root
user.This PR also modifies
fluent-operator
to run asnonroot
user & group65532
(id ofnonroot
user indistroless
images ref). Aiming to adhere to the principles of least privilege and reduce potential attack surface.Which issue(s) this PR fixes:
Fixes #7157
Special notes for your reviewer:
Release note: