own-VPS gateway never carries OURCLOUD_CLAIM_SECRET — acme-dns challenge CNAME never publishes, DNS-01 times out forever (finish, sig 8d0cd71d20a2) #505
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
Reference
Matou/idss#505
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?
Failure
Drive
20260813T041900Zreds atfinishwith the S11 deploy-failed screen ("There is no old operating system to roll back to"), same UI-level signature8d0cd71d20a2as drive20260813T035722Z— but the underlying defect is now different from the one healed in1592d04(the{env.VAR}→{$VAR}acme-dns substitution bug). That fix is confirmed working this run:acme-dns-registercompletes and Caddy starts cleanly.The new failure: Caddy's DNS-01 wildcard obtain times out waiting for the challenge record to propagate, and retries forever (
max_duration: 2592000):The app's own 10-minute cold-start budget (120 probes × 5s,
internal/founding/deploy.go:786) expires,public-entrynever rests done, and the deploy-outcome screen renders the generic "no rollback" fault (founding-state.log:632-655).Root cause
The
_acme-challenge.rehearsal.idss.nzCNAME that the broker needs to delegate to acme-dns's fresh per-bootfulldomainis never published, so there is nothing for public resolvers to ever see — this is not a slow-propagation flake, it's a permanently-missing record.Trace:
internal/founding/ownvpspath.go:442-447, comment: "the gateway's heartbeat re-points with the challenge once it is up (ADR 0136)".droplet-journal.txt:1471—"address heartbeat resting: no OURCLOUD_CLAIM_SECRET — the broker refuses a re-point without the claim secret (ADR 0135)".OURCLOUD_CLAIM_SECRETis only exported into the gateway's environment whenclan.GatewayFacts.ClaimSecretistrue(internal/clan/vmguest.go:995-997, gated the same way asSMTPSubmission).GatewayFactsliteral —internal/founding/ownvpspath.go:488-507— never setsClaimSecret: true. Grepping the whole tree (grep -rn "ClaimSecret" --include="*.go"), no production code path anywhere sets it true — onlyinternal/clan/vmguest_test.go:228does, in a unit test. The private path (internal/founding/privatepath.go:883-903) correctly leaves it false (its.internalapex is architecturally outside the heartbeat's loop, ADR 0136) — but the own-VPS path, which DOES need it, leaves it false too, seemingly by omission.So for every own-VPS (and likely rented) community on the
<slug>.idss.nzsubdomain-broker path, the acme-dns DNS-01 challenge delegation can never be published post-boot, and wildcard cert issuance can never succeed — Caddy retries silently forever with no external signal beyond its own log.What plugging it needs
At minimum,
internal/founding/ownvpspath.go'sinstallOwnVPSneeds to setClaimSecret: trueon theclan.GatewayFactsit builds, gated the same waypointOwnVPSNamealready gates ond.Address.Kind == AddressSubdomain(ownvpspath.go:436) — own-domain communities have no claim secret to carry and the heartbeat already rests for them independently (control-plane/cmd/control-plane/main.go:488-491).But flipping the bool alone is likely not sufficient:
gatewayEnvExports(internal/clan/vmguest.go:985-988) says the claim secret "dereferences its sealed clan-var .path (the mail.go DKIM pattern) — never a literal: the values are secrets the seed leg fed", the same waySMTPSubmission's credentials are seeded. Need to confirm whethero.seedCommunityConfig(ownvpspath.go:341) already seeds theClaimSecretGenerator(internal/clan/vmguest.go:83) withd.Address.Secret's value, or whether that generator-feed is also missing — if so this is two wiring gaps, not one.Suggested plugging work:
ClaimSecretGeneratorfromd.Address.Secret(mirror the SMTP submission credential pattern in the same seed leg).ClaimSecret: trueinownvpspath.go'sGatewayFactsconstruction whend.Address.Kind == AddressSubdomain.internal/founding/ownvpspath_test.goorinternal/clan/gateway_attach_test.go) proving an own-VPS subdomain deploy exportsOURCLOUD_CLAIM_SECRETand a live-drive proving the heartbeat's first tick actually re-points with a non-empty acme-dns challenge even when the observed IP matches the seededOURCLOUD_GATEWAY_IP(worth double-checkinginternal/heartbeat/heartbeat.go'sWithKnownIP-seeded first-tick no-op doesn't ALSO suppress the challenge-only-changed case once the secret is wired —TestTick_UnchangedAddressIsSilentNoOpcurrently locks in IP-only comparison).standuprented.go) has the same gap.This is secret-provisioning + DNS wiring across founding/clan/control-plane — outside what the rehearsal healer self-fixes.
drive
20260813T041900Zred atfinish:finish faulted: the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]evidence:
test-results/…/20260813T041900Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Ben's ruling (2026-08-13, live): YES — the box holds the key
The gateway carries the claim secret, per the original ADR 0135/0136 intent: renewal is forever (~60-day cycles), acme-dns's fulldomain changes per boot, and the founder's laptop cannot be the renewal path — so the box must be able to authenticate its own re-points. The box already holds the community's whole life (kanidm DB, files); the name's key is not a meaningful widening. A NARROWER broker credential (signpost-only, cannot re-point/offboard the name itself) was noted as a possible hardening follow-up — explicitly NOT this fix, and not yet ticketed.
Fix direction (swarm-landable; next drive verifies)
GatewayFactssetsClaimSecret: true(internal/founding/ownvpspath.go— the literal this ticket's trace found never sets it). The private path staysfalse(its.internalapex is outside the heartbeat loop by design, ADR 0136).ourcloud-claim-secretclan var (clan.ClaimSecretGenerator, vmguest.go:83) during the own-VPS seed leg, the same sops-encrypted vars pattern every other seeded secret rides. Today NOTHING writes that generator's value (grep confirms: the name + the gated export exist; the value pipeline does not).varSecretExport("OURCLOUD_CLAIM_SECRET", ClaimSecretGenerator)is already gated on the fact (vmguest.go:995) — mind the DUAL-RENDER hazard (GOTCHAS: whatever is declared inrenderGatewayGuestmust exist in the full-install front-door render too, and vice versa): the own-VPS box runs the FULL-INSTALL render, so make sure the fact-gated export exists there, with a seam test pinning it in BOTH renders.AC: on a fresh own-VPS drive, the journal no longer shows
address heartbeat resting: no OURCLOUD_CLAIM_SECRET; the heartbeat re-point publishes_acme-challenge.<apex>at the broker; Caddy's DNS-01 wildcard obtain succeeds; the #499 door probe restspublic-entrydone. Seam/unit tests pin the fact, the var seed, and the export; the #420 golden-render lint stays green (the secret's VALUE never appears in the config repo — only the sops var reference).swarm-claim host=matou-dev-server-01 run=5829
(automated multi-host claim — lowest live claim id works this ticket)
CORRECTION to the ruling comment (worker: read before landing): the direction said the SMTP seed-leg feed is the pattern to copy — that pattern is DESIGN-INTENT ONLY, not landed code (verified with a peer session: SMTPSubmission is set true nowhere, the ourcloud-smtp-* generators are never declared or fed; clan.go:378 is a doc comment describing a future). You are building the FIRST app-held-secret→clan-var feed. The real primitives to build from: SetVarSpec (internal/clan/config.go:163 — used live by placeCrownJewels, internal/founding/seed.go:342) to declare the var + recipients on the gateway node, and the pinned CLI wrapper's headless
vars set <node> <generator>/<prompt>stdin-as-data path (internal/clan/vars.go:60-64, persist=true constraint noted there) to land the value. Everything else in the ruling stands unchanged (fact flip, both-renders export, AC). Your helper becomes the pattern the future SMTP feed (#386's split-off) will copy — keep it generic enough to name that.close-report for #505 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope