From 8955840f0a2893dd932b19e322b7340cbf80218a Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Tue, 28 Jul 2026 07:19:53 +1000 Subject: [PATCH] fix(ipa): use in-place sops encryption in module docs sops matches creation rules against the input file path, so encrypting /tmp/.keytab directly with stdout redirect fails to find the rule. Copy to secrets/ first, then use -i to encrypt in-place. Co-Authored-By: Claude Sonnet 4.6 --- modules/ipa/client.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ipa/client.nix b/modules/ipa/client.nix index bf56ae3..db83042 100644 --- a/modules/ipa/client.nix +++ b/modules/ipa/client.nix @@ -20,9 +20,11 @@ # ipa host-add --ip-address= # ipa-getkeytab -s -p host/ -k /tmp/.keytab # -# 3. sops-encrypt the keytab as a binary secret from your admin machine: -# sops -e --input-type binary /tmp/.keytab \ -# > secrets/.keytab +# 3. sops-encrypt the keytab as a binary secret from your admin machine +# (must run from repo root; sops matches creation rules against the file +# path, so copy to secrets/ first and encrypt in-place): +# cp /tmp/.keytab secrets/.keytab +# sops -e --input-type binary -i secrets/.keytab # Add secrets/.keytab to .sops.yaml with the host's age key as a # recipient (see the nix-cache.keytab entry for the pattern), then run: # scripts/secrets/sync-host-keys.sh # if not done yet