Skip to content

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

Merged
talos-bot merged 1 commit into
siderolabs:mainfrom
ohauer:fix/docs-acl-group-prefix
Jul 2, 2026
Merged

fix: correct group prefix in SAML groups ACL example#623
talos-bot merged 1 commit into
siderolabs:mainfrom
ohauer:fix/docs-acl-group-prefix

Conversation

@ohauer

@ohauer ohauer commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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.

@Iheanacho-ai

Copy link
Copy Markdown
Member

/m

@talos-bot

Copy link
Copy Markdown

@Iheanacho-ai merge was not performed: merge: fatal: Not possible to fast-forward, aborting.

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>
Signed-off-by: Amarachi Iheanacho <amarachi.iheanacho@siderolabs.com>
@Iheanacho-ai Iheanacho-ai force-pushed the fix/docs-acl-group-prefix branch from a77b502 to 1efe9bf Compare July 2, 2026 12:12
@Iheanacho-ai

Copy link
Copy Markdown
Member

/m

@talos-bot talos-bot merged commit 1efe9bf into siderolabs:main Jul 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants