Production Checklist
Work through this checklist before rolling out a Netherframe app to shared or business-critical environments.
App and repository structure
- [ ] App entry points are registered cleanly in
[tool.nf].apps(and[tool.nf].terraform_appsonly where legacy synthesis is required). - [ ] Stack IDs and stateful resource
nf_idvalues are explicit and stable (avoid implicit renames). - [ ] Environment selection uses typed factory inputs (
++env=prod,++@envs/prod.toml), never ad-hoc shell environment variables. - [ ] Provider versions are pinned explicitly across all environments (
dev,staging,prod).
State and backends
- [ ] Each environment has its own isolated remote state backend and credentials (never share one state file across
devandprod). - [ ] Remote backend locking, encryption at rest, versioning/backups, and IAM/RBAC least privilege are enabled and verified with
nf backend validate. - [ ] If using PostgreSQL graph state, TLS (
ssl_mode="verify-full"with CA) is enabled, passwords come from--postgresql-password-fileorpassword_source, and operators have rehearsednf state recover. - [ ] State migration and checkpoint restore procedures are documented for the team.
Safety gates and recovery
- [ ] CI passes
--no-user-configand splits plan review (nf plan --out) from approved apply (nf apply --plan-file). - [ ] Production apps declare
app.checkguardrails (prerequisites,plan,apply, andfinalizewhere audit trails are required). - [ ] Stateful resources declare
LifecycleRules(prevent_destroy=True)orLifecycleRules(retain="why")+@retained_check. - [ ]
recovery_strategy(checkpointorrollback) is chosen deliberately and tested in a non-production account. - [ ] Unattended CI jobs handle disambiguated exit codes (
0,1,2,3,4) and only pass--approve-imports/--apply-deferredwhen explicitly intended.
Secrets and supply chain
- [ ]
Secret[T]inputs are passed only via++@<(...)ornf.sdk—never in code, Git, or CLI argv. - [ ] Saved plan artifacts and state files are stored under equivalent access controls (no public CI logs with
--show-secrets). - [ ] Internal registries/mirrors (
provider_mirrors,provider_ca_bundle) are configured if runners operate in restricted networks.
Testing and observability
- [ ] Offline
pytestsynthesis tests cover critical stacks, tags, andTeardown[T]invariants. - [ ] Offline policy checks (
nf lint, e.g.netherframe.lint.hashicorp.aws) run on every pull request. - [ ] Scheduled drift checks (
nf plan --expect-no-changesornf drift check) alert on exit code3. - [ ] Team members know how to watch active runs (
nf follow,nf tui --readonly) and inspect structured logs (--log-level,--log-format json).