git-ts: move Forgejo's OIDC client (code.m.ac.nz) onto kanidm-operator #60
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
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 groupforgejo_users(which includes two service accounts) is hand-managed too.Live state
6575d843-3b6e-471a-a962-71d1fdbfe3bbcode.m.ac.nzhttps://code.m.ac.nz/user/oauth2/id.m.ac.nz/callbackhttps://code.m.ac.nz/user/oauth2/id.m.ac.nzforgejo_users→ email, groups, openid, profileforgejo_usersae8d312a-10c1-4ba4-b2e2-9cd58bd51403, members: openclaw, svc-renovate, sophieProposed
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-usersmust list all three members exactly (membersreplaces the membership;svc-renovateandopenclaware accounts, which the CRD accepts). Verify with a Forgejo login after adoption and check the group'smemberattribute 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/, 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.