-
Notifications
You must be signed in to change notification settings - Fork 253
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
[Sample] Add require-run-as-nonroot policy that use CEL expressions #824
Comments
The Slack thread in reference seems to be here, but I don't see any follow-up on your part. Would like to see how we can resolve and get this in with the objective being the complete set of PSS policies implemented as CEL subrules. |
I've re-added @MariamFahmy98 's policy from 853bff9#diff-3416b7bb0c4cce31c5d5833e936ec552ea9d1426fadb6f2ec3b81bce4cb910a8 together with tests from |
Feel free to create a PR that adds the test. |
Add an additional test where securityContext is present but runAsNonRoot is not. Fixes: kyverno#824 Signed-off-by: jayme-github <[email protected]>
Add an additional test where securityContext is present but runAsNonRoot is not. Fixes: kyverno#824 Signed-off-by: jayme-github <[email protected]>
* Add require-run-as-nonroot policy that use CEL expressions Add an additional test where securityContext is present but runAsNonRoot is not. Fixes: #824 Signed-off-by: jayme-github <[email protected]> * Fix rule name to match policy name Signed-off-by: jayme-github <[email protected]> --------- Signed-off-by: jayme-github <[email protected]> Co-authored-by: Chip Zoller <[email protected]>
Problem Statement
Currently, all PSS policies are written in CEL expressions except the
require-run-as-nonroot
policy. We need to include it as well.Refer to this comment, for more information.
Solution Description
N/A
Example "Good" Resource
No response
Example "Bad" Resource
No response
Other Comments
No response
Slack discussion
No response
Troubleshooting
The text was updated successfully, but these errors were encountered: