founding: an own-domain community can never enrol its public gateway — ownVPSApex hands the enrollment an empty apex, which assembleGatewayLiveSet refuses #2185
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2185
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 happened
TuIA founding (community
6c126096…, Access rented, Address own-domaintech.tuia.co), operator app 2026.11.3425 atf780f625, 2026-11-10 11:17 local. Seed and supply passed (#2183 is fixed); the stand-up then faulted at enroll-configure:Why
internal/founding/ownvpspath.goownVPSApexreturns the draft's host only whenAddress.Kind == AddressSubdomain; an own-domain draft yields"".publicGatewayFacts(selfhostedpath.go) puts that into bothCommunityApexandPublic.Apex, andassembleGatewayLiveSet(clan/gateway_attach.go:204) refuses a public gateway whosePublic.Apexis empty. So every own-domain founding on a public carrier (rented, own-VPS, self-hosted full-install) is a dead end at enrollment — the point stage happily shows the operator the four own-domain records (A,*. A,NS acme.,A acme-dns., access.gogatewayDNSRecords) and verifies them, then the enrollment refuses the very apex those records were set for.The empty apex dates from #383 (own-VPS carrier, subdomain-only);
TestPublicGatewayFactseven pins "own-domain facts … want empty apex". The rest of founding already treats an own domain as the public apex:portalApex(handoff.go) returnsAddress.Hostfor subdomain OR own domain,communityApex(services.go) builds on it, deploy.go records it as the seat's apex, andprobeSpecexpects the gateway to run acme-dns for the delegated zone (ADR 0014). Only the enrollment facts were left behind.Fix
ownVPSApexreturnsAddress.Hostfor the own-domain kind too (an operator's own verified domain is not a fabricated apex — it is the name the point stage wired). Consequences, all intended by the existing design:Public.Apex/CommunityApex=tech.tuia.co; the front door derivesid.,admin.,mesh., the acme-dns zone under it.publicCeremonyHost=id.<own domain>on an own-domain live box (same as the subdomain path; the kanidm cookie-origin fix #498/#660 now covers own domains too).Tests:
TestPublicGatewayFactsown-domain case flipped to expect the apex;TestOwnVPSApexadded;TestPublicCeremonyHostgains an own-domain case (the old "own-domain" case had no Address at all — renamed "no address").Not in this fix
NS acme.→acme-dns., Aacme-dns., all at 170.64.232.153). #2184 covers asking for them at the right time.<slug>.idss.internaltoidss/apexon every path (privatepath.goseedCommunityConfigis shared); deploy.go overwrites it with the public apex later, so it only matters between seed and deploy.Triage ruling
Category:
bug— every own-domain founding on a public carrier (rented, own-VPS, self-hosted full-install) dead-ends at enroll-configure. State:ready-for-agent.Ruled by agent under ADR 0174 — veto anytime.
ready-for-agent(push), notready-for-human. The one judgement call is whether making an own-domain public gateway enrol is a security-posture widening (a one-way door). It is not: the public-gateway surface already exists for the subdomain path, and the own-domain path is already designed as public everywhere downstream —portalApex(handoff.go) returnsAddress.Hostfor own-domain,communityApex(services.go) builds on it,deploy.gorecords it as the seat apex,probeSpecexpects acme-dns for the delegated zone (ADR 0014), and the kanidm cookie-origin fix (#498/#660) already covers own domains. Only the enrollment facts (ownVPSApex) were left behind at #383. Completing an intended design is not loosening auth or opening a new deliberately-public surface.ownVPSApex, and provable by unit tests (below) with no live infrastructure. Not on the one-way-door list (no personal creds, no auth loosening, no member-facing trust accept, no data destruction, no spend, no hardware).go test ./internal/founding/... ./internal/clan/....Verification (confirmed against HEAD
f780f625)Reproduced the full fault chain in the code as reported:
internal/founding/ownvpspath.go:851—ownVPSApexreturnsd.Address.Hostonly whenKind == AddressSubdomain, else"".internal/founding/selfhostedpath.go:130,165—publicGatewayFactsfeeds that into bothCommunityApexandPublic.Apex.internal/clan/gateway_attach.go:204—assembleGatewayLiveSetrefuses a public gateway with an emptyPublic.Apex, raising the exact error quoted in the report (a public gateway needs its apex … (ADR 0113); none supplied).internal/founding/selfhostedpath_internal_test.go:45—TestPublicGatewayFactscurrently pins the own-domain case towant empty apex; this must flip.(The report cited
clan/gateway_attach.go:204; the file is atinternal/clan/gateway_attach.go:204— same line, same error string.)Agent brief
Goal: an own-domain draft yields its own verified host as the public apex, so own-domain foundings on a public carrier reach and pass enroll-configure.
Change: in
internal/founding/ownvpspath.go,ownVPSApexreturnsd.Address.Hostfor the own-domain kind too (an operator's own verified domain is the name the point stage already wired, not a fabricated apex). Consequences, all intended by existing design:Public.Apex/CommunityApex= the own domain (e.g.tech.tuia.co); the front door derivesid.,admin.,mesh., and the acme-dns zone under it.publicCeremonyHost=id.<own domain>on an own-domain live box (same as the subdomain path).deploy.go's door probe adds the own-domain apex as the second door.Acceptance criteria (tests):
TestPublicGatewayFactsown-domain case flipped fromwant empty apexto expect the apex (selfhostedpath_internal_test.go).TestOwnVPSApexadded, covering subdomain → host, own-domain → host, and no-address/nil → empty.TestPublicCeremonyHostgains an own-domain case (the oldown-domaincase had noAddressat all — rename itno address).go test ./internal/founding/... ./internal/clan/...green.Out of scope (do NOT bundle):
<slug>.idss.internaltoidss/apex(sharedseedCommunityConfig, overwritten bydeploy.golater; matters only between seed and deploy).Landing: push to main (no
landing-pr— ordinary maintainer-filed bug, no app-report origin). UpdateSTATUS.mdin the same commit if this changes a gate/phase state.Fix landed on main as
a5025990(GOTCHAS #413, STATUS line).ownVPSApexreturns the Address host forAddressOwnDomaintoo;TestPublicGatewayFacts,TestPublicCeremonyHostandTestSelfHosted_OwnDomainComposesWithoutClaimSecretflipped/extended;go test ./internal/founding/ ./internal/clan/andgo build ./...green.Helper-side, so the walk continues once the
testingfeed namesa5025990and a matching operator app is installed (same hand-build recipe as #2183). Will report the next stage reached on tu-ia here.swarm-claim host=elitebook-distributed-server-03 run=63150
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2185 — verdict
unauthenticatedreview JSON
close-report for #2185 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261110-162847-940771(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope
_acme-challengeCNAME to the gateway's acme-dns fulldomain #2186sh -cover ssh — the remote shell re-parses the words,sh -c gitprints usage and the flip faults (Retry then faults at the mv) #2188sh -cover ssh — the remote shell re-parses the words,sh -c gitprints usage and the flip faults (Retry then faults at the mv) #2188Verified on tu-ia: app 2026.11.3426 (
a5025990) enrolled the own-domain gateway (tech.tuia.co) — eval preflight passed 12:02, system built 12:10, activated and paired 12:42, deploy complete 13:32 with every door (tech.,admin.,id.,files.,docs-editing.,calendar.) over valid certificates. Closing; the two walls after it are #2186 (challenge CNAME) and #2187.