updates: a signed release never carries idss-idp — an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1689
Loading…
Add table
Add a link
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?
What
A signed fleet release carries exactly three artifacts —
control-plane,control-panel,agent(internal/matourelease/matourelease.go:49-55,scripts/release-rail/publish.sh:89-112,174-177; the livetestingmanifest at get.idss.nz lists those three URLs and nothing else). The lander touches only the control-plane binary, the panel dir and the agent cache (internal/fleetland/fleetland.go:86-89).The IDIP bridge
idss-idpreaches a gateway ONCE, at founding (scripts/assemble-payload.shstages it; Supply seeds/srv/idss/bin/idss-idp). Nothing in the update lane ever re-lands or restarts it: the ADR 0259 self-restart issystemctl restart --no-block idss-control-planeonly, and theidss-idpunit has noPartOf/Requireson the control plane (internal/clan/idssidp.go:250-252).Consequence
An IDIP community born on
testing(founding pin9d7fbe8e) updates its control plane, control panel and agent forever and runs its founding-day sign-in bridge forever. A security fix incontrol-plane/cmd/idss-idpnever reaches a running community; and any change that moves the control plane ↔ bridge contract in lockstep (the descriptor,/login/app/*, #1687-class changes) lands one half only. The keri-web browser bundle DOES update (it rides inside the control-panel tarball), so the browser half and the bridge half can also drift apart.Proposed default (ADR 0174 two-way door — amends ADR 0248's bundle)
idss-idprole to the release manifest;publish.shbuilds it; the cutter takes--idss-idp./srv/idss/bin/idss-idpkeeping*.previous(same rollback rule as the control plane), only on a gateway where the unit exists (a Kanidm-path gateway ignores the role).idss-idpafter the swap;Resume's health verdict on an IDIP gateway includes the bridge answering (https://id.<apex>/login200), so a bridge that cannot boot rolls the release back.Found while preparing the hand re-founding of Whakatōhea Demo (rented + IDIP, #1562). Relates to #1562, ADR 0248, ADR 0259.
Why human
Sign-in trust surface: this makes every IDIP community's sign-in bridge replaceable, unattended, by a signed release. Proposed default ruling is in the body (land + restart + bridge in the health verdict, rollback on a bridge that cannot answer). Ben rules before anything lands.
RULED by Ben 2026-09-21 — ship
idss-idpin the signed release, same policy as everything else, with two conditionsWhy: leaving the bridge out buys no safety. A release already replaces
keri-web(the browser code that derives the passcode from the recovery phrase) and the control plane (sessions, the front-door gate), unattended, under the same signature. The trust boundary is the release key, not which binary is inside. Excluding the bridge only guarantees drift — and today it is the worst drift: the browser half of sign-in updates, the server half never does. A sign-in security fix that cannot reach a running community is the larger risk.Rejected: "bridge-changing releases always wait for a human". It makes sign-in security fixes the ones that sit unapplied — the reason the manual "restart to finish" button was rejected in ADR 0259.
Build brief (amends ADR 0248's bundle; ADR 0259's restart + health rules extend to the bridge)
idss-idptointernal/matourelease;cmd/release-cuttakes--idss-idp;scripts/release-rail/publish.shbuilds./control-plane/cmd/idss-idp(static, linux) and uploads it under the versioned path like the other three. A manifest WITHOUT the role stays valid (older releases, replay tests).internal/fleetlandlands it at/srv/idss/bin/idss-idp, keepingidss-idp.previous(same rule as the control plane). Only on a gateway where theidss-idpunit exists — a Kanidm-path gateway ignores the role (does not download it).idss-idp, andResume's verdict on an IDIP gateway requires the self-test green. A bridge that fails it rolls the WHOLE release back (*.previousfor every landed role) → U4x, ADR 0067 attempt budget unchanged. The #1639 can't-boot restore guard covers the bridge unit too.--no-blockcontrol-plane restart → Resume verdict. A bridge failure must be caught BEFORE the control plane restarts, while the old control plane can still roll back.docs/architecture/11-update-supply-chain.md, STATUS.md.Sequencing: blocks #1562's production-key mint + first
stablepromote (real communities must not enter a lane that never updates their sign-in program). Does NOT block the Whakatōhea Demo hand re-founding in progress.swarm-claim host=matou-dev-server-01 run=29380
(automated multi-host claim — lowest live claim id works this ticket)
Built per Ben's build brief (2026-09-21) — live drive leg deferred under ADR 0174
Implemented the whole brief in code + seam tests + docs, deferring ONLY the live IDIP-gateway drive leg (brief item 6's live portion) to the next real IDIP fire — a swarm worker cannot stand up a live IDIP gateway, so the live proof rides the #1688 prove-it drive / #1614 Updates drive extension exactly as #1688 itself deferred its live founding leg. Two-way door (ADR 0174 — veto anytime): revertible by dropping the role/guard, and everything landed is proven offline; the deferred leg proves nothing new about the design Ben ruled, only that it holds on real hardware.
Landed (seam-proven):
matourelease/updateArtifactIdssIdp;release-cut --idss-idp;publish.shbuilds./control-plane/cmd/idss-idpand uploadsart-idss-idp. A manifest WITHOUT the role stays valid.fleetlandlands/srv/idss/bin/idss-idpkeeping*.previous, only where the unit exists (seeded-binary presence is the gate; Kanidm path ignores it), dropping anidss-idp.changedsentinel only on a real swap.GET /selftest(keys loaded, KERIA reachable, able to mint a token — 200/503). At the land stage, before any node deploys and before the ADR 0259 control-plane restart, theupdatebridge guard restarts a changed bridge and requires self-test green; a red verdict rolls the whole release back (every landed*.previousrestored, bridge restarted onto its previous binary so sign-in still answers) and counts the attempt as a refusal (CheckBridgeSelfTest).Condition 3's required finding (recorded in the ADR amendment): a bridge restart re-hydrates established sessions from bbolt (#794), so a member with a live session is NOT signed out — only a member mid-login (an in-flight auth code) must retry. So a bridge-changing release blips only active in-flight logins for the restart's seconds.
Docs: ADR 0248 Decision 1 amendment,
docs/architecture/11-update-supply-chain.md, STATUS.md. Operator-facing refusal words added (dashboardrefusal.ts+ OpenAPI enum regenerated). Blocks #1562's production-key mint + firststablepromote; does not block the Whakatōhea Demo hand re-founding.close-report for #1689 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
stablepromote cannot work — it dropsidss-idp, reports success on a 409 while the production-signed feed never publishes, and nothing can servestable(fix + provepublish.sh promotebefore the production key is minted) #1971