From a38ba56ca256b80ed16f35a91ee8731765ab6617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 28 Sep 2021 14:07:26 +0200 Subject: [PATCH] import ssh keys both for gpg and age --- pkgs/sops-install-secrets/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index 9fc50d3..f1bfa86 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -643,7 +643,9 @@ func installSecrets(args []string) error { defer keyring.Remove() } else if manifest.GnupgHome != "" { os.Setenv("GNUPGHOME", manifest.GnupgHome) - } else if len(manifest.AgeSshKeyPaths) != 0 { + } + + if len(manifest.AgeSshKeyPaths) != 0 { keyfile := filepath.Join(manifest.SecretsMountPoint, "age-keys.txt") err = importAgeSSHKeys(manifest.AgeSshKeyPaths, keyfile) if err != nil {