feat(sops): trigger service restarts on secret rotation
Wire up restartUnits on secrets whose consumers cache them in memory (daemons read at startup), so sops-nix restarts the affected unit on activation when the decrypted content changes: - firefly: app_key → phpfpm-firefly-iii; auto_import_secret + access_token → phpfpm-firefly-iii-data-importer - searx: secret_key → uwsgi - opencode: web password → opencode-serve - mail: sasl_passwd → postfix - forgejo: gitea_dbpass → forgejo; runner-token → gitea-runner-default Secrets read on demand by oneshots/timers (firefly sparda_pin, ntfy token, restic backup creds, acme dns creds, wg conf) are left as-is.
This commit is contained in:
parent
59480cdc79
commit
01f42c0851
5 changed files with 11 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
sops.secrets.sasl_passwd = {
|
||||
sopsFile = ../../../.secrets/sgx/relay.yaml; # bring your own password file
|
||||
owner = config.services.postfix.user;
|
||||
restartUnits = [ "postfix.service" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue