Skip to content

Commit

Permalink
helper/linuxkeyring: use configured pass directory
Browse files Browse the repository at this point in the history
When the keyring package is configured and PassDir is empty it will
default to ~/.password-store/.

Closes Versent#440
  • Loading branch information
eonpatapon committed Jan 28, 2022
1 parent f872b40 commit 2bb0a3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helper/linuxkeyring/linuxkeyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package linuxkeyring

import (
"encoding/json"
"os"

"github.com/99designs/keyring"
"github.com/sirupsen/logrus"
Expand All @@ -23,6 +24,7 @@ func NewKeyringHelper() (*KeyringHelper, error) {
},
LibSecretCollectionName: "login",
PassPrefix: "saml2aws",
PassDir: os.Getenv("PASSWORD_STORE_DIR"),
})

if err != nil {
Expand Down

0 comments on commit 2bb0a3a

Please sign in to comment.