ADR-004 / Decision record
Local encrypted state, no remote backend
A disaster-recovery tool shouldn't depend on a service that has to be running first.
- Context
- OpenTofu state has to live somewhere. There is one operator and one node.
- Decision
- State stays local and is encrypted client-side by OpenTofu (PBKDF2 → AES-GCM). Saved plans are encrypted the same way. There's no remote backend.
- Why
- A remote backend is a service that has to be up before you can repair anything. That's a bad dependency for the tool you use to recover from failures.
- Trade-off
- No state locking and no shared access. That's fine with a single operator, and wrong as soon as there are two.
- Revisit when
- When a second operator appears, or if CI ever applies.
Notes
Losing the management VM is covered in the recovery table: the code comes back from Git with no data loss, and state comes back from backup with up to 24 hours lost.