Repository navigation
fly: Volume + IPAddress + Certificate + Secret resources (#741) - #754
Merged
Merged
Conversation
Extend the fly lexicon beyond App + Machine to the rest of the load-bearing
flaps resources — generated types, serializer coverage, and applier handling.
- Generator: widen the curated RESOURCES manifest with IPAddress
(assignIPRequest), Certificate (createAcmeCertificateRequest), and Secret
(SetAppSecretRequest); Volume was already Core-3. generate → 41 resources.
- Serializer: emit { endpoint, method, body } for the four kinds with
mudflaps-faithful field names (IP org_slug, volume size_gb/encrypted, cert
hostname, secret value). Secret carries applyOnly: true (D7).
- Applier: volumes apply BETWEEN apps and machines (machine config.mounts
reference them); IPs/certs/secrets after. These types carry no ownership
metadata, so prune is app-scoped (D2) — everything under a chant-managed app
is owned — rather than the managed-by marker filter machines use. Secrets
apply via a straight POST with no read-back and never enter a drift/diff (D7);
still prunable by name.
Unit tests (injected FlyHttp) cover volume-before-machine ordering, app-scoped
prune, and the apply-only secret path. The live mudflaps integration test
proves the acceptance loop end to end (runs locally, skips in CI).
55 fly tests pass; validate + check-lexicon Tier 1 clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #741 (Phase 2 breadth). Extends the fly lexicon beyond App + Machine to the rest of the load-bearing flaps resources — generated types, serializer coverage, and applier handling. Builds on the merged spine (#737 generator, #738 serializer, #739 flyApply).
Generator
Widen the curated
RESOURCESmanifest:Fly::Machines::IPAddressassignIPRequestIPAssignmentFly::Machines::CertificatecreateAcmeCertificateRequestCertificateDetailFly::Machines::SecretSetAppSecretRequestAppSecretVolume was already Core-3.
generate→ 41 resources.Serializer
Emits
{ endpoint, method, body }for the four kinds with mudflaps-faithful field names (IPorg_slug, volumesize_gb/encrypted, certhostname, secretvalue). Secret carriesapplyOnly: true(D7).Applier
config.mountsreference them); IPs/certs/secrets after.managed-by: chantmarker filter machines use. Keys: volume by name, cert by hostname, secret by name, IP by family.Tests
55 fly tests pass. Unit tests (injected
FlyHttp) prove volume-before-machine ordering, app-scoped prune, and the no-read-back secret path. The live mudflaps integration test proves the acceptance loop end to end (volume applies before a mounting machine; IP + cert prune app-scoped; secret set never diffs) — runs locally, skips deterministically in CI.validate+check-lexiconTier 1 clean.Noted edge cases (scope-guarded, not expanded)
MachineConfigdoesn't modelconfig.mounts, so ordering is proven via on-the-wire POST order rather than mount persistence. (Modeling mounts is a mudflaps change, out of scope here.)🤖 Generated with Claude Code