RAPPS-WP-0016-T01: founder-run targets rotate the forgejo_admin password into OpenBao (platform/workloads/forgejo/break-glass-admin) and record a value-free sign-in. T01 stays in progress until the founder runs them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 1031639@bnt-lap001 Assistant-Session: e5073fee-f4ae-4fc3-a75a-6c1fc83e0576
6.6 KiB
| id | type | title | domain | repo | status | flavor | owner | topic_slug | created | updated | depends_on | related_repos | state_hub_workstream_id | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RAPPS-WP-0016 | workplan | Forgejo sign-in through NetKingdom, before the forge closes | infotech | railiance-apps | active | implementation | claude-code | railiance | 2026-10-08 | 2026-10-08 |
|
|
f6b1d6f6-0abb-5774-87b9-bf3cfb640a3b |
RAPPS-WP-0016 - Forgejo sign-in through NetKingdom, before the forge closes
Why
forgejo.coulomb.social is closing: private by default, no anonymous access
(prj-forgejo-org-refactor ORGREF-WP-0002, decision
decisions/forge-visibility-policy.md). The founder's condition is that sign-in
runs through NetKingdom first. railiance-apps owns the Forgejo Helm release
(docs/forgejo-on-railiance01.md: S5 Helm release, ingress, operator Makefile),
so the Forgejo side lands here. This plan is ORGREF-WP-0002-T05. The NetKingdom
side is key-cape KEY-WP-0038.
Boundaries
- Founder guardrail: tighten gradually; never lock anyone out; never risk assets; never reach a state that is hard to repair. Every step keeps the current sign-in path working until the new one is proven.
- No visibility change in this plan. Repositories, packages and
REQUIRE_SIGNIN_VIEWare ORGREF-WP-0002-T08. - Configuration in git. The authentication source is declared in
helm/forgejo-values.yaml(gitea.oauth), with its secret drawn from an ExternalSecret over OpenBao. No click-ops, and no secret value in git. - Open registration is already disabled (
service.DISABLE_REGISTRATION: true). This plan keeps it that way.
Tasks
id: RAPPS-WP-0016-T01
status: progress
needs_human: true
blocking_reason: "Tooling and runbook ready; founder runs make forgejo-breakglass-seal and make forgejo-breakglass-verify."
priority: high
state_hub_task_id: "98004ed0-83e6-5f6e-9b18-15b8b2aec2e7"
T01 — Make the local administrator a sealed break-glass
Before anything about sign-in changes: confirm the local administrator account
works, keep its credential only in OpenBao, and document recovery (who, how,
where it is logged) in docs/forgejo-on-railiance01.md. Verify one break-glass
sign-in and record it without the credential.
Acceptance: a recorded break-glass sign-in, with the recovery path written down. This is the "never lock ourselves out" floor for every later step.
id: RAPPS-WP-0016-T02
status: wait
depends_on: [RAPPS-WP-0016-T01, KEY-WP-0038-T02]
blocking_reason: "Needs break-glass in place and the NetKingdom client registered with its secret in custody."
priority: high
state_hub_task_id: "13cd3aec-c87d-5d3f-a421-39d8ff131edd"
T02 — Add the NetKingdom authentication source
- an ExternalSecret delivering the
forgejoclient secret from OpenBao to a Secret in theforgejonamespace. Custody path isplatform/workloads/keycape/forgejo, fieldCLIENT_SECRET, read through roleworkload-kv-read-keycape-forgejo-forgejo(net-kingdom 074b3a0; replaces the earlierplatform/workloads/forgejo/netkingdom-oidc-clientproposal). The SA/SecretStore/ExternalSecret shape follows the NK-WP-0048deliver-consumer-secretreceipt contract (docs/evidence/nk48-t16-owner-review/owner-review-railiance-apps.json) gitea.oauth: namenetkingdom(must match the redirect URI registered in key-cape), provideropenidConnect, auto-discovery fromhttps://kc.coulomb.social/.well-known/openid-configuration, scopesopenid profile email groups, group-claim namegroupsoauth2_clientsettings: no automatic account creation for unknown subjects; account linking to existing local accounts by username after a successful local sign-in (so the founder and agent accounts keep their history)- Helm upgrade with the previous revision noted for rollback
Local password sign-in stays enabled.
Acceptance: the "Sign in with netkingdom" option appears. Local sign-in still
works. Rollback is one helm rollback to the noted revision.
id: RAPPS-WP-0016-T03
status: wait
depends_on: [RAPPS-WP-0016-T02]
blocking_reason: "Linking and team mapping follow a working authentication source."
priority: high
state_hub_task_id: "81f072aa-c316-511e-a2cd-21dd1b1d0a00"
T03 — Link accounts and map groups to teams
- The founder links their account through NetKingdom (MFA), then signs in again through NetKingdom only and sees the same repositories, organisations and admin rights.
- Map NetKingdom groups (names agreed in KEY-WP-0038-T01) to organisation teams: owners and readers at least. Create the read-only teams that ORGREF-WP-0002-T06 consumers will use.
- Apply KEY-WP-0038-T03's decision on agents and services: NetKingdom sign-in, or scoped tokens bound to service identities.
Acceptance: founder and one agent work through NetKingdom; group-to-team mapping verified by adding and removing one test membership; break-glass still works.
id: RAPPS-WP-0016-T04
status: wait
depends_on: [RAPPS-WP-0016-T03]
needs_human: true
blocking_reason: "Restricting local password sign-in is a founder decision once NetKingdom sign-in is proven."
priority: medium
state_hub_task_id: "32c54737-c40f-5fde-9b91-163f8dcb0068"
T04 — Decide on local password sign-in
Once NetKingdom sign-in has been used for a while without problems, the founder decides whether local password sign-in is turned off for everyone except break-glass. This is not required to close the forge; it is the next tightening step, taken separately.
id: RAPPS-WP-0016-T05
status: wait
depends_on: [RAPPS-WP-0016-T02]
blocking_reason: "Waits for the NK-WP-0048-T16 option decision and net-kingdom's answer to the Apps needs-change record."
priority: medium
state_hub_task_id: "728786c9-f1f9-5983-a6a4-dea21faf67f5"
T05 — Apps owner seams for NK-WP-0048 consumer steps
Implement the real Apps capabilities behind the deliver-consumer-secret and
hand-over adapters, as owner-run paths (option C): owner_apply /
owner_remove emitting netkingdom.consumer-secret-delivery.v1 receipts from the
T02 objects; a consumer verifier that observes Forgejo sign-in and the T03
positive/negative group probes; and a committed-evidence hand-over receipt store.
See the owner-review record for the contract.
Acceptance: receipts produced from the live T02/T03 run validate against the adapters' checks with no value-bearing keys.
Also in scope: stale node credential
The k3s registries.yaml on railiance01 still holds a login for the frozen Gitea
host 92.205.130.254 (ORGREF-WP-0002-T02). Coordinate its removal with the node
owner when ORGREF-WP-0002-T06 adds the forge registry login, in the same change.