Skip to content

Add extra field when doing SubjectAccessReview#265

Merged
jaypipes merged 2 commits intotemporalio:mainfrom
jinjiaKarl:fix/add-missing-extraField
Apr 10, 2026
Merged

Add extra field when doing SubjectAccessReview#265
jaypipes merged 2 commits intotemporalio:mainfrom
jinjiaKarl:fix/add-missing-extraField

Conversation

@jinjiaKarl
Copy link
Copy Markdown
Contributor

@jinjiaKarl jinjiaKarl commented Apr 8, 2026

What was changed

Pass UserInfo.Extra fields when constructing the SubjectAccessReview for the requesting user in the WorkerResourceTemplate validating webhook.

Why?

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.

Checklist

  1. Closes Cannot delete WorkerResourceTemplate due to no permissions #263

  2. How was this tested:

deployed to one GKE cluster, people with GKE IAM Admin permission can create/update/delete WorkerResourceTemplate resource without granting Kubernetes built-in RBAC bindings

  1. Any docs updates needed?

@jinjiaKarl jinjiaKarl requested review from a team and jlegrone as code owners April 8, 2026 07:53
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 8, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks very much for this @jinjiaKarl! one tiny little request for a code comment, otherwise looks fantastic. :)

@jinjiaKarl jinjiaKarl requested a review from jaypipes April 8, 2026 10:24
Copy link
Copy Markdown

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaypipes jaypipes merged commit 51d0812 into temporalio:main Apr 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants