-
Notifications
You must be signed in to change notification settings - Fork 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
Specify runAsNonRoot
in daemon-set
manifests
#3925
Conversation
e99ad53
to
a46303e
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.
Thanks @sigv !
Codecov Report
@@ Coverage Diff @@
## main #3925 +/- ##
==========================================
- Coverage 51.82% 51.79% -0.04%
==========================================
Files 59 59
Lines 16697 16697
==========================================
- Hits 8654 8648 -6
- Misses 7745 7749 +4
- Partials 298 300 +2 see 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
a798d23
to
bd617ab
Compare
This is a no-op change. It aligns the `daemon-set` manifests to match the `deployment` manifests. Both of these currently specify an explicit user ID to run as, therefore the container is guaranteed to be run as non-root. This `runAsNonRoot: true` instruction would come in as important if the chart no longer specifies `runAsUser`, and someone is packaging their own image without a USER directive in the Dockerfile. Removing the `runAsUser` parameter could be useful as to allow OpenShift to override the UID, in a later change.
bd617ab
to
d5670d9
Compare
@lucacome, would it be possible to have a second set of eyes on this PR, so it's not stuck with a partial review? 👀🤞🏻 |
Thank you! 🙏🏻 |
Proposed changes
This is a no-op change. It aligns the
daemon-set
manifests to match thedeployment
manifests. Both of these currently specify an explicit user ID to run as, therefore the container is guaranteed to be run as non-root.This
runAsNonRoot: true
instruction would come in as important if the chart no longer specifiesrunAsUser
, and someone is packaging their own image without a USER directive in the Dockerfile. Removing therunAsUser
parameter could be useful as to allow OpenShift to override the UID, in a later change.This PR aligns the
deployments/daemon-set/
files to match all following related files:deployments/deployment/nginx-ingress.yaml
deployments/deployment/nginx-plus-ingress.yaml
deployments/helm-chart/templates/controller-daemonset.yaml
deployments/helm-chart/templates/controller-deployment.yaml
Checklist
Before creating a PR, run through this checklist and mark each as complete.