Research: deSEC delegation beyond one A record for the lab #272

Closed
opened 2026-08-02 03:13:34 +00:00 by ben · 1 comment
Owner

Question

The lab-dns token is scoped to one A RRset (clan-lab.matou.nz) — no NS/CNAME/TXT/wildcard, which blocked the acme-dns wildcard smoke (#219's wall). Research deSEC's options: per-RRset token-policy breadth, delegated subzones (NS to the lab), a lab-scoped wider grant, and what the full-journey e2e would actually need from DNS. Findings land on a throwaway research/desec-lab-delegation branch, pointer commented here.

Parent

Wayfinder map — e2e testing: the product and the swarm pipeline

## Question The `lab-dns` token is scoped to one A RRset (`clan-lab.matou.nz`) — no NS/CNAME/TXT/wildcard, which blocked the acme-dns wildcard smoke (#219's wall). Research deSEC's options: per-RRset token-policy breadth, delegated subzones (NS to the lab), a lab-scoped wider grant, and what the full-journey e2e would actually need from DNS. Findings land on a throwaway `research/desec-lab-delegation` branch, pointer commented here. ## Parent [Wayfinder map — e2e testing: the product and the swarm pipeline](https://git.matou.nz/Matou/ourcloud/issues/262)
ben self-assigned this 2026-08-02 03:14:20 +00:00
Author
Owner

Research landed on research/desec-lab-delegation — docs/research/desec-lab-delegation.md.

Findings (deSEC primary docs):

  • Token policies match subnames exactly — no subtree selector, so "anything under lab.matou.nz minus the apex" is not expressible inside the matou.nz zone without a broker-style deny list (unbounded maintenance, production blast radius).
  • The wildcard-cert smoke needs only TXT write at _acme-challenge.clan-lab (or CNAME for the acme-dns mirror) — a two-policy exact grant on the existing lab token unblocks it today.
  • Child zone lab.matou.nz as its own deSEC domain is the real delegation lever: same-account child zones are supported (staff-confirmed), delegation is a one-time manual NS+DS pair in the parent, and a default-deny + domain-allow token then writes arbitrary invented slugs with a structural 403 everywhere else — plus its own per-domain rate budget (2/s, 15/min, 100/h, 300/day RRset writes), insulating matou.nz from lab churn.
  • TTL floor 3600 (support-lowerable); ACME cares about publication lag (~60–120 s to authoritative NS), not TTL.

Recommendation: two moves — (B) exact policies on the lab token now to unblock the #219-class smoke; (D) delegated lab.matou.nz child zone + zone-scoped token for the full-journey e2e. Avoid extending broker-style deny lists to lab tokens. One human ruling flagged: whether agents may ever hold perm_create_domain for throwaway child zones.

Research landed on `research/desec-lab-delegation` — [docs/research/desec-lab-delegation.md](https://git.matou.nz/Matou/ourcloud/src/branch/research/desec-lab-delegation/docs/research/desec-lab-delegation.md). **Findings (deSEC primary docs):** - Token policies match subnames **exactly** — no subtree selector, so "anything under `lab.matou.nz` minus the apex" is *not expressible* inside the matou.nz zone without a broker-style deny list (unbounded maintenance, production blast radius). - The wildcard-cert smoke needs only **TXT write at `_acme-challenge.clan-lab`** (or CNAME for the acme-dns mirror) — a two-policy exact grant on the existing lab token unblocks it today. - **Child zone `lab.matou.nz` as its own deSEC domain** is the real delegation lever: same-account child zones are supported (staff-confirmed), delegation is a one-time manual NS+DS pair in the parent, and a default-deny + domain-allow token then writes arbitrary invented slugs with a structural 403 everywhere else — plus its **own per-domain rate budget** (2/s, 15/min, 100/h, 300/day RRset writes), insulating matou.nz from lab churn. - TTL floor 3600 (support-lowerable); ACME cares about publication lag (~60–120 s to authoritative NS), not TTL. **Recommendation:** two moves — (B) exact policies on the lab token now to unblock the #219-class smoke; (D) delegated `lab.matou.nz` child zone + zone-scoped token for the full-journey e2e. Avoid extending broker-style deny lists to lab tokens. One human ruling flagged: whether agents may ever hold `perm_create_domain` for throwaway child zones.
ben closed this issue 2026-08-02 03:31:35 +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#272
No description provided.