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

add restrict-service-account sample policy #30

Merged
merged 1 commit into from
Mar 27, 2021
Merged

add restrict-service-account sample policy #30

merged 1 commit into from
Mar 27, 2021

Conversation

soeirosantos
Copy link
Contributor

Related to kyverno/kyverno#1619

I did a few tests and this approach seems straightforward to me - not sure if there are any gotchas. Notice that the first rule could be optional but in a real-world scenario, I'd like to have it in place to prevent that the pod could be created by a controller using the default service account. We may consider removing the first rule to keep the sample more concise. I'm intentionally leaving init containers out of scope.

Signed-off-by: Romulo Santos <soeirosantos@gmail.com>
@JimBugwadia JimBugwadia merged commit 8b7b5f5 into kyverno:main Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants