Skip to content

Drop resourceNames from tigera-network-admin uisettings rule#4866

Merged
caseydavenport merged 2 commits into
tigera:masterfrom
caseydavenport:casey-uisettings-rbac-fix
May 28, 2026
Merged

Drop resourceNames from tigera-network-admin uisettings rule#4866
caseydavenport merged 2 commits into
tigera:masterfrom
caseydavenport:casey-uisettings-rbac-fix

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

Follow-up to #4834. The new rule granted write verbs on uisettings but scoped them with resourceNames: ["cluster-settings", "user-settings"]. UISettings names actually have the form <group>.<kind>.<name> (e.g. cluster-settings.layer.tigera-infrastructure), and RBAC resourceNames is exact match, so the rule never matched a real create request - users bound to tigera-network-admin in v3 CRD mode hit a 403 when the UI tried to create a Service Graph layer.

Drop the resourceNames so the group-level narrowing happens in the calico-webhooks UISettings handler, which is how the rule's comment said it was meant to work.

Fixes a 403 when creating UISettings (e.g. Service Graph layers) as a tigera-network-admin user in v3 CRD / webhooks mode.

UISettings names have the form <group>.<kind>.<name> (e.g. cluster-settings.layer.foo),
and RBAC resourceNames is exact match, so the rule never matched a real layer-creation
request. Drop the resourceNames so the webhook handles the group-level narrowing,
which is how the comment said the rule was meant to work in the first place.
@caseydavenport caseydavenport merged commit 44dfdc7 into tigera:master May 28, 2026
6 checks 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.

3 participants