-
Notifications
You must be signed in to change notification settings - Fork 148
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
use strict security context #155
Conversation
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! Just need to bump the chart versions and it's good to go.
1616da9
to
8e31d84
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.
Do you mind reverting the auto whitespace changes?
Can do, all of them or just some? I noticed this project doesn't seem to have a standard. |
a93b339
to
9bf3c22
Compare
Ones you adjusted are good. Thanks. Yeah, this is an inherited project, so I'm sure it's quite inconsistent. |
Looks like CI fails because there is nothing mounted to the required volume Is it okay for this to be an ephemeral directory, or does it require persistence? |
Use a strict security context by default to comply with the restricted pod security policy. Fixes itzg#154
Ephemeral is totally fine. I guess that chart hasn't been re-built in a long time. |
Thanks, all looks good now I think! |
Ready for me to merge? |
Yep, all looks good to me. |
runAsGroup: 3000 | ||
runAsNonRoot: true | ||
fsGroup: 2000 |
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.
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.
This is standard as recommended by the official Kubernetes documentation.
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
uid=1000 gid=3000 groups=2000
The idea is that there is as little permission as possible.
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 for following up.
Use a strict security context by default to comply with the restricted pod security policy.
Fixes #154