Skip to content

Commit 5d96814

Browse files
committed
fixup! KEP-3221: update kep
Signed-off-by: Nabarun Pal <[email protected]>
1 parent 443c7c2 commit 5d96814

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

keps/sig-auth/3221-structured-authorization-configuration/README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ authorizers:
243243
# Required, with no default.
244244
timeout: 3s
245245
# The API version of the authorization.k8s.io SubjectAccessReview to
246-
# send to and expect from the # webhook.
246+
# send to and expect from the webhook.
247247
# Same as setting `--authorization-webhook-version` flag
248248
# Required, with no default
249+
# Valid values: v1beta1, v1
249250
subjectAccessReviewVersion: v1
250251
# Controls the authorization decision when a webhook request fails to
251-
# complete or returns a malformed response.
252+
# complete or returns a malformed response or errors evaluating
253+
# matchConditions.
252254
# Valid values:
253255
# - NoOpinion: continue to subsequent authorizers to see if one of
254256
# them allows the request
@@ -265,8 +267,23 @@ authorizers:
265267
# allowed for kube-apiserver.
266268
type: KubeConfig
267269
# Path to KubeConfigFile for connection info
270+
# Required, if connectionInfo.Type is KubeConfig
268271
kubeConfigFile: /kube-system-authz-webhook.yaml
272+
# matchConditions is a list of conditions that must be met for a request to be sent to this
273+
# webhook. An empty list of matchConditions matches all requests.
274+
# There are a maximum of 64 match conditions allowed.
275+
#
276+
# The exact matching logic is (in order):
277+
# 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
278+
# 2. If ALL matchConditions evaluate to TRUE, the webhook is called.
279+
# 3. If any matchCondition evaluates to an error (but none are FALSE):
280+
# - If failurePolicy=Deny, reject the request
281+
# - If failurePolicy=NoOpinion, the error is ignored and the webhook is skipped
269282
matchConditions:
283+
# expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
284+
# CEL expressions have access to the contents of the SubjectAccessReview
285+
# in the version specified by subjectAccessReviewVersion in the request variable.
286+
# Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
270287
- expression: |
271288
request.resourceAttributes.namespace == 'kube-system'
272289
- expression: |

keps/sig-auth/3221-structured-authorization-configuration/kep.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ status: implementable
88
creation-date: 2022-06-21
99
reviewers:
1010
- "@deads2k"
11-
- "@enj"
11+
- "@liggitt"
1212
approvers:
1313
- "@deads2k"
14-
- "@enj"
14+
- "@liggitt"
1515
see-also:
1616
- https://github.com/kubernetes/kubernetes/issues/101762
1717
stage: alpha

0 commit comments

Comments
 (0)