Skip to content
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

Please fix optional check for seccomp #590

Closed
wargamez opened this issue Mar 17, 2024 · 2 comments · Fixed by #631
Closed

Please fix optional check for seccomp #590

wargamez opened this issue Mar 17, 2024 · 2 comments · Fixed by #631

Comments

@wargamez
Copy link

It seems the optional check for seccomp only looks at some annotation (Which I am not sure is the right way to look for this). Kubernetes documentations says this should be set in securityContext or podSecurityContext and seems kubeaudit thinks the same. So even if I have this set like that (Without annotation, but in Context) kubescore is giving a warning.
Ref: https://github.com/Shopify/kubeaudit/blob/main/docs/auditors/seccomp.md and https://kubernetes.io/docs/tutorials/security/seccomp/

Also applying dry-run label on migration from psp to restricted psa the warining on not set vanishes when set as part of any securityContext...

/E

@kmarteaux
Copy link
Contributor

@zegl - I will update the seccomp check to behave as @wargamez describes. I recently got tripped up on the same behavior.

@zegl
Copy link
Owner

zegl commented Nov 7, 2024

@kmarteaux Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants