operator-session: /authz/signin serves signin_idp — kanidm has no gate-oidc OAuth2 client #1239

Closed
opened 2026-09-05 19:29:38 +00:00 by matou-build-agent · 2 comments

Drive 20260905T190829Z (private path, target archive) went 1/2: founding-prefix green (711s), operator-session red (60s). artifacts/verdict.json records "firstRedLeg": "operator-session", "skip": 0, commit 35d7cc91.

This is not the KNOWN frontier. The named frontier is pairing-never-flips (the own-VPS carrier issue), which this drive's legs.json would carry as a skip reason — there are no skip reasons in legs.json at all, and no skipped legs. Founding went green and the drive reached the admin door for the first time on this path, so 35d7cc91's apex-name→:443-forward mapping held. What it found at the door is new.

The failure

artifacts/legs.json (and identically artifacts/journey.json's fault), leg operator-session:

the admin-door sign-in reached neither the dashboard, a login form, nor a consent prompt at https://e2e-drive.idss.internal/authz/signin?rd=https://admin.e2e-drive.idss.internal/ — the page reads: {"code":"signin_idp","message":"the community IdP could not be reached to start sign-in"}

The same record shows the door itself answered: "door": {"url": "https://admin.e2e-drive.idss.internal:45983/", "status": 302}. So the front door redirected to the gate correctly; the gate is what failed.

Evidence chain (three logs, same second, 19:21:48)

  1. logs/guest-control-plane.log:144 — the gate's own account:

    level=WARN msg="controlapi: signin could not resolve the IdP authorize endpoint" component=control-plane err="oidc discovery: status 404: \"nomatchingentries\""

  2. logs/guest-kanidm.log:197-200 — the matching server-side record:

    method: GET | uri: /oauth2/openid/gate-oidc/.well-known/openid-configuration | ... | status_code: 404
    WARN 🚧 [warn]: Invalid OAuth2 client_id (have you configured the OAuth2 resource server?)
    ERROR 🚨 [error]: Unable to access discovery info | err: NoMatchingEntries

  3. The IdP is otherwise healthy, so this is not "kanidm down". The same log shows the operator's passkey ceremony committing and a real cookie session minted three seconds earlier — logs/guest-kanidm.log:187:

    Issuing Cookie session (privilege_capable) 991ba342-… for operator@localhost 82c0b222-…

    and logs/guest-failed-units.log reports 0 loaded units listed — nothing failed on the box.

So: kanidm has no OAuth2 resource server named gate-oidc. The gate is running the authorization-code flow against a client the IdP has never been told about.

The defect, proved from the rendered artifact

The render this drive actually deployed is in the run directory, and it is half-wired:

  • state/clan-config/machines/gateway/gateway-guest.nix:92 — the client secret IS minted: clan.core.vars.generators.gate-oidc = { files.secret = { owner = "kanidm"; … }; }, under a comment (:87-90) that says the secret is what "kanidm's gate-oidc oauth2 client is provisioned with (basicSecretFile, gatewayKanidmProvision)".

  • state/clan-config/machines/gateway/gateway-guest.nix:129-153 — but the services.kanidm.provision block on this path declares only groups (operators, members, kaitiaki, nextcloud_admins) and persons.operator. There is no systems.oauth2 attribute anywhere in the block. gatewayKanidmProvision — the function the comment names — is not what rendered this machine.

  • state/clan-config/machines/gateway/gateway-guest.nix:288 — the control-plane unit nonetheless exports IDSS_GATE_OIDC_SECRET="$(cat …gate-oidc…)".

  • With apex + secret both present, the substrate wires itself up — logs/guest-control-plane.log:140:

    auth gate session substrate wired: /authz/signin runs the OIDC flow and mints the community SSO session (ADR 0074) idp=id.e2e-drive.idss.internal bridge=false

Secret generated, env exported, substrate wired, client never provisioned. Deterministic, not a flake: operator-session is the first door-sign-in leg on this path, so it will red every private-path drive from here.

Suspected layer

Product — the guest NixOS render, not the harness and not infra. The VM/guest kanidm provision block diverges from the public/full-install one by omitting the gate client. logs/healer-claude.out (a healer agent already ran, refused, and left its note) places this at internal/clan/vmguest.go — kanidmServer (:660-683) vs gatewayKanidmProvision (:1386-1396). I confirmed the rendered-output half of that claim byte-for-byte above; I could not verify its Go file/line citations — the source tree is outside my read scope for this run.

What plugging it needs

Two self-consistent shapes exist and the code does neither, which is why this wants a ruling rather than a patch:

  • (A) Provision the client on the VM path — add systems.oauth2."gate-oidc" (originUrl https://<apex>/authz/callback, basicSecretFile = the existing generator, scopeMaps.idm_all_persons) plus the idm_all_persons group the module's eval-time check needs, and the consent-disable oneshot that today is public-path-only — otherwise every sign-in lands on kanidm's "Consent to Proceed" page (the DDR 0158 / #644 shape) and reds the next step instead of this one.
  • (B) Let the substrate rest on the VM path — stop exporting IDSS_GATE_OIDC_SECRET on a VM-path gateway so the gate falls back to the header-trust resolver. Self-consistent, but /authz/signin stays unwired and operator-session stays red with a 404 instead of signin_idp.

(A) is what the leg is written to prove. Either way the change carries the ADR 0042 same-commit obligation on the VM/full-install divergence doc, which records no gate-oidc divergence today — so there is no prior decision to read off.

Follow-on hazard worth checking in the same pass (unverified): gateway-guest.nix:122-123 sets kanidm's domain = "localhost" and origin = "https://localhost:41075", while the gate discovers at id.e2e-drive.idss.internal. kanidm builds its discovery document's issuer/authorization_endpoint from that origin, so once the client exists the browser may be redirected to localhost:41075 and the leg reds one step later.

What is absent from this run directory

  • No live-box section was appended to my brief — no access line, so I ran nothing against the box and diagnosed from the harvested logs alone. logs/guest-unit.log:3 shows idss-guest.service still active (running) with ssh forwarded on 127.0.0.1:46075, so a live box exists; I had no grant to use it.
  • logs/droplet-journal.txt does not exist. This is a VM-mode guest (ADR 0056), not a droplet. What was harvested is logs/guest-journal.log — host-side qemu unit lines only (boot/stop), no guest-side journal — plus per-service pulls (guest-kanidm.log, guest-control-plane.log, guest-caddy.log, …).
  • logs/guest-files-oidc.log harvested nothing — the collector's own error is the whole file: exit 1: Command failed: ssh … journalctl -u 'nextcloud*' -u 'kanidm-provision*' … / Failed to add filter for units: No data available. No unit matches kanidm-provision* on this guest, so the harvest that would most directly show what provisioning did is empty on every private-path drive. Minor, harness-side, not the cause — but it made this diagnosis go the long way round via guest-kanidm.log.
  • logs/state-logs.log is 0 bytes; logs/reporter-claude.err and logs/healer-claude.err are 0 bytes.
  • logs/guest-kanidm.log is a journalctl -n 200 tail, so the start of the provisioning run is truncated; the surviving Syncing oauth2 resource servers line (:19) emits no per-client output, unlike the person/group lines around it.
  • artifacts/host.json records "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT" — cosmetic host-probe noise; the drive runs qemu from payloadMode: /home/swarm/swarm/rehearsal-payload and the VM booted fine.

drive 20260905T190829Z red at operator-session: the admin-door sign-in reached neither the dashboard, a login form, nor a consent prompt at https://e2e-drive.idss.internal/authz/signin?rd=https://admin.e2e-drive.idss.internal/ — the page reads: "
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260905T190829Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

Drive `20260905T190829Z` (private path, target `archive`) went **1/2**: `founding-prefix` green (711s), `operator-session` red (60s). `artifacts/verdict.json` records `"firstRedLeg": "operator-session"`, `"skip": 0`, commit `35d7cc91`. **This is not the KNOWN frontier.** The named frontier is pairing-never-flips (the own-VPS carrier issue), which this drive's `legs.json` would carry as a skip reason — there are **no skip reasons in `legs.json` at all**, and no skipped legs. Founding went green and the drive reached the admin door for the first time on this path, so `35d7cc91`'s apex-name→`:443`-forward mapping held. What it found at the door is new. ## The failure `artifacts/legs.json` (and identically `artifacts/journey.json`'s `fault`), leg `operator-session`: > the admin-door sign-in reached neither the dashboard, a login form, nor a consent prompt at `https://e2e-drive.idss.internal/authz/signin?rd=https://admin.e2e-drive.idss.internal/` — the page reads: `{"code":"signin_idp","message":"the community IdP could not be reached to start sign-in"}` The same record shows the door itself answered: `"door": {"url": "https://admin.e2e-drive.idss.internal:45983/", "status": 302}`. So the front door redirected to the gate correctly; the gate is what failed. ## Evidence chain (three logs, same second, 19:21:48) 1. `logs/guest-control-plane.log:144` — the gate's own account: > `level=WARN msg="controlapi: signin could not resolve the IdP authorize endpoint" component=control-plane err="oidc discovery: status 404: \"nomatchingentries\""` 2. `logs/guest-kanidm.log:197-200` — the matching server-side record: > `method: GET | uri: /oauth2/openid/gate-oidc/.well-known/openid-configuration | ... | status_code: 404` > `WARN 🚧 [warn]: Invalid OAuth2 client_id (have you configured the OAuth2 resource server?)` > `ERROR 🚨 [error]: Unable to access discovery info | err: NoMatchingEntries` 3. The IdP is otherwise healthy, so this is not "kanidm down". The same log shows the operator's passkey ceremony committing and a real cookie session minted three seconds earlier — `logs/guest-kanidm.log:187`: > `Issuing Cookie session (privilege_capable) 991ba342-… for operator@localhost 82c0b222-…` and `logs/guest-failed-units.log` reports `0 loaded units listed` — nothing failed on the box. So: kanidm has **no OAuth2 resource server named `gate-oidc`**. The gate is running the authorization-code flow against a client the IdP has never been told about. ## The defect, proved from the rendered artifact The render this drive actually deployed is in the run directory, and it is **half-wired**: - `state/clan-config/machines/gateway/gateway-guest.nix:92` — the client secret IS minted: `clan.core.vars.generators.gate-oidc = { files.secret = { owner = "kanidm"; … }; }`, under a comment (`:87-90`) that says the secret is what "kanidm's gate-oidc oauth2 client is provisioned with (basicSecretFile, gatewayKanidmProvision)". - `state/clan-config/machines/gateway/gateway-guest.nix:129-153` — but the `services.kanidm.provision` block on this path declares only `groups` (`operators`, `members`, `kaitiaki`, `nextcloud_admins`) and `persons.operator`. There is **no `systems.oauth2` attribute anywhere in the block**. `gatewayKanidmProvision` — the function the comment names — is not what rendered this machine. - `state/clan-config/machines/gateway/gateway-guest.nix:288` — the control-plane unit nonetheless exports `IDSS_GATE_OIDC_SECRET="$(cat …gate-oidc…)"`. - With apex + secret both present, the substrate wires itself up — `logs/guest-control-plane.log:140`: > `auth gate session substrate wired: /authz/signin runs the OIDC flow and mints the community SSO session (ADR 0074) idp=id.e2e-drive.idss.internal bridge=false` Secret generated, env exported, substrate wired, client never provisioned. Deterministic, not a flake: `operator-session` is the first door-sign-in leg on this path, so it will red every private-path drive from here. ## Suspected layer **Product** — the guest NixOS render, not the harness and not infra. The VM/guest kanidm provision block diverges from the public/full-install one by omitting the gate client. `logs/healer-claude.out` (a healer agent already ran, refused, and left its note) places this at `internal/clan/vmguest.go` — `kanidmServer` (~`:660-683`) vs `gatewayKanidmProvision` (~`:1386-1396`). I confirmed the rendered-output half of that claim byte-for-byte above; **I could not verify its Go file/line citations** — the source tree is outside my read scope for this run. ## What plugging it needs Two self-consistent shapes exist and the code does neither, which is why this wants a ruling rather than a patch: - **(A) Provision the client on the VM path** — add `systems.oauth2."gate-oidc"` (originUrl `https://<apex>/authz/callback`, `basicSecretFile` = the existing generator, `scopeMaps.idm_all_persons`) plus the `idm_all_persons` group the module's eval-time check needs, **and** the consent-disable oneshot that today is public-path-only — otherwise every sign-in lands on kanidm's "Consent to Proceed" page (the DDR 0158 / #644 shape) and reds the next step instead of this one. - **(B) Let the substrate rest on the VM path** — stop exporting `IDSS_GATE_OIDC_SECRET` on a VM-path gateway so the gate falls back to the header-trust resolver. Self-consistent, but `/authz/signin` stays unwired and `operator-session` stays red with a 404 instead of `signin_idp`. (A) is what the leg is written to prove. Either way the change carries the ADR 0042 same-commit obligation on the VM/full-install divergence doc, which records no gate-oidc divergence today — so there is no prior decision to read off. **Follow-on hazard worth checking in the same pass (unverified):** `gateway-guest.nix:122-123` sets kanidm's `domain = "localhost"` and `origin = "https://localhost:41075"`, while the gate discovers at `id.e2e-drive.idss.internal`. kanidm builds its discovery document's `issuer`/`authorization_endpoint` from that origin, so once the client exists the browser may be redirected to `localhost:41075` and the leg reds one step later. ## What is absent from this run directory - **No live-box section was appended to my brief** — no access line, so I ran nothing against the box and diagnosed from the harvested logs alone. `logs/guest-unit.log:3` shows `idss-guest.service` still `active (running)` with ssh forwarded on `127.0.0.1:46075`, so a live box exists; I had no grant to use it. - **`logs/droplet-journal.txt` does not exist.** This is a VM-mode guest (ADR 0056), not a droplet. What was harvested is `logs/guest-journal.log` — host-side qemu unit lines only (boot/stop), no guest-side journal — plus per-service pulls (`guest-kanidm.log`, `guest-control-plane.log`, `guest-caddy.log`, …). - **`logs/guest-files-oidc.log` harvested nothing** — the collector's own error is the whole file: `exit 1: Command failed: ssh … journalctl -u 'nextcloud*' -u 'kanidm-provision*' …` / `Failed to add filter for units: No data available`. No unit matches `kanidm-provision*` on this guest, so the harvest that would most directly show what provisioning did is empty on every private-path drive. Minor, harness-side, not the cause — but it made this diagnosis go the long way round via `guest-kanidm.log`. - `logs/state-logs.log` is 0 bytes; `logs/reporter-claude.err` and `logs/healer-claude.err` are 0 bytes. - `logs/guest-kanidm.log` is a `journalctl -n 200` tail, so the start of the provisioning run is truncated; the surviving `Syncing oauth2 resource servers` line (`:19`) emits **no** per-client output, unlike the person/group lines around it. - `artifacts/host.json` records `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"` — cosmetic host-probe noise; the drive runs qemu from `payloadMode: /home/swarm/swarm/rehearsal-payload` and the VM booted fine. drive `20260905T190829Z` red at `operator-session`: `the admin-door sign-in reached neither the dashboard, a login form, nor a consent prompt at https://e2e-drive.idss.internal/authz/signin?rd=https://admin.e2e-drive.idss.internal/ — the page reads: "` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260905T190829Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: b5659a2277df -->
Owner

RULED (agent, two-way under ADR 0174 — Ben vetoes async): shape A — provision the gate client on the VM path. Shape B (let the substrate rest) is REJECTED: DDR 0172 (#511) and ADR 0074 put the control panel behind the door on the community SSO session, and #1236 (Ben, today) ruled that the private path takes the SAME door. A private path whose IdP has no gate client cannot honour either. The VM/full divergence is a DEFECT, not a recorded decision — no ADR, DDR or architecture diagram says the private-path guest omits the gate client; vmguest.go:198-207 composes gatewayKanidmProvision + gatewayGateConsentBlock for the public path only and kanidmServer (groups + operator, no systems.oauth2) for the guest, while the SAME render mints the gate-oidc secret and exports IDSS_GATE_OIDC_SECRET, so the gate wires itself against a client that never exists (the half-wired shape GOTCHAS #164 names).

What to build (internal/clan/vmguest.go)

  1. The VM guest's kanidm provision block gains systems.oauth2."gate-oidc" — originUrl https://<apex>/authz/callback (the exact signin.go callbackURL()), basicSecretFile = the existing gate-oidc generator, scopeMaps over idm_all_persons — plus the idm_all_persons group the module's eval-time check needs. Do NOT re-derive: lift the client fragment out of gatewayKanidmProvision into one function both renders call (one source, the #452/#453/#454 reuse precedent the comment already cites), so the two paths can never drift again.
  2. The consent-disable oneshot (gatewayGateConsentBlock, DDR 0158/#644) on the guest too, targeting the guest's own loopback bind — otherwise the very next step lands on kanidm's "Consent to Proceed" page.
  3. Red-first render pins, VM-path twins of gateway_attach_test.go:503-505: the VM render declares systems.oauth2."gate-oidc" with the callback originUrl + basicSecretFile on the generator, declares idm_all_persons, and carries the consent block; and the negative: a render that exports IDSS_GATE_OIDC_SECRET MUST declare the client (the half-wire can never come back). nix-instantiate --parse on the rendered guest nix as the siblings do.
  4. Known follow-on, NOT this ticket: the guest's kanidm runs domain = "localhost"; origin = "https://localhost:<port>" (the private path's local WebAuthn origin), so the discovery document will send the operator's browser to localhost:<port> — which on the operator's own machine (and the drive host) IS the guest's kanidm forward, so the operator's local sign-in is expected to work. If the leg reds one step later there, file it as a NEW ticket (private-path IdP origin vs id.), never widen this one.
  5. Harness note, separate and minor: the guest-files-oidc harvest greps kanidm-provision*, which matches no unit on the guest — the provisioning journal is empty on every private-path drive. Fix the collector's unit filter if it is a one-liner; otherwise leave it for the retro.

Close = the archive drive #1235 passes operator-session on the re-fire (the leg records the door 302 + the dashboard chrome); go test ./internal/clan/ green; ADR 0042: no diagram encodes a VM-path gate divergence, so none changes — say so in the commit.

## RULED (agent, two-way under ADR 0174 — Ben vetoes async): **shape A — provision the gate client on the VM path.** Shape B (let the substrate rest) is REJECTED: DDR 0172 (#511) and ADR 0074 put the control panel behind the door on the community SSO session, and #1236 (Ben, today) ruled that the private path takes the SAME door. A private path whose IdP has no gate client cannot honour either. The VM/full divergence is a DEFECT, not a recorded decision — no ADR, DDR or architecture diagram says the private-path guest omits the gate client; `vmguest.go:198-207` composes `gatewayKanidmProvision` + `gatewayGateConsentBlock` for the public path only and `kanidmServer` (groups + operator, no `systems.oauth2`) for the guest, while the SAME render mints the `gate-oidc` secret and exports `IDSS_GATE_OIDC_SECRET`, so the gate wires itself against a client that never exists (the half-wired shape GOTCHAS #164 names). ## What to build (`internal/clan/vmguest.go`) 1. The VM guest's kanidm provision block gains **`systems.oauth2."gate-oidc"`** — originUrl `https://<apex>/authz/callback` (the exact `signin.go` `callbackURL()`), `basicSecretFile` = the existing `gate-oidc` generator, `scopeMaps` over `idm_all_persons` — plus the **`idm_all_persons` group** the module's eval-time check needs. Do NOT re-derive: lift the client fragment out of `gatewayKanidmProvision` into one function both renders call (one source, the #452/#453/#454 reuse precedent the comment already cites), so the two paths can never drift again. 2. The **consent-disable oneshot** (`gatewayGateConsentBlock`, DDR 0158/#644) on the guest too, targeting the guest's own loopback bind — otherwise the very next step lands on kanidm's "Consent to Proceed" page. 3. **Red-first render pins**, VM-path twins of `gateway_attach_test.go:503-505`: the VM render declares `systems.oauth2."gate-oidc"` with the callback originUrl + `basicSecretFile` on the generator, declares `idm_all_persons`, and carries the consent block; and the negative: a render that exports `IDSS_GATE_OIDC_SECRET` MUST declare the client (the half-wire can never come back). `nix-instantiate --parse` on the rendered guest nix as the siblings do. 4. **Known follow-on, NOT this ticket:** the guest's kanidm runs `domain = "localhost"; origin = "https://localhost:<port>"` (the private path's local WebAuthn origin), so the discovery document will send the operator's browser to `localhost:<port>` — which on the operator's own machine (and the drive host) IS the guest's kanidm forward, so the operator's local sign-in is expected to work. If the leg reds one step later there, file it as a NEW ticket (private-path IdP origin vs id.<apex>), never widen this one. 5. Harness note, separate and minor: the `guest-files-oidc` harvest greps `kanidm-provision*`, which matches no unit on the guest — the provisioning journal is empty on every private-path drive. Fix the collector's unit filter if it is a one-liner; otherwise leave it for the retro. Close = the archive drive #1235 passes `operator-session` on the re-fire (the leg records the door 302 + the dashboard chrome); `go test ./internal/clan/` green; ADR 0042: no diagram encodes a VM-path gate divergence, so none changes — say so in the commit.
Author
Member

close-report for #1239 — status success

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

envelope
{
  "issue": 1239,
  "status": "success",
  "commits": [
    "490a6262252ca3fa4d8fd642fff333d596f5b5f7"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/vm-full-install-divergence.md",
    "internal/clan/vmguest.go",
    "internal/clan/vmguest_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The VM private-path guest provisions the gate-oidc OAuth2 client (shape A)": "kanidmServer (internal/clan/vmguest.go) now splices gateOAuth2ClientBlock apex-gated; pinned by TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (systems.oauth2.\"gate-oidc\", callback originUrl, basicSecretFile)",
    "Client fragment lifted into ONE function both renders call (no drift)": "gateOAuth2ClientBlock + idmAllPersonsGroupDecl + gateConsentUnit are shared by gatewayKanidmProvision (public) and kanidmServer/vmGuestGateConsentBlock (VM); existing public pins (TestRenderControlPlaneSurface_GateOIDCScopeMapGroupIsDeclared / _EmitsGateConsent) stay green",
    "idm_all_persons declared for the module's eval-time assertGroupsKnown (#628)": "idmAllPersonsGroupDecl emitted in kanidmServer apex-gated; pinned by TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (overwriteMembers count == 5)",
    "Consent-disable oneshot on the guest's own loopback bind (DDR 0158)": "vmGuestGateConsentBlock targets 127.0.0.1:8443; pinned by the same test (kanidm-gate-consent, KANIDM_URL=https://127.0.0.1:8443, disable-consent-prompt gate-oidc)",
    "Negative half-wire pin: exports the secret <=> declares the client": "TestRenderGatewayGuest_GateSecretImpliesClient across private/public/apexless shapes; TestRenderGatewayGuest_ApexlessPrivatePathNoGateClient",
    "Rendered private guest nix parses": "requireNixParse in TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (nix-instantiate --parse)",
    "ADR 0042 same-commit obligation": "no architecture diagram encodes a VM-path gate divergence (none changed); docs/vm-full-install-divergence.md Table A row + new DIV-5 record the convergence in this commit",
    "go test ./internal/clan/ green": "tests[2] exit_code 0"
  },
  "summary": "The VM private path now provisions the gate-oidc client + idm_all_persons group + consent-disable oneshot on the guest's own kanidm via shared render fragments, closing the half-wire that redded operator-session with signin_idp.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1239 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1239, "status": "success", "commits": [ "490a6262252ca3fa4d8fd642fff333d596f5b5f7" ], "changed_files": [ "STATUS.md", "docs/vm-full-install-divergence.md", "internal/clan/vmguest.go", "internal/clan/vmguest_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/clan/", "exit_code": 0 } ], "criteria": { "The VM private-path guest provisions the gate-oidc OAuth2 client (shape A)": "kanidmServer (internal/clan/vmguest.go) now splices gateOAuth2ClientBlock apex-gated; pinned by TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (systems.oauth2.\"gate-oidc\", callback originUrl, basicSecretFile)", "Client fragment lifted into ONE function both renders call (no drift)": "gateOAuth2ClientBlock + idmAllPersonsGroupDecl + gateConsentUnit are shared by gatewayKanidmProvision (public) and kanidmServer/vmGuestGateConsentBlock (VM); existing public pins (TestRenderControlPlaneSurface_GateOIDCScopeMapGroupIsDeclared / _EmitsGateConsent) stay green", "idm_all_persons declared for the module's eval-time assertGroupsKnown (#628)": "idmAllPersonsGroupDecl emitted in kanidmServer apex-gated; pinned by TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (overwriteMembers count == 5)", "Consent-disable oneshot on the guest's own loopback bind (DDR 0158)": "vmGuestGateConsentBlock targets 127.0.0.1:8443; pinned by the same test (kanidm-gate-consent, KANIDM_URL=https://127.0.0.1:8443, disable-consent-prompt gate-oidc)", "Negative half-wire pin: exports the secret <=> declares the client": "TestRenderGatewayGuest_GateSecretImpliesClient across private/public/apexless shapes; TestRenderGatewayGuest_ApexlessPrivatePathNoGateClient", "Rendered private guest nix parses": "requireNixParse in TestRenderGatewayGuest_PrivatePathProvisionsGateOIDCClient (nix-instantiate --parse)", "ADR 0042 same-commit obligation": "no architecture diagram encodes a VM-path gate divergence (none changed); docs/vm-full-install-divergence.md Table A row + new DIV-5 record the convergence in this commit", "go test ./internal/clan/ green": "tests[2] exit_code 0" }, "summary": "The VM private path now provisions the gate-oidc client + idm_all_persons group + consent-disable oneshot on the guest's own kanidm via shared render fragments, closing the half-wire that redded operator-session with signin_idp.", "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#1239
No description provided.