Skip to content

feat(deploy): harden Fly launch configuration - #59

Merged
AdamXweb merged 2 commits into
mainfrom
codex/fly-public-base-url-validation
Aug 3, 2026
Merged

feat(deploy): harden Fly launch configuration#59
AdamXweb merged 2 commits into
mainfrom
codex/fly-public-base-url-validation

Conversation

@adamXbot

@adamXbot adamXbot commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • surface the Fly machine and database cost tradeoffs before provisioning
  • validate PUBLIC_BASE_URL before app or database changes
  • reject missing, insecure, and mismatched Fly origins while allowing custom HTTPS domains
  • retain TRUST_PROXY_HEADERS as a compatibility warning
  • add isolated launcher tests with a stubbed Fly CLI

Validation

  • root test suite: 217 passed
  • edge test suite: 57 passed
  • CLI test suite: 98 passed
  • TypeScript typecheck passed
  • shell syntax and diff checks passed

No live Fly resources are created by the tests.

adamXbot and others added 2 commits August 3, 2026 16:49
Fly Managed Postgres 'basic' was ~$38/mo at time of writing — roughly 12x
the app machine itself, and easy to provision unaware from a one-command
script. The confirmation prompt now states the machine size (with the
measured ~150MB peak backing the 512MB choice) and the cost/tradeoff of
each --db mode, including the cheaper external and unmanaged routes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reject missing, insecure, or mismatched Fly public origins before provisioning while leaving proxy-header compatibility as a warning. Add stubbed launcher coverage for validation, custom domains, warnings, and first-run config generation.
@AdamXweb
AdamXweb merged commit 6ddab09 into main Aug 3, 2026
8 checks passed
@AdamXweb
AdamXweb deleted the codex/fly-public-base-url-validation branch August 3, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants