Skip to content

[release-v1.42] Drop resourceNames from tigera-network-admin uisettings rule#4867

Merged
caseydavenport merged 2 commits into
tigera:release-v1.42from
caseydavenport:casey-cherry-pick-4866-v1.42
May 28, 2026
Merged

[release-v1.42] Drop resourceNames from tigera-network-admin uisettings rule#4867
caseydavenport merged 2 commits into
tigera:release-v1.42from
caseydavenport:casey-cherry-pick-4866-v1.42

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

Cherry-pick of #4866 to release-v1.42.

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 requested a review from a team as a code owner May 28, 2026 00:46
@marvin-tigera marvin-tigera added this to the v1.42.1 milestone May 28, 2026
@caseydavenport caseydavenport merged commit f3c211b into tigera:release-v1.42 May 28, 2026
4 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.

2 participants