Skip to content

[release-v1.42] Grant calico-apiserver RBAC for managedclusters/status#4844

Merged
caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-apiserver-mc-status-rbac-v1.42
May 21, 2026
Merged

[release-v1.42] Grant calico-apiserver RBAC for managedclusters/status#4844
caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-apiserver-mc-status-rbac-v1.42

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

Backport of #4843 to release-v1.42. Follow-up to #4824.

The original change granted calico-manager (voltron's SA) update access to managedclusters/status on the projectcalico.org aggregated API. That gets voltron past its own auth check, but when the aggregated apiserver proxies the status write through to the backing CRD it does so as the calico-apiserver SA, which still lacked managedclusters/status on crd.projectcalico.org. The result is voltron loops on:

managedclusters.crd.projectcalico.org "<name>" is forbidden: User "system:serviceaccount:calico-system:calico-apiserver" cannot update resource "managedclusters/status" in API group "crd.projectcalico.org"

ManagedClusters then never get a Connected condition, es-kube-controllers treats them as disconnected, and the LicenseKey never reaches the managed cluster. Verified on a live management cluster that adding this permission lets voltron set the status and unblocks the license sync.

Fixes an issue where the LicenseKey was not copied to managed clusters in a multi-cluster management setup, due to missing RBAC on the Calico apiserver service account.

Without this, voltron's status updates fail when the aggregated apiserver
proxies the write through to the backing CRD as its own service account.
@caseydavenport caseydavenport requested a review from a team as a code owner May 21, 2026 21:08
@marvin-tigera marvin-tigera added this to the v1.42.1 milestone May 21, 2026
@caseydavenport caseydavenport merged commit 6805bf4 into tigera:release-v1.42 May 21, 2026
8 checks passed
@caseydavenport caseydavenport deleted the casey-apiserver-mc-status-rbac-v1.42 branch May 21, 2026 22:11
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