Skip to content

Commit cba5721

Browse files
committed
Clarify authz user
1 parent d82bb10 commit cba5721

File tree

1 file changed

+7
-6
lines changed
  • keps/sig-api-machinery/3488-cel-admission-control

1 file changed

+7
-6
lines changed

keps/sig-api-machinery/3488-cel-admission-control/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,9 +1100,10 @@ We will support admission control use cases requiring permission checks:
11001100
- Validate that only a controller responsible for a finalizer can remove it from the finalizers
11011101
field.
11021102

1103-
To depend on an authz decision, validation expressions can reference the identifier `authorizer`,
1104-
which will be bound at evaluation time to an Authorizer object supporting receiver-style function
1105-
overloads:
1103+
To depend on an authz decision, validation expressions can use the `authorizer`
1104+
variable, which performs authz checks for the admission request user (the same
1105+
use as identified by `request.userInfo`), and which will be bound at evaluation
1106+
time to an Authorizer object supporting receiver-style function overloads:
11061107

11071108
| Symbol | Type | Description |
11081109
|-------------|-------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
@@ -1112,9 +1113,9 @@ overloads:
11121113
| subresource | ResourceCheck.(subresource string) -> ResourceCheck | Specifies thath the check is for a subresource |
11131114
| namespace | ResourceCheck.(namespace string) -> ResourceCheck | Specifies that the check is for a namespace (if not called, the check is for the cluster scope) |
11141115
| name | ResourceCheck.(name string) -> ResourceCheck | Specifies that the check is for a specific resource name |
1115-
| check | ResourceCheck.(apiVerb string) -> Decision | Checks if the user is authorized for the API verb on the resource |
1116-
| allowed | Decision.() -> bool | Is the user authorized? |
1117-
| denied | Decision.() -> bool | Is the user denied authorization? |
1116+
| check | ResourceCheck.(apiVerb string) -> Decision | Checks if the admission request user is authorized for the API verb on the resource |
1117+
| allowed | Decision.() -> bool | Is the admission request user authorized? |
1118+
| denied | Decision.() -> bool | Is the admission request user denied authorization? |
11181119

11191120
xref: https://kubernetes.io/docs/reference/access-authn-authz/authorization/#review-your-request-attributes for a details on
11201121
authorization attributes.

0 commit comments

Comments
 (0)