Could we create a ConstraintTemplate for blocking ValidatingWebhookConfiguration with scope '*' #529
Unanswered
atulsmakkar
asked this question in
Gatekeeper
Replies: 1 comment 1 reply
-
The API group would be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Need to create a ConstraintTemplate for blocking ValidatingWebhookConfiguration with scope '*' and allowing only webhooks with "Namescaped" scope.
Need to have test case as well that blocks.
In my current scenario OPA Gatekeeper fails to block creation of ValidatingWebhookConfiguration with any scope, it simply creates ValidatingWebhookConfiguration.
Using this rego for Constraint template:
Constraints:
Beta Was this translation helpful? Give feedback.
All reactions