pairing T1: the config server runs on the IDIP gateway and the descriptor's two routes answer at the apex #1510

Closed
opened 2026-09-16 03:13:07 +00:00 by ben · 2 comments
Owner

Parent

Spec #1495 (community app pairing — the descriptor and config server on the gateway, the S3a wallet choice and S3a-APP, the Coa submission at the pipeline tail, the app card). Program map #1293 (the community wallet). Design contract: ADR 0226 (amended by ADRs 0235, 0236, 0238 and the 2026-09-15 spaces amendment) and DDR 0228 (amended by DDR 0239).

Stories 6–7 of the spec.

What to build

An operator who founds on the IDIP path gets a gateway that is a community backend by construction:
Mātou's config server runs as one more unit of the identity stack, and the community's own apex answers
the two descriptor routes, so any app build can point at the address people already know with no rebuild.
A community founded with passwords and passkeys gets none of it.

Acceptance criteria

  • On every IDIP path (rented, own VPS, machine at your place, private), the identity stack renders the
    config server as its own unit beside the identity service, the witness and the schema server, with
    a declared health check the deploy waits on (ADR 0112)
  • Its admin token is minted by a clan-vars generator; the token appears in no rendered config, no log
    and no served document
  • Its data directory joins the identity dataset's declared state (ADR 0080) — a rendering of the roster,
    small and rebuildable
  • The front door proxies GET /api/config and GET /api/client-config on the bare apex to the
    config server over loopback; every other apex path is unchanged (the Portal, the sign-in route, the
    steward API), and the identity subdomain doors are untouched
  • The same two routes exist on the in-guest apex of the private path
  • The config server's write door is never routed publicly — a request to it from outside the
    gateway does not reach the service
  • A kanidm founding renders no config server unit, no apex routes and no descriptor
  • Renders are deterministic

Blocked by

None — can start immediately.

Task manifest

