T8: k8s-apiserver OIDC flags (flux-clusters) — from lab/iac#11 #1522

Closed
opened 2026-08-11 17:53:23 +00:00 by ginjiruu · 3 comments
Owner

Pulled in from lab/iac#11 (external ticket: lab/iac#11).

Parent

Spec: catalog-driven app bootstrapping and capability groups (lab/iac#2) — ADR-0006 / ADR-0007.

What to build

The RKE2 bootstrap kube-apiserver flags get --oidc-issuer-url etc. so Kubernetes authenticates the capability-group identities (kubelogin helper). Lives in flux-clusters, parallel to the iac-repo sequence.

Current state: bootstrap/configs/think-0{1,2,3}.yaml kube-apiserver-arg carries only inflight/request-timeout flags. Kanidm issuer in use by Argo CD: https://auth.animeteamspeak.moe/oauth2/openid/argocd (clientID argocd) — k8s needs its own client-id.

Acceptance criteria

  • flux-clusters/bootstrap/configs/think-0{1,2,3}.yaml kube-apiserver-arg gains OIDC flags (issuer, client-id, groups-claim, username-claim)
  • kubelogin helper can authenticate a Kanidm identity to k8s
  • groups claim wired so capability groups map to k8s RBAC

Blocked by

None — can start immediately (flux-clusters ticket, parallel).

> Pulled in from `lab/iac#11` (external ticket: https://git.animeteamspeak.moe/lab/iac/issues/11). ## Parent Spec: catalog-driven app bootstrapping and capability groups (`lab/iac#2`) — ADR-0006 / ADR-0007. ## What to build The RKE2 bootstrap kube-apiserver flags get `--oidc-issuer-url` etc. so Kubernetes authenticates the capability-group identities (kubelogin helper). Lives in flux-clusters, parallel to the iac-repo sequence. Current state: `bootstrap/configs/think-0{1,2,3}.yaml` `kube-apiserver-arg` carries only inflight/request-timeout flags. Kanidm issuer in use by Argo CD: `https://auth.animeteamspeak.moe/oauth2/openid/argocd` (clientID `argocd`) — k8s needs its own client-id. ## Acceptance criteria - [ ] `flux-clusters/bootstrap/configs/think-0{1,2,3}.yaml` `kube-apiserver-arg` gains OIDC flags (issuer, client-id, groups-claim, username-claim) - [ ] kubelogin helper can authenticate a Kanidm identity to k8s - [ ] groups claim wired so capability groups map to k8s RBAC ## Blocked by None — can start immediately (flux-clusters ticket, parallel).
ginjiruu changed title from external issue to T8: k8s-apiserver OIDC flags (flux-clusters) — from lab/iac#11 2026-08-11 18:56:01 +00:00
Author
Owner

Work estimate

Size: M — ~1 day (focused agent work), plus cluster-roll verification.

  • 0.25d — add --oidc-issuer-url, --oidc-client-id, --oidc-groups-claim, --oidc-username-claim to bootstrap/configs/think-0{1,2,3}.yaml kube-apiserver-arg (RKE2: issuer https://auth.animeteamspeak.moe/oauth2/openid/... — confirm the k8s OIDC client-id exists in Kanidm)
  • 0.25d — kubelogin helper setup (kubeconfig + kubelogin integration)
  • 0.5d — verify a Kanidm capability-group identity authenticates and groups claim maps to k8s RBAC (namespace Roles per ADR-0007); roll to think-01/02/03 and confirm apiserver healthy

Not blocked — can start immediately. Main open question: whether the k8s OIDC client + secret already exist in Kanidm IaC or need provisioning first.

## Work estimate **Size: M — ~1 day (focused agent work), plus cluster-roll verification.** - 0.25d — add `--oidc-issuer-url`, `--oidc-client-id`, `--oidc-groups-claim`, `--oidc-username-claim` to `bootstrap/configs/think-0{1,2,3}.yaml` `kube-apiserver-arg` (RKE2: issuer `https://auth.animeteamspeak.moe/oauth2/openid/...` — confirm the k8s OIDC client-id exists in Kanidm) - 0.25d — kubelogin helper setup (kubeconfig + `kubelogin` integration) - 0.5d — verify a Kanidm capability-group identity authenticates and groups claim maps to k8s RBAC (namespace Roles per ADR-0007); roll to think-01/02/03 and confirm apiserver healthy **Not blocked — can start immediately.** Main open question: whether the k8s OIDC client + secret already exist in Kanidm IaC or need provisioning first.
Author
Owner

Cross-link: the edge-ingress research (flux-clusters #1527) and Cilium ClusterMesh implementation (#1528) affect the apiserver-connectivity story this ticket feeds.

Once ClusterMesh is up between portable and mini, the mini apiserver is reachable from the portable edge as a local Service via Global Services — so an agentgateway in portable can serve the https://kube-mini.domain route (TLS terminate + RFC 8693 exchange per lab/iac#38) without a dedicated mini-facing VIP or reverse tunnel.

This ticket's OIDC apiserver flags are orthogonal but compose: kubelogin/humans hit the agentgateway-fronted apiserver, agentgateway does the per-request token exchange, and the apiserver validates against Kanidm via the OIDC flags added here.

Cross-link: the edge-ingress research (flux-clusters **#1527**) and Cilium ClusterMesh implementation (**#1528**) affect the apiserver-connectivity story this ticket feeds. Once ClusterMesh is up between portable and mini, the mini apiserver is reachable from the portable edge as a local Service via Global Services — so an agentgateway in portable can serve the `https://kube-mini.domain` route (TLS terminate + RFC 8693 exchange per lab/iac#38) without a dedicated mini-facing VIP or reverse tunnel. This ticket's OIDC apiserver flags are orthogonal but compose: kubelogin/humans hit the agentgateway-fronted apiserver, agentgateway does the per-request token exchange, and the apiserver validates against Kanidm via the OIDC flags added here.
Author
Owner

Addded apiserver args to both mini and portable

Addded apiserver args to both mini and portable
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1522
No description provided.