-
Notifications
You must be signed in to change notification settings - Fork 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
feat: use non-root user for base-image #4728
Conversation
Welcome @moolen! |
Is there something left to do on this? |
Hey @maltejk 😁! Actually i need to set the uid to make it work. I'll commit that later and mark the pr as ready. |
There is no need to use the root user. This allows the user to comply with pod security standards. Signed-off-by: Moritz Johner <[email protected]>
/assign @feiskyer |
@feiskyer did you find some time to look into this yet? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
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.
sorry, didn't notice this PR
the changes LGTM
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, moolen 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 |
feat: use non-root user for base-image
There is no need to use the root user. This allows the user to comply with pod security standards.
It turns out that the
nonroot
image has thecwd
set to/home/nonroot
whereaslatest
is rooted in/
🤷 .This is important because the helm chart uses
./cluster-autoscaler
as command. Keeping the same cwd seems like the safest option to me.Which component this PR applies to?
cluster-autoscaler
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR makes infosec happy 😃
Which issue(s) this PR fixes:
Fixes #3705
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: