nixos-wiki-infra/terraform/nixos-wiki/decrypt-age-keys.sh

11 lines
175 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-10-24 18:37:53 +02:00
set -euo pipefail -x
mkdir -p var/lib/secrets
umask 0177
2024-07-06 11:13:43 +02:00
sops --extract '["age-key"]' -d "$SOPS_FILE" >./var/lib/secrets/age
# restore umask
umask 0022