Migrate Sveltos cluster auth from static SA to Kanidm SA + OIDC #1530
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters#1530
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Migrate Sveltos cluster auth from static SA to Kanidm SA + OIDC
Follow-on to #1531 (Sveltos bootstrap with a static cluster-admin SA). Once the k8s apiserver OIDC flags (#1522) and the Kanidm
kubernetesclient (lab/iac#35) exist, switch Sveltos's connection to each fleet cluster to a Kanidm service account authenticating via OIDC — same RFC 8693 flow Argo CD and tofu-controller already use — so there are no static long-lived SA credentials on the fleet.Current state (after #1531)
sveltosctl generate kubeconfig --create, stored as a<cluster>-sveltos-kubeconfigSecret in the management cluster (mini).Target state
<cluster>-sveltos-kubeconfigSecret holds a kubeconfig whose auth is a Kanidm OIDC identity (sveltos-<cluster>SA via lab/iac#35), resolved to RBAC through the apiserver's OIDCgroupsclaim.expirationTimestamp, no Secret rewrite loop.Migration path (in place, per cluster)
sveltos-<cluster>Kanidm SA +kubernetesclient.backendAuth.oauthTokenExchange,backendTLS: {}, public client,audiences: [kubernetes],scope: openid groups) — exchange verified (lab/iac#39 resolved 2026-08-12).<cluster>-sveltos-kubeconfigSecret to the Golden-Path form above.sveltosctl show addonsstill green, ClusterProfiles reconcile, drift detection works.Acceptance criteria
Depends on / linked
kubernetesclient + SAs) — the credential sourceNote: machine flow for Sveltos via Kanidm SA API token -> TokenExchange now validated end-to-end for mini/portable (same mechanism ArgoCD/tofu-controller will use). Golden Path kubeconfig (server https://.k8s.animeteamspeak.moe + token) works for get/exec. Ready to migrate -sveltos-kubeconfig Secrets once #1538 rolls out.
Terminology correction (agentgateway → current architecture). The apiserver access path is no longer agentgateway. It's the k8s-hub (Cilium Gateway API) + the custom authz-bridge (CRDs in
oauth.animeteamspeak.moe/providers.animeteamspeak.moe) which performs the RFC 8693 token exchange. agentgateway is now AI-only.So in this ticket, "agentgateway" → the k8s-hub / authz-bridge:
<cluster>.k8s.animeteamspeak.moe); the authz-bridge performs the RFC 8693 exchange."backendAuth.oauthTokenExchange,backendTLS: {}…)" → "the k8s-hub apiserver routes + the authz-bridgeOidcPolicy/TokenExchangePolicy(oauth.animeteamspeak.moe)."