task: config-server-unit-and-apex-routes
implements_flow: p1-founding
implements_edge: "S4 → S12 (the identity stack stands up)"
seam: internal/clan render tests (the RenderKeri_* / RenderFrontDoor_* precedent)
depends_on: []
out_of_scope: [the document's contents, the writer, any-sync, the Coa submission]
needs_human_decision: []
## Parent Spec **#1495** (community app pairing — the descriptor and config server on the gateway, the S3a wallet choice and S3a-APP, the Coa submission at the pipeline tail, the app card). Program map **#1293** (the community wallet). Design contract: **ADR 0226** (amended by ADRs 0235, 0236, 0238 and the 2026-09-15 spaces amendment) and **DDR 0228** (amended by DDR 0239). Stories 6–7 of the spec. ## What to build An operator who founds on the IDIP path gets a gateway that is a **community backend** by construction: Mātou's config server runs as one more unit of the identity stack, and the community's own apex answers the two descriptor routes, so any app build can point at the address people already know with no rebuild. A community founded with passwords and passkeys gets none of it. ## Acceptance criteria - [ ] On every IDIP path (rented, own VPS, machine at your place, private), the identity stack renders the config server as its **own unit** beside the identity service, the witness and the schema server, with a declared health check the deploy waits on (ADR 0112) - [ ] Its admin token is minted by a clan-vars generator; the token appears in no rendered config, no log and no served document - [ ] Its data directory joins the identity dataset's declared state (ADR 0080) — a rendering of the roster, small and rebuildable - [ ] The front door proxies `GET /api/config` and `GET /api/client-config` on the **bare apex** to the config server over loopback; every other apex path is unchanged (the Portal, the sign-in route, the steward API), and the identity subdomain doors are untouched - [ ] The same two routes exist on the in-guest apex of the private path - [ ] The config server's **write door is never routed publicly** — a request to it from outside the gateway does not reach the service - [ ] A kanidm founding renders no config server unit, no apex routes and no descriptor - [ ] Renders are deterministic ## Blocked by None — can start immediately. ## Task manifest ```yaml task: config-server-unit-and-apex-routes implements_flow: p1-founding implements_edge: "S4 → S12 (the identity stack stands up)" seam: internal/clan render tests (the RenderKeri_* / RenderFrontDoor_* precedent) depends_on: [] out_of_scope: [the document's contents, the writer, any-sync, the Coa submission] needs_human_decision: [] ```

swarm-claim host=elitebook-distributed-server-03 run=24975
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=24975 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1510 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1510,
  "status": "success",
  "commits": [
    "127e4974e2b73159183c7f2108d5ad734258f1f0"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/frontdoor.go",
    "internal/clan/keri.go",
    "internal/clan/keri_test.go",
    "internal/keria/backup.go",
    "internal/keria/backup_test.go"
  ],
  "tests": [
    {
      "command": "go test -count=1 ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "go test -count=1 ./internal/keria/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/... ./internal/keria/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/ internal/keria/ (empty)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "config server rendered as its own unit beside identity/witness/schema with a declared health check (ADR 0112) on every IDIP path": "internal/clan/keri.go renderConfigServerUnit (systemd.services.matou-config-server, ExecStartPost=${healthWait \"http://127.0.0.1:3904/api/health\"}) called in RenderKeri, which writeGatewayIdentityModules writes on every IDIP path (public + private in-guest); TestRenderKeri_DistinctUnitsEachWithADeclaredCheck",
    "admin token minted by a clan-vars generator; token in no rendered config, log or served document": "renderConfigServerAdminToken (generator config-server-admin-token, openssl, EnvironmentFile CONFIG_ADMIN_TOKEN); TestRenderKeri_ConfigServerAdminTokenIsAGeneratorNeverInTheRender asserts the value never renders and no CONFIG_ADMIN_TOKEN= env attr",
    "data directory joins the identity dataset's declared state (ADR 0080) — a rendering of the roster, small and rebuildable": "StateDirectory=matou-config (keri.go) + internal/keria/backup.go copies /var/lib/matou-config in the same quiesce window as the roster, blip.Covered now three trees; TestSnapshotQuiesceWindowAndRosterAtomicity",
    "front door proxies GET /api/config and /api/client-config on the bare apex to the config server over loopback; every other apex path unchanged; identity subdomain doors untouched": "internal/clan/frontdoor.go renderConfigServerRoutes inside the @portal handle (reverse_proxy @config http://127.0.0.1:3904, GET/HEAD); TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts @allow proxy + bundle shell intact and renderKeriIngress untouched",
    "the same two routes exist on the in-guest apex of the private path": "renderPortalRoute called from renderPrivateCaddy with cfg.Keri != nil; TestRenderFrontDoor_ConfigServerRoutesOnThePrivateApex",
    "the config server's write door is never routed publicly": "renderConfigServerRoutes matches method GET HEAD only, and the module opens no firewall port on 3904; a POST from outside matches no apex route and never reaches :3904; TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts method GET HEAD",
    "a kanidm founding renders no config server unit, no apex routes and no descriptor": "RenderKeri is called only on the IDIP path (writeGatewayIdentityModules); renderConfigServerRoutes gated on cfg.Keri != nil; TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts the kanidm path renders no /api/client-config and no 127.0.0.1:3904",
    "renders are deterministic": "no maps in the new code; TestRenderKeri_Deterministic and TestRenderFrontDoor_Deterministic pass"
  },
  "summary": "Mātou's config server lands as a unit of the IDIP identity stack and the bare apex proxies GET /api/config + /api/client-config to it over loopback; the kanidm path renders none.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1510 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1510, "status": "success", "commits": [ "127e4974e2b73159183c7f2108d5ad734258f1f0" ], "changed_files": [ "STATUS.md", "internal/clan/frontdoor.go", "internal/clan/keri.go", "internal/clan/keri_test.go", "internal/keria/backup.go", "internal/keria/backup_test.go" ], "tests": [ { "command": "go test -count=1 ./internal/clan/...", "exit_code": 0 }, { "command": "go test -count=1 ./internal/keria/...", "exit_code": 0 }, { "command": "go vet ./internal/clan/... ./internal/keria/...", "exit_code": 0 }, { "command": "gofmt -l internal/clan/ internal/keria/ (empty)", "exit_code": 0 } ], "criteria": { "config server rendered as its own unit beside identity/witness/schema with a declared health check (ADR 0112) on every IDIP path": "internal/clan/keri.go renderConfigServerUnit (systemd.services.matou-config-server, ExecStartPost=${healthWait \"http://127.0.0.1:3904/api/health\"}) called in RenderKeri, which writeGatewayIdentityModules writes on every IDIP path (public + private in-guest); TestRenderKeri_DistinctUnitsEachWithADeclaredCheck", "admin token minted by a clan-vars generator; token in no rendered config, log or served document": "renderConfigServerAdminToken (generator config-server-admin-token, openssl, EnvironmentFile CONFIG_ADMIN_TOKEN); TestRenderKeri_ConfigServerAdminTokenIsAGeneratorNeverInTheRender asserts the value never renders and no CONFIG_ADMIN_TOKEN= env attr", "data directory joins the identity dataset's declared state (ADR 0080) — a rendering of the roster, small and rebuildable": "StateDirectory=matou-config (keri.go) + internal/keria/backup.go copies /var/lib/matou-config in the same quiesce window as the roster, blip.Covered now three trees; TestSnapshotQuiesceWindowAndRosterAtomicity", "front door proxies GET /api/config and /api/client-config on the bare apex to the config server over loopback; every other apex path unchanged; identity subdomain doors untouched": "internal/clan/frontdoor.go renderConfigServerRoutes inside the @portal handle (reverse_proxy @config http://127.0.0.1:3904, GET/HEAD); TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts @allow proxy + bundle shell intact and renderKeriIngress untouched", "the same two routes exist on the in-guest apex of the private path": "renderPortalRoute called from renderPrivateCaddy with cfg.Keri != nil; TestRenderFrontDoor_ConfigServerRoutesOnThePrivateApex", "the config server's write door is never routed publicly": "renderConfigServerRoutes matches method GET HEAD only, and the module opens no firewall port on 3904; a POST from outside matches no apex route and never reaches :3904; TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts method GET HEAD", "a kanidm founding renders no config server unit, no apex routes and no descriptor": "RenderKeri is called only on the IDIP path (writeGatewayIdentityModules); renderConfigServerRoutes gated on cfg.Keri != nil; TestRenderFrontDoor_ConfigServerRoutesOnTheApex asserts the kanidm path renders no /api/client-config and no 127.0.0.1:3904", "renders are deterministic": "no maps in the new code; TestRenderKeri_Deterministic and TestRenderFrontDoor_Deterministic pass" }, "summary": "Mātou's config server lands as a unit of the IDIP identity stack and the bare apex proxies GET /api/config + /api/client-config to it over loopback; the kanidm path renders none.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1510
No description provided.