ADR-007 / Decision record
SOPS + age instead of Vault or Ansible Vault
Secrets are versioned with the code, with no secrets server to keep running.
- Context
- Credentials and passwords have to reach OpenTofu, Ansible and Compose without ever being committed in plaintext.
- Decision
- Secrets are committed to Git encrypted with SOPS + age, with three recipients, including an offline recovery key.
- Why
- Secrets are versioned alongside the code that uses them, diffs show which key changed, and no secrets server needs to be running before I can deploy or recover.
- Trade-off
- Access is controlled by who holds a key, not by a policy engine, so there's no fine-grained audit log of who read what.
- Rejected
- HashiCorp Vault · Ansible Vault
Notes
CI includes a SOPS-encryption check, so a secrets file that has been committed decrypted fails the build. gitleaks runs in pre-commit and in CI as a second net.