snappy-k3s-traefik: move the snappy Traefik dashboard's OIDC client onto kanidm-operator #61

Open
opened 2026-11-08 17:54:01 +11:00 by myagent · 0 comments
Collaborator

Problem

The snappy cluster's Traefik dashboard is behind oauth2-proxy (argo/snappy/traefik-dashboard/), which uses the hand-made Kanidm client snappy-k3s-traefik. The client secret reaches snappy through OnePasswordItem traefik-dashboard-client-secret (1Password item snappy-k3s-traefik, keys username/password).

Live state

attribute value
uuid 7dce9aa0-f549-4ad1-8c47-d2556737b34d
displayname Traefik @ snappy
class confidential
oauth2_rs_origin https://auth.traefik.gw4-apsy1a1.tamatekapua.com/oauth2/callback, https://dashboard.traefik.gw4-apsy1a1.tamatekapua.com/oauth2/callback, https://auth.traefik.snappy.tamatekapua.com/oauth2/callback
oauth2_rs_origin_landing https://dashboard.traefik.gw4-apsy1a1.tamatekapua.com/dashboard/
oauth2_rs_scope_map snappy_k3s_traefik → email, openid (matches oauth2-proxy's --scope=openid email)
oauth2_strict_redirect_uri true
group snappy_k3s_traefik uuid e944aa81-76b6-408f-b173-fd41fa410faf, members: sophie

Proposed

The operator writes Secrets on scout only, so the usual "repoint the app at the operator's Secret" step is not available. Two options:

  1. Adopt only. CRs on scout manage the client and group; the secret keeps flowing through the OnePasswordItem on snappy. Adoption keeps the basic secret, so nothing changes for oauth2-proxy. A future reset-secrets would need the 1Password item updated by hand, exactly as today. Cheap, and all three redirect URLs end up in git.
  2. Wait for cross-cluster Secret delivery (operator feature: write the Secret into another cluster, or publish it back to 1Password). Not planned.

Recommend 1. Keep --redirect-url in oauth2-proxy.yaml and the three origins in sync by hand (a redirect URL missing from the CR is removed from Kanidm on adoption, so copy all three).

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/, namespace kanidm-clients, one <client>.yaml per 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: Adopted events only, plus DescriptionUpdated if a description is set). Live state below was captured on 2026-11-08 with capture.sh.

## Problem The snappy cluster's Traefik dashboard is behind oauth2-proxy (`argo/snappy/traefik-dashboard/`), which uses the hand-made Kanidm client `snappy-k3s-traefik`. The client secret reaches snappy through `OnePasswordItem traefik-dashboard-client-secret` (1Password item `snappy-k3s-traefik`, keys `username`/`password`). ## Live state | attribute | value | |---|---| | uuid | `7dce9aa0-f549-4ad1-8c47-d2556737b34d` | | displayname | `Traefik @ snappy` | | class | confidential | | oauth2_rs_origin | `https://auth.traefik.gw4-apsy1a1.tamatekapua.com/oauth2/callback`, `https://dashboard.traefik.gw4-apsy1a1.tamatekapua.com/oauth2/callback`, `https://auth.traefik.snappy.tamatekapua.com/oauth2/callback` | | oauth2_rs_origin_landing | `https://dashboard.traefik.gw4-apsy1a1.tamatekapua.com/dashboard/` | | oauth2_rs_scope_map | `snappy_k3s_traefik` → email, openid (matches oauth2-proxy's `--scope=openid email`) | | oauth2_strict_redirect_uri | true | | group `snappy_k3s_traefik` | uuid `e944aa81-76b6-408f-b173-fd41fa410faf`, members: sophie | ## Proposed The operator writes Secrets on scout only, so the usual "repoint the app at the operator's Secret" step is not available. Two options: 1. **Adopt only.** CRs on scout manage the client and group; the secret keeps flowing through the `OnePasswordItem` on snappy. Adoption keeps the basic secret, so nothing changes for oauth2-proxy. A future `reset-secrets` would need the 1Password item updated by hand, exactly as today. Cheap, and all three redirect URLs end up in git. 2. **Wait for cross-cluster Secret delivery** (operator feature: write the Secret into another cluster, or publish it back to 1Password). Not planned. Recommend 1. Keep `--redirect-url` in oauth2-proxy.yaml and the three origins in sync by hand (a redirect URL missing from the CR is removed from Kanidm on adoption, so copy all three). ## 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/`, namespace `kanidm-clients`, one `<client>.yaml` per 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: `Adopted` events only, plus `DescriptionUpdated` if a description is set). Live state below was captured on 2026-11-08 with `capture.sh`.
Sign in to join this conversation.
No labels
No milestone
No project
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
sophie/homelab#61
No description provided.