mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-07 22:27:24 +08:00
import ssh keys both for gpg and age
This commit is contained in:
parent
38e9270b77
commit
a38ba56ca2
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