Skip to content

fix: correct group prefix in SAML groups ACL example#623

Open
ohauer wants to merge 1 commit into
siderolabs:mainfrom
ohauer:fix/docs-acl-group-prefix
Open

fix: correct group prefix in SAML groups ACL example#623
ohauer wants to merge 1 commit into
siderolabs:mainfrom
ohauer:fix/docs-acl-group-prefix

Conversation

@ohauer

@ohauer ohauer commented Jun 25, 2026

Copy link
Copy Markdown

The AccessPolicy example in use-saml-groups-in-kubernetes.mdx used groups/group1 (plural) as the user group reference prefix, but the correct prefix is group/group1 (singular).

This matches the Omni source code constant GroupPrefix = "group/" and is consistent with the cluster group references in the same example which already use the correct group/ prefix.

The incorrect prefix causes a silent failure: strings.HasPrefix("groups/group1", "group/") returns false (the 5th character is s not /), so the entry is treated as a literal user identity string rather than a group reference. No user will ever match this identity, resulting in the rule having no effect.

The AccessPolicy example in use-saml-groups-in-kubernetes.mdx used
'groups/group1' (plural) as the user group reference prefix, but
the correct prefix is 'group/group1' (singular).

This matches the Omni source code constant GroupPrefix = "group/"
and is consistent with the cluster group references in the same
example which already use the correct 'group/' prefix.

Signed-off-by: Olli Hauer <ohauer@gmx.de>
@talos-bot talos-bot moved this to In Review in Planning Jun 25, 2026
@smira smira removed this from Planning Jun 26, 2026
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.

3 participants