Skip to content

fly lexicon: Volume + IPAddress + Certificate + Secret (apply-only) resources #741

Closed

Description

@lex00

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}. Machine mounts
    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
    request type selects 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

Acceptance criteria

  • A Machine with a mounts entry 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions