You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-api-machinery/3716-admission-webhook-match-conditions/README.md
+40-26Lines changed: 40 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,7 @@ be performed in the webhook, and are out of scope for this proposal.
261
261
262
262
**Risk: Attacker adds or changes a match condition to weaken an admission policy.**
263
263
264
-
This is does not represent a new threat, as doing so would require update access to the admission
264
+
This does not represent a new threat, as doing so would require update access to the admission
265
265
registration object, and with that permission an attacker could already disable the policy through
266
266
manipulating match rules, namespace selector, or object selector (or reroute the webhook entirely).
267
267
@@ -299,13 +299,9 @@ iterate as necessary.
299
299
#### Performance
300
300
301
301
The CEL expression evaluation will leverage the same [Resource Constraints](https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/2876-crd-validation-expression-language#resource-constraints)
302
-
used by CEL CRD Validation & CEL Admission Control. All the match conditions for a given webhook will
303
-
share the same resource budget.
302
+
used by CEL CRD Validation & CEL Admission Control. The runtime cost budgets are defined here [CEL Runtime Cost](https://github.com/kubernetes/kubernetes/blob/445869a59bdbd1c587b72b52c5da94c1d1c316a1/staging/src/k8s.io/apiserver/pkg/apis/cel/config.go#L22).
304
303
305
-
<<[UNRESOLVED resource constraints ]>>
306
-
_NON-BLOCKING for Alpha_
307
-
Details TBD.
308
-
<<[/UNRESOLVED]>>
304
+
The per call limit is shared with Validating Admission Policy CEL expressions and set at roughly 0.1 second for each expression evaluation call. The total budget per object (i.e. per ValidatingWebhook) for CEL match conditions is roughly .25 seconds and 1/4 the budget of Validating Admission Policy limit.
0 commit comments