idip: catalogue services sign in through the bridge — the client mechanism, proven on Paperless #1918
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.
Blocks
Depends on
Reference
Matou/idss#1918
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?
Parent
#1915
What to build
The bridge declares a sign-in client per placed catalogue OIDC service (id, redirect, secret from the service's clan-var generator), with discovery reachable where the service's OIDC library looks. Paperless (document-archive) gains an IDIP render branch: points at the bridge, no kanidm oneshots, account keyed on the raw AID, name from
name, steward → superuser from the role claim.Acceptance criteria
Blocked by
nameswarm-claim host=matou-dev-server-01 run=34357
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime
Ruling: land the bridge client mechanism + Paperless IDIP render + wiring + tests on the render/seam tiers now, DROP
document-archivefromnotYetIDIPReady(the #1927 "drops its slug when it lands" convention), and defer AC4's LIVE PROOF (two signify wallets signing in on a real IDIP gateway, steward as admin, screenshots) to the next IDIP drive — the parent spec's live tier, exactly as #1902 (Files IDIP) deferred it.Why this is a two-way door. Every change is revertible by a later commit: dropping the guard slug is undone by re-adding
"document-archive"tonotYetIDIPReady, and the render/attach branches are gated onBridgeIDP(false on kanidm, byte-identical there). The mechanism is proven by render + seam tests (#1915 testing decisions (1) and (2)), and the "landing = drop slug" call is already governed by #1927's documented convention and #1902's precedent (Ben re-ruled #1902 to render+collision+suspend tests, no live proof). None of the one-way-door residues apply — no personal credential, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend.What landed (render/seam/wiring):
IdssIdpConfig.Services+catalogueBridgeClients,internal/clan/idssidp.go): placing document-archive adds the confidentialpaperlessclient, removing it removes it. The gateway composer derives the placed set from the present<slug>.nixmodules (reRenderPresentIdssIdpinComposeGatewayCohost+rerenderPresentGatewayModules).renderPaperlessOIDCBridge): django-allauth at the bare bridge issuer (id., ADR 0196), account keyed on the AID (the bridge'ssub), no kanidm oneshot, secret the SHAREDdocument-archive-oidc-secretclan var both the bridge and the placement read; operator → superuser via the reconciler + the bridge'spgroupsclaim (#1917).secret_env(internal/idp/config.go).PaperlessConfig/PaperlessLiveSet/PortPlacement.BridgeIDPthreado.bridgeIDPfrom the deploy.What is proven: render + seam tests — AC1 (
TestRenderIdssIdp_PlacedCatalogueServiceAddsAndRemovesItsClient,TestReRenderPresentIdssIdp_PlacementDrivesTheBridgeClient), AC2 (TestRenderPaperless_IDIPBridgeOIDC), AC3 (TestRenderPaperless_KanidmAndBridgeBranchesAreMutuallyExclusive), plus the bridge secret load and the attach threading.What is OWED (AC4): the live IDIP-gateway proof — a member and a steward signing in through a signify wallet, landing in two distinct AID-keyed Paperless accounts, the steward as superuser, with screenshots. A sandcastle iteration cannot stand up and drive a full IDIP gateway (KERI + bridge + two wallets) reliably, so this rides the next IDIP drive, the same live tier #1902/#1903 deferred. The parent spec's warning ("a render string-match alone is not proof") is honoured by keeping AC4 explicitly open, not by claiming it here. Veto by re-adding the guard slug if you want it held until the drive.
close-report for #1918 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
matou-build-agent referenced this issue2026-09-27 21:02:38 +00:00