Commit 0dc108f
feat(federation): add minimal edge-scoped ClusterRole for cell write-back
The edge (cell) compute-manager authenticates to the hub Karmada control plane
with a dedicated client-cert identity (system:compute-edge-federation@compute.datumapis.com)
to write Instance status back for its cell. Grant it a new, least-privilege
ClusterRole rather than the broad compute-manager role the management plane uses.
The role is scoped to exactly what the cell InstanceReconciler's FederationClient
does on the hub (Finalize + writeBackToUpstream): read the federation namespace,
and create/update/delete its own Instance plus update its status. The cell uses a
direct (non-caching) client, so no list/watch — and it never touches
configmaps/secrets, workloaddeployments, or propagationpolicies on the hub.
Bound to the identity by CN specifically, not the broad compute.datumapis.com
group, so only this identity receives the edge role. Ships in the existing
downstream-rbac kustomization so it applies to Karmada alongside the management
role.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c0e1792 commit 0dc108f
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
0 commit comments