Create SOPS-encrypted secrets backup for Tandoor (.env.enc) #40
Labels
No labels
blocked
needs-manual-review
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
matt/homelab-docker#40
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Tandoor uses
env_file: ./.envfor database credentials (POSTGRES_PASSWORD,SECRET_KEY, etc). That file is gitignored and exists only on Nexus at/home/matt/repos/homelab-docker/tandoor/.env.If Nexus is rebuilt from scratch, the Tandoor secrets are permanently lost — the database would be unrecoverable without the original
POSTGRES_PASSWORD.This is the same gap that was fixed for Bookstack in PR #35 (
bookstack/.env.enc).Fix
Create
tandoor/.env.enc— a SOPS-encrypted backup tracked in git. The.sops.yamlrule already matches.env.encfiles, so no config changes needed.Steps (run on Nexus)
Then SCP to Atlas and commit
Verify it decrypts on Atlas, then create a PR with only
tandoor/.env.encadded.Branch:
feature/tandoor-secrets-backupRecovery (if Nexus is rebuilt)
Notes
tandoor/.envmust remain gitignored — never commit the plaintext file.env.enc— track as a separate issue if needed