-
Notifications
You must be signed in to change notification settings - Fork 763
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
fix: add missing seccompProfile to comply with restricted policy #1493
Conversation
1f8317f
to
00fe2c9
Compare
Hi @hamidos, thanks for the PR. The change looks good. Can you fix the code-gen CI job? Below should probably fix it make operator-sdk controller-gen
make generate manifests bundle |
3c7348b
to
3fd0dbc
Compare
Hello @svghadi , Thank you for your feedback. |
Awesome. I will run some local tests to see if any other deployment needs seccompProfile. |
Ran some tests, the change looks good. We are still missing $ kubectl label --overwrite --dry-run=server ns test pod-security.kubernetes.io/enforce=restricted
Warning: existing pods in namespace "test" violate the new PodSecurity enforce level "restricted:latest"
Warning: keycloak-6b8bbb786d-zrssz: allowPrivilegeEscalation != false, unrestricted capabilities, runAsNonRoot != true, seccompProfile
namespace/test labeled (server dry run) The changes will probably need to be made in 2 places for keycloak:
|
Signed-off-by: hamidos <ed.hamido@gmail.com>
Hello @svghadi, |
Yes, sounds good. However, it seems that KUTTL doesn't support adding labels to the namespaces it automatically creates during tests, which happens for most of our tests. Maybe we could create a new test that manually creates a namespace with the required pod security labels, deploys an ArgoCD CR in it, and then runs the tests. |
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.
LGTM. Thanks @hamidos for the contribution.
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
…oproj-labs#1493) * fix: add missing seccompProfile to comply with restricted policy Signed-off-by: hamidos <ed.hamido@gmail.com> * Add kuttl e2e test Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> * Fix kuttl test Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> --------- Signed-off-by: hamidos <ed.hamido@gmail.com> Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> Co-authored-by: Siddhesh Ghadi <sghadi1203@gmail.com>
…oproj-labs#1493) * fix: add missing seccompProfile to comply with restricted policy Signed-off-by: hamidos <ed.hamido@gmail.com> * Add kuttl e2e test Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> * Fix kuttl test Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> --------- Signed-off-by: hamidos <ed.hamido@gmail.com> Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> Co-authored-by: Siddhesh Ghadi <sghadi1203@gmail.com>
What type of PR is this?
/kind bug
What does this PR do / why we need it:
Add missing seccompProfile to comply with restricted policy
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
#1492