git-ts: move Forgejo's OIDC client (code.m.ac.nz) onto kanidm-operator #60

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

Problem

Forgejo at code.m.ac.nz signs users in through the Kanidm OIDC client git-ts, made by hand. Nothing in git describes it, and its users group forgejo_users (which includes two service accounts) is hand-managed too.

Live state

attribute value
uuid 6575d843-3b6e-471a-a962-71d1fdbfe3bb
displayname code.m.ac.nz
class confidential
oauth2_rs_origin https://code.m.ac.nz/user/oauth2/id.m.ac.nz/callback
oauth2_rs_origin_landing https://code.m.ac.nz/user/oauth2/id.m.ac.nz
oauth2_rs_scope_map forgejo_users → email, groups, openid, profile
oauth2_strict_redirect_uri true
image set (a logo; the CRD has no image field and adoption leaves it alone)
group forgejo_users uuid ae8d312a-10c1-4ba4-b2e2-9cd58bd51403, members: openclaw, svc-renovate, sophie

Proposed

Forgejo is not on scout and keeps the client secret in its own auth-source config, so there is nothing to repoint: adoption keeps the basic secret and Forgejo never notices. The gain is the client and group definition in git. The operator's Secret on scout (git-ts-oidc) is then an unused copy of the secret; if that bothers you, this one is a candidate for staying hand-made.

Group forgejo-users must list all three members exactly (members replaces the membership; svc-renovate and openclaw are accounts, which the CRD accepts). Verify with a Forgejo login after adoption and check the group's member attribute is unchanged.

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 Forgejo at code.m.ac.nz signs users in through the Kanidm OIDC client `git-ts`, made by hand. Nothing in git describes it, and its users group `forgejo_users` (which includes two service accounts) is hand-managed too. ## Live state | attribute | value | |---|---| | uuid | `6575d843-3b6e-471a-a962-71d1fdbfe3bb` | | displayname | `code.m.ac.nz` | | class | confidential | | oauth2_rs_origin | `https://code.m.ac.nz/user/oauth2/id.m.ac.nz/callback` | | oauth2_rs_origin_landing | `https://code.m.ac.nz/user/oauth2/id.m.ac.nz` | | oauth2_rs_scope_map | `forgejo_users` → email, groups, openid, profile | | oauth2_strict_redirect_uri | true | | image | set (a logo; the CRD has no image field and adoption leaves it alone) | | group `forgejo_users` | uuid `ae8d312a-10c1-4ba4-b2e2-9cd58bd51403`, members: **openclaw, svc-renovate, sophie** | ## Proposed Forgejo is not on scout and keeps the client secret in its own auth-source config, so there is nothing to repoint: adoption keeps the basic secret and Forgejo never notices. The gain is the client and group definition in git. The operator's Secret on scout (`git-ts-oidc`) is then an unused copy of the secret; if that bothers you, this one is a candidate for staying hand-made. `Group forgejo-users` must list all three members exactly (`members` replaces the membership; `svc-renovate` and `openclaw` are accounts, which the CRD accepts). Verify with a Forgejo login after adoption and check the group's `member` attribute is unchanged. ## 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#60
No description provided.