Skip to content

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_apps only where legacy synthesis is required).
  • [ ] Stack IDs and stateful resource nf_id values 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 dev and prod).
  • [ ] 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-file or password_source, and operators have rehearsed nf state recover.
  • [ ] State migration and checkpoint restore procedures are documented for the team.

Safety gates and recovery

  • [ ] CI passes --no-user-config and splits plan review (nf plan --out) from approved apply (nf apply --plan-file).
  • [ ] Production apps declare app.check guardrails (prerequisites, plan, apply, and finalize where audit trails are required).
  • [ ] Stateful resources declare LifecycleRules(prevent_destroy=True) or LifecycleRules(retain="why") + @retained_check.
  • [ ] recovery_strategy (checkpoint or rollback) 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-deferred when explicitly intended.

Secrets and supply chain

  • [ ] Secret[T] inputs are passed only via ++@<(...) or nf.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 pytest synthesis tests cover critical stacks, tags, and Teardown[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-changes or nf drift check) alert on exit code 3.
  • [ ] Team members know how to watch active runs (nf follow, nf tui --readonly) and inspect structured logs (--log-level, --log-format json).