founding: the private path mints <slug>.ourcloud.internal as its apex (ADR 0149) #358

Closed
opened 2026-08-09 18:17:51 +00:00 by ben · 1 comment
Owner

Slice T1 of the Nextcloud-provision drive arc — docs/superpowers/specs/2026-08-09-nextcloud-provision-e2e-design.md (commit c72bff1)

Implements ADR 0149. The private-path VM founds with no apex, so every apex-derived hostname refuses (ADR 0113) — a files deploy dies at commit-config, the health check has no URL, OIDC has no origin.

Build

  • Founding's private path derives the apex <slug>.ourcloud.internal and stores it exactly where the public path stores its apex.
  • The guest control-plane unit (internal/clan/vmguest.go) gains OURCLOUD_COMMUNITY_APEX.
  • Portal address unchanged (http://127.0.0.1:<api>).
  • Derived URLs on the private path carry the forwarded host port where a browser-facing origin needs it — the kanidm-origin precedent.

Accept

  • On a private-path founding, hostnames.Service(apex, "files") returns https://files.<slug>.ourcloud.internal; provisioning's WithCommunityApex is populated; AttachFiles no longer refuses.
  • The honest refusal stays for a genuinely apexless call.
  • Seam tests; no live drive required (the arc's drive is T6).
## Slice T1 of the Nextcloud-provision drive arc — `docs/superpowers/specs/2026-08-09-nextcloud-provision-e2e-design.md` (commit `c72bff1`) Implements **ADR 0149**. The private-path VM founds with no apex, so every apex-derived hostname refuses (ADR 0113) — a files deploy dies at `commit-config`, the health check has no URL, OIDC has no origin. ## Build - Founding's private path derives the apex `<slug>.ourcloud.internal` and stores it exactly where the public path stores its apex. - The guest control-plane unit (`internal/clan/vmguest.go`) gains `OURCLOUD_COMMUNITY_APEX`. - Portal address unchanged (`http://127.0.0.1:<api>`). - Derived URLs on the private path carry the forwarded host port where a browser-facing origin needs it — the kanidm-origin precedent. ## Accept - On a private-path founding, `hostnames.Service(apex, "files")` returns `https://files.<slug>.ourcloud.internal`; provisioning's `WithCommunityApex` is populated; `AttachFiles` no longer refuses. - The honest refusal stays for a genuinely apexless call. - Seam tests; no live drive required (the arc's drive is T6).
Author
Owner

Done — landed on origin/main at cde926e (drive-arc T1).

What shipped (ADR 0149):

  • internal/founding/privatepath.go: privateApex(slug) derives <slug>.ourcloud.internal under the ICANN-reserved private-use TLD; the private stand-up fills the new GatewayFacts.CommunityApex from the draft's own derived slug. An empty slug yields "" — the honest refusal stays for a genuinely apexless founding (ADR 0113/0100).
  • internal/clan/clan.go: GatewayFacts gains CommunityApex, carried exactly where a public gateway carries its own apex.
  • internal/clan/vmguest.go: renderGatewayGuest's control-plane unit exports OURCLOUD_COMMUNITY_APEX when the apex is present, and nothing when it is not (apexExportLine) — so hostnames.Service, derivedFilesURL and provisioning's WithCommunityApex all resolve; AttachFiles no longer refuses.

Accept:

  • On a private-path founding the gateway facts carry <slug>.ourcloud.internal; hostnames.Service(apex, "files") therefore returns https://files.<slug>.ourcloud.internal (hostnames is apex-string-driven, unchanged).
  • The honest refusal stays for a genuinely apexless call (no apex → no export, verified by seam test).
  • Portal address untouched (http://127.0.0.1:<api>).

Seam tests: TestRenderGatewayGuest_CarriesCommunityApex / _ApexlessExportsNoApex (clan); TestStandUpPrivate_FoundsUnderInternalApex (founding). Full nix develop .#go-ci gate green (build, vet, go test ./..., golangci-lint, broker). No live drive (the arc's drive is T6).

A second commit 27cfc82 unbroke main's lint (an unrelated fleetwire test handler's unused r *http.Request, from the S12-finish merge, was reddening go test ./...'s lint stage for every push). T2 (private-path front door + route-on-deploy) is now unblocked. STATUS.md: T1 DONE.

Done — landed on origin/main at `cde926e` (drive-arc T1). **What shipped (ADR 0149):** - `internal/founding/privatepath.go`: `privateApex(slug)` derives `<slug>.ourcloud.internal` under the ICANN-reserved private-use TLD; the private stand-up fills the new `GatewayFacts.CommunityApex` from the draft's own derived slug. An empty slug yields `""` — the honest refusal stays for a genuinely apexless founding (ADR 0113/0100). - `internal/clan/clan.go`: `GatewayFacts` gains `CommunityApex`, carried exactly where a public gateway carries its own apex. - `internal/clan/vmguest.go`: `renderGatewayGuest`'s control-plane unit exports `OURCLOUD_COMMUNITY_APEX` when the apex is present, and nothing when it is not (`apexExportLine`) — so `hostnames.Service`, `derivedFilesURL` and provisioning's `WithCommunityApex` all resolve; `AttachFiles` no longer refuses. **Accept:** - On a private-path founding the gateway facts carry `<slug>.ourcloud.internal`; `hostnames.Service(apex, "files")` therefore returns `https://files.<slug>.ourcloud.internal` (hostnames is apex-string-driven, unchanged). - The honest refusal stays for a genuinely apexless call (no apex → no export, verified by seam test). - Portal address untouched (`http://127.0.0.1:<api>`). **Seam tests:** `TestRenderGatewayGuest_CarriesCommunityApex` / `_ApexlessExportsNoApex` (clan); `TestStandUpPrivate_FoundsUnderInternalApex` (founding). Full `nix develop .#go-ci` gate green (build, vet, `go test ./...`, golangci-lint, broker). No live drive (the arc's drive is T6). A second commit `27cfc82` unbroke `main`'s lint (an unrelated fleetwire test handler's unused `r *http.Request`, from the S12-finish merge, was reddening `go test ./...`'s lint stage for every push). T2 (private-path front door + route-on-deploy) is now unblocked. STATUS.md: T1 DONE.
ben closed this issue 2026-08-09 19:20:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#358
No description provided.