mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-30 16:55:02 +08:00
Merge pull request #117 from Mic92/age-fix
import ssh keys both for gpg and age
This commit is contained in:
commit
8c5c313b56
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue