Skip to content

[WIP] UPSTREAM: <carry>: Keep system:cluster:* groups #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: kcp-1.32.3
Choose a base branch
from

Conversation

ntnn
Copy link
Member

@ntnn ntnn commented Aug 12, 2025

What type of PR is this?

See kcp-dev/kcp#3513

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@kcp-ci-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign liggitt for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ntnn ntnn changed the title UPSTREAM: <carry>: Keep system:cluster:* groups [WIP] UPSTREAM: <carry>: Keep system:cluster:* groups Aug 12, 2025
Comment on lines +118 to 126
// Filter groups to only include system:authenticated
// and system:cluster:*
for _, g := range u.GetGroups() {
if g == user.AllAuthenticated {
rewritten.Groups = []string{user.AllAuthenticated}
break
rewritten.Groups = append(rewritten.Groups, user.AllAuthenticated)
}
if strings.HasPrefix(g, "system:cluster:") {
rewritten.Groups = append(rewritten.Groups, g)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is for the globalsa if the feature flag is enabled. Maybe it'd make sense to keep all system: groups?

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