mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
fix(gpg_secretstore): gnupg library respects GNUPG_HOME already
The gnupg python library uses the $GNUPG_HOME environment variable to detect where the GnuPG home is. Setting a default of `~/.gnupg` which overrides the library behaviour breaks this.
This commit is contained in:
parent
c06f6a65be
commit
d17dfab09e
2 changed files with 0 additions and 8 deletions
|
@ -99,7 +99,6 @@ class SecretStore:
|
|||
password_store_path: str = "~/.password-store/",
|
||||
file_extension: str = ".gpg",
|
||||
keyring: str = "pubring.kbx",
|
||||
gnupg_home: str = "~/.gnupg",
|
||||
pass_gpg_id_file: str = ".gpg-id",
|
||||
recipient_method: str = "pass_file",
|
||||
recipient_list: List[str] = None,
|
||||
|
@ -110,7 +109,6 @@ class SecretStore:
|
|||
|
||||
# Create gpg object
|
||||
self.__gpg = gnupg.GPG(
|
||||
gnupghome=Path(gnupg_home).expanduser().absolute().as_posix(),
|
||||
keyring=keyring,
|
||||
)
|
||||
self.gpg = self.__gpg
|
||||
|
|
|
@ -48,10 +48,6 @@ options:
|
|||
key(s) for decryption
|
||||
type: str
|
||||
default: pubring.kbx
|
||||
gnupg_home:
|
||||
description: Folder containing the Keyring and other gnupg config files
|
||||
type: str
|
||||
default: ~/.gnupg
|
||||
pass_gpg_id_file:
|
||||
description: Filename of the file containing the recipient pub key IDs
|
||||
type: str
|
||||
|
@ -316,7 +312,6 @@ def main():
|
|||
keyring=dict(
|
||||
required=False, type="str", default="pubring.kbx", no_log=False
|
||||
),
|
||||
gnupg_home=dict(required=False, type="str", default="~/.gnupg"),
|
||||
pass_gpg_id_file=dict(
|
||||
required=False, type="str", default=".gpg-id", no_log=False
|
||||
),
|
||||
|
@ -367,7 +362,6 @@ def main():
|
|||
password_store_path=module.params["password_store_path"],
|
||||
file_extension=module.params["file_extension"],
|
||||
keyring=module.params["keyring"],
|
||||
gnupg_home=module.params["gnupg_home"],
|
||||
pass_gpg_id_file=module.params["pass_gpg_id_file"],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue