Merge pull request #117 from Mic92/age-fix

import ssh keys both for gpg and age
This commit is contained in:
Janne Heß 2021-09-28 14:38:07 +02:00 committed by GitHub
commit 8c5c313b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {