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 validation check for policies that use filtered kinds #2163

Closed
JimBugwadia opened this issue Jul 19, 2021 · 2 comments
Closed

Add validation check for policies that use filtered kinds #2163

JimBugwadia opened this issue Jul 19, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@JimBugwadia
Copy link
Member

Is your feature request related to a problem? Please describe.

Kyverno allows filtering certain API kinds to optimize webhook processing.

However, users may create policies that use these types and not realize a filter is skipping policy execution.

Describe the solution you'd like

Kyverno should validate policies that use filtered kinds and provide a warning, or block them from being created.

If in the future we dynamically manage webhook registrations on a more granular basis (see: #1981), perhaps the static filtering can be removed and then this check will no longer be necessary.

Describe alternatives you've considered

--

Additional context

See discussion in the PR: kyverno/policies#81 (comment)

@chipzoller
Copy link
Member

Is this issue still relevant since dynamic webhooks are implemented?

@realshuting
Copy link
Member

No longer valid, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants