2 Commits
Author SHA1 Message Date
Ryan Bever 24f9faf1c5 refactor(controller): read bootstrap RBAC through ClusterCache (#2295)
* refactor(controller): read bootstrap RBAC through ClusterCache

The bootstrap authorization controller now gets its tenant client from
ClusterCache instead of TenantClientProvider. ClusterCache connects to
the same <cluster>-kubeconfig Secret that Cluster API uses, so this
controller no longer depends on the controller's node-agent or
kubeconfig fallback path.

The cache is created only when bootstrap controllers are enabled. Its
ClusterFilter is IsNVKEManagedCluster, which moves from the capi
package's unexported helper to an exported function so both controllers
share it.

The controller watches the cache's cluster source, so it reconciles
when a workload connection opens or closes. The 30-second RequeueAfter
on a missing connection is removed. When the cache is not connected,
the controller still sets WaitingForTenantAccess on the selected
Machines and returns.

The NICo provider ID controller and the Temporal activities still use
TenantClientProvider.

Signed-off-by: Ryan Bever <rbever@nvidia.com>

* work-sync

Signed-off-by: Ryan Bever <rbever@nvidia.com>

---------

Signed-off-by: Ryan Bever <rbever@nvidia.com>
2026-11-12 14:19:14 -07:00
Ryan Bever ab0154a7bc feat(controller): authorize SPIFFE bootstrap identities (#2130)
Add a controller that grants labeled, joining Machines the tenant RBAC required by kubeadm. Reconcile six kubeadm bindings from resolved SPIFFE identities and remove subjects after each Machine receives a node reference.

Gate the controller's tenant permissions on the bootstrap controller setting, report synchronization through Machine conditions, and cover the behavior with unit and chart assertions. CSR approval remains separate.

Signed-off-by: Ryan Bever <rbever@nvidia.com>
2026-11-05 07:23:44 -07:00