scoutk3s: move the k3s API server's OIDC client onto kanidm-operator #59
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?
Problem
The scout k3s API server authenticates
kubectlusers through the Kanidm OIDC clientscoutk3s, made by hand. Nothing in git describes it.Live state
cefaa9a2-6f3c-4661-89e8-e8a70c9947cdKubernetesoauth2_resource_server_public), no basic secrethttp://localhost:8000/18000)https://kubernetes.io/scoutk3s_users→ email, groups, openid, profile;scoutk3s_admins→ email, groups, openid, profilescoutk3s_users4634dd41-bd67-4dc9-9c29-8884cfb98065, members: sophiescoutk3s_admins4a6389fb-ee90-4025-a3b3-f79f8c6e8f8f, members: sophieProposed
The easy one: a public client has no secret, so adoption changes nothing the API server or kubelogin sees.
OAuth2Clientwithtype: public,allowLocalhostRedirects: true,landingUrl: https://kubernetes.io/, noredirectUrls(the field is optional; an empty list is what the live client has), both scope maps, and twoGroupCRs withmembers: [sophie]. The operator writes a Secret withclient_id/issuer_url/discovery_urland noclient_secret; nothing reads it. The kube-apiserver's--oidc-*flags live on the node, not in git, and don't change.Verify with a fresh
kubectllogin through kubelogin after adoption. Rollback: revert (remove finalizers first to keep the client).Where the CRs would live
None of these clients has a workload on scout, so there is no app directory to put the CRs in. Proposal: one new Application
scout-kanidm-clients→argo/scout/kanidm-clients/, namespacekanidm-clients, one<client>.yamlper client, for every Kanidm client whose consumer is off-cluster or not in git. Same for the other issues in this set. Say if you'd rather have a different home.Procedure
.claude/skills/kanidm-migrate-app/SKILL.md(capture first, PR, verify adoption:Adoptedevents only, plusDescriptionUpdatedif a description is set). Live state below was captured on 2026-11-08 withcapture.sh.