sops-to-openbao-migration #19
Reference in New Issue
Block a user
Delete Branch "sops-to-openbao-migration"
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?
Sops to OpenBao Secrets Migration
Summary
Migrate all hosts from sops-nix secrets management to OpenBao (Vault) with AppRole authentication. This removes the dependency on sops-encrypted files for runtime secrets across the infrastructure.
Changes
Global pre-requisites:
system/root-user.nix, removing the sops dependency that affected all hostsextractKeyoption tosystem/vault-secrets.nix- allows extracting a single key from a vault secret JSON and writing it as a plain file (needed by most services that expect a file, not a directory)scripts/vault-fetch/vault-fetch.sh- the previousread-based loop truncated multiline values like the PVE exporter YAML configTerraform (
terraform/vault/):Ansible:
playbooks/provision-approle.yml- reusable playbook to provision AppRole credentials to any hostNixOS host/service changes (sops → vault):
hosts/ha1- backup passwordhosts/monitoring01- backup passwordservices/monitoring/alerttonotify.nix- NATS nkeyservices/monitoring/pve.nix- PVE exporter configservices/ns/master-authorative.nix- DNS transfer keyservices/ns/secondary-authorative.nix- DNS transfer keyhosts/http-proxy/wireguard.nix- WireGuard private keyservices/nix-cache/harmonia.nix- cache signing keyservices/actions-runner/default.nix- Gitea Actions tokenvault.enableon: ns1, ns2, http-proxy, nix-cache01Tested
Not migrated