Commit 51d0812
authored
Add extra field when doing SubjectAccessReview (#265)
Pass UserInfo.Extra fields when constructing the SubjectAccessReview for
the requesting user in the WorkerResourceTemplate validating webhook.
Previously, the webhook only forwarded User and Groups to the SAR spec.
This omitted the Extra field, which cloud providers like GKE use to
carry IAM identity information (e.g. iam.gke.io/user-assertion). Without
it, the SAR could not evaluate permissions granted via GKE IAM or GCP
group membership, only direct RBAC bindings to a specific username were
recognized.
deployed to one GKE cluster, people with GKE IAM Admin permission can
create/update/delete WorkerResourceTemplate resource without granting
Kubernetes built-in RBAC bindings1 parent 24f1d21 commit 51d0812
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
393 | 407 | | |
394 | 408 | | |
395 | 409 | | |
| |||
456 | 470 | | |
457 | 471 | | |
458 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
459 | 478 | | |
460 | 479 | | |
461 | 480 | | |
| |||
0 commit comments