Repository navigation
Description
Epic: #736 · Phase: 2 (breadth) · Depends on: #738, #739, #740 · Blocks: nothing
Reviewed 2026-07-11. The emulator side is already done —
mudflaps
v0.3.0 serves volumes, ip_assignments, certificates, and (apply-only) secrets.
This issue is now purely the chant-lexicon side (client resources +
serializer + applier handling); those resources can be tested end-to-end
against the live emulator immediately.
Context
Extends resource coverage beyond App + Machine to the rest of the load-bearing flaps resources,
in the fly lexicon. Do this after the spine (#739 applier + #740 wrapper) works. See #736 for
the decisions log.
Decisions that constrain this (from #736)
- D7 — Secrets are apply-only (set-only, no read-back): excluded from drift/diff.
- D2 — metadata-less types (volumes/secrets/certs/IPs) are owned at the app boundary.
What to build (in lexicons/fly)
- Volume — resource + serializer + applier handling for
GET/POST /v1/apps/{app}/volumes,GET/PUT/DELETE .../volumes/{vol}. Machinemounts
reference volumes; the applier orders volumes before the machines that mount them. - IPAddress —
GET/POST/DELETE /v1/apps/{app}/ip_assignments(shared/dedicated v4/v6; the
requesttypeselects it). - Certificate —
GET/POST /v1/apps/{app}/certificates,GET/DELETE .../certificates/{hostname}. - Secret (apply-only) —
GET/POST/DELETE /v1/apps/{app}/secrets[/{name}]. The serializer
marks these apply-only so they never enter a drift/diff (D7); mudflaps returns only a digest,
never the value.
The emulator endpoints already exist (mudflaps) — do not add server behavior here.
Where it lives
lexicons/fly/src/ (new resource types over #737's generated types + serializer coverage),
lexicons/fly/src/op/activities/fly-apply.ts (handle the new kinds).
References
- Types:
superfly/fly-govolume_types.go,secrets_types.go;flaps/flaps_volumes.go,
flaps_certificates.go,flaps_ip_assignments.go,flaps_secrets.go. - Test target:
mudflaps(fly lexicon: chant-side flaps wrapper (boot the mudflaps image for local tests) #740) already implements all four — see itsapi-coveragedocs for
the exact request/response shapes it accepts.
Acceptance criteria
- A Machine with a
mountsentry applies its Volume first, in dependency order (proven against mudflaps). - IP allocation and a certificate apply and prune owned-only (app-scoped, D2).
- Secrets apply but never appear in a drift/diff (documented apply-only).
Out of scope
exec/ps/signal, token exchange, the platform placement API. Any change to mudflaps itself
(file it in that repo).
Activity
fly: flyApply — direct flaps REST applier with leases, wait, owned-on…
fly: Volume + IPAddress + Certificate + Secret resources (#741) (#754)
fly: formalize ownership convention via the #686 seam (#743) (#755)
fly: describeResources for plan + drift (#767) (#775)