-
Notifications
You must be signed in to change notification settings - Fork 237
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 PSS Kyverno policies and others #241
Conversation
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
…een removed from upstream PSS list. Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
|
CI tests failing because tests being done with latest release and not latest CLI code from |
|
@zeborg all tests pass now. Thank you! |
|
@JimBugwadia CI is fixed and this is ready to merge |
|
@chipzoller Any reason not using |
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
No good reason other than at the time I was writing them it wasn't an issue. Is the suggestion here to just standardize on that now going forward, for anything under |
I think it makes sense, and base on docs, resources directly under The |
|
You're right, this should have been done. I will go through all PSS policies and update them. |
|
One minor nitpick as I've been going through these one-by-one for the Helm chart, I noticed so far many in baseline have 2 spaces indenting list elements but like |
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
|
I just pushed the |
|
Also, one thing to be aware of when porting these to the Helm chart. In baseline, the "disallow-host-ports-range" should NOT be wrapped in the chart, only "disallow-host-ports". They are mutually exclusive and the more strict one (the latter) should be used. |
|
I am also copying in Also one minor issue, the filename and directory for |
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
I would recommend dropping it because it was also dropped from the upstream PSS definitions. That's why I moved it to the
Thank you, I just fixed that. |
|
For - name: check-supplementalGroups
match:
any:
- resources:
kinds:
- Pod
preconditions:
- key: "{{`{{ request.object.spec.securityContext.supplementalGroups.length(@) }}`}}"
operator: GreaterThan
value: 0
validate:
message: >-
Disallow the the root group in spec.securityContext.supplementalGroups.
deny:
conditions:
all:
- key: "{{`{{ request.object.spec.securityContext.supplementalGroups[*].to_string(@) }}`}}"
operator: NotIn
value:
- '0' |
…label" to audit Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
|
Ready for final review. |
Related issue
Closes #239
Closes #229
Closes #189
Closes #171
Closes #175
Closes #195
Closes #238
Closes #218
Closes #231
Closes #51
Closes #191
Closes #192
Closes #193
Closes #196
Closes #197
Closes #213
Closes #228
Closes #226
Proposed Changes
This PR brings the current state of Kubernetes Pod Security Standards implemented as Kyverno policies in addition to a number of fixes, enhancements, and clean-up as well as net new policies.
New Policies
Other
Checklist
Further Comments