Skip to content

Grant calico-apiserver RBAC for managedclusters/status#4843

Merged
caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-apiserver-mc-status-rbac
May 21, 2026
Merged

Grant calico-apiserver RBAC for managedclusters/status#4843
caseydavenport merged 1 commit into
tigera:masterfrom
caseydavenport:casey-apiserver-mc-status-rbac

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

Follow-up to #4823.

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 merged commit d3d6a45 into tigera:master May 21, 2026
11 checks passed
@caseydavenport caseydavenport deleted the casey-apiserver-mc-status-rbac 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.

3 participants