Skip to content

Conversation

@Diaphteiros
Copy link
Contributor

What this PR does / why we need it:
Binding to a pre-defined Group such as system:authenticated is currently not possible with AccessReqests, because the subject's name is always prefixed with the provider name. This PR adds a possibility to configure that the provider name prefix should be omitted.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:

Release note:

For subjects with kind `Group` or `User` in an `AccessRequest`'s `spec. oidc.roleBindings[*].subjects` entry, it is now possible to prefix the `name` with `::`. This will cause the ClusterProvider to just remove this prefix instead of applying the oidc provider name when creating (Cluster)RoleBindings out of this configuration. By using this method, it is now possible to bind to k8s-predefined Groups such as `system:authenticated` by specifying `::system:authenticated` as subject name, for example.

@Diaphteiros Diaphteiros requested a review from reshnm October 16, 2025 11:58
@Diaphteiros Diaphteiros merged commit 61cdce0 into main Oct 16, 2025
7 checks passed
@Diaphteiros Diaphteiros deleted the oidc-prefix branch October 16, 2025 12:44
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.

2 participants