gateway: the private path renders the real front door, and deploying a routed service adds its route (drive-arc T2) #359
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
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#359
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?
Slice T2 of the Nextcloud-provision drive arc —
docs/superpowers/specs/2026-08-09-nextcloud-provision-e2e-design.md(commitc72bff1)Two halves, both production-shaped:
(a) Front door on the private path. When
GatewayFacts.Publicis nil, the guest still renders Caddy: bound to guest 443; wildcard*.<apex>cert from a new guest-CA-signed clan-var (thekanidm-tlsgenerator pattern,vmguest.go); the acme DNS-01 block replaced by local cert files; a fourth qemu hostfwd127.0.0.1:<web>→443(internal/vm/manager.go+ unit regexes +evidence.tsreader); guest/etc/hostsmaps the apex labels to loopback and the guest trusts its own CA (security.pki.certificateFiles) so the in-guest health check passes TLS.(b) Route on deploy.
attachCatalogueService(internal/provision/deploy.go) also drivesAttachFrontDoorwith the deployed service'sLiveServiceroute — today no production path ever adds a route. Nextcloud's nginx binds a loopback port (dissolving the Caddy:80/443 vs nginx:80 collision, cf.meetings.go's mesh-port precedent); the front door proxies to it.The files route ships WITHOUT
forward_auth(ADR 0150): Nextcloud's own OIDC login is the wall; gating it rides the auth-gate follow-up.Accept
configuration.niximportsfront-door.nix; Caddy serveshttps://files.<apex>→ Nextcloud andhttps://id.<apex>→ kanidm on the guest.https://files.<apex>/status.phppasses TLS + resolution.nix-instantiate --parsesmoke over the composed config.Landed in
6224ea2on origin/main (drive-arc T2).(a) Front door on the private path.
assembleGatewayLiveSetnow places aFrontDoorLiveSet{Private}wheneverPublicis nil but aCommunityApexis carried (ADR 0149), so the composedconfiguration.niximportsfront-door.nixbesidegateway-guest.nix(acceptance #1). The private render (frontdoor.gorenderPrivateFrontDoor): Caddy on guest 443; a locally guest-CA-signed*.<apex>cert from a newfront-door-tlsclan-var (the kanidm-tls generator pattern); localtls <cert> <key>in place of the acme DNS-01 block; apex labels mapped to loopback innetworking.hosts; the guest trusts its own CA viasecurity.pki.certificateFiles(so the in-guestfiles.<apex>/status.phpprobe resolves + validates TLS, acceptance #3);id.<apex>proxied to the guest baseline's loopback kanidm. It declares NOservices.kanidmof its own (the baseline owns the one instance) and NO acme-dns. A fourth qemu hostfwd127.0.0.1:<web>->443(vm/manager.goWebPort/webFwdRE, +evidence.tsguestWebPort).(b) Route on deploy.
attachCatalogueServicenow drivesAttachFrontDooron the private path (the production path that finally ADDS a route, acceptance #2 idempotent) with the deployed files service on Nextcloud's new nginx LOOPBACK bind (NextcloudLoopbackPort8081, dissolving the Caddy:443 vs nginx:80 collision, cf. meetings.go). Files route ships UNGATED (ADR 0150).AttachFrontDoorjoins theClaninterface;WithPrivateFrontDoor()gates the deploy path, wired on the.ourcloud.internalapex.Verification: seam tests (render / attach / assembly / deploy) +
nix-instantiate --parseclean over the composed private front door; the full go-ci gate is green on push (acceptance #4). The full nixosSystem eval + the live TLS/health-probe pass ride the T6 drive.Notes for T6: kanidm origin stays
localhost:<KanidmPort>(the S12 founding ceremony keeps its independent green) — flipping it behindid.<apex>is T4/T6 OIDC work.security.pki.certificateFilesneeds the CA at BUILD time; thefront-door-tlscais a SECRET var (the kanidm-tls preflight-eval reasoning) — if the drive's preflight eval or build trips on the CA-trust timing, that is the first expected red.T4 (files OIDC; operator=admin) is now unblocked — it proves through this wire.