import ssh keys both for gpg and age

This commit is contained in:
Jörg Thalheim 2021-09-28 14:07:26 +02:00
parent 38e9270b77
commit a38ba56ca2

View file

@ -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 {