Merge pull request 'password_store: create secrets with correct permissions' (#1989) from pass_umask into main
This commit is contained in:
@@ -106,6 +106,7 @@ class SecretStore(SecretStoreBase):
|
|||||||
return local_hash.decode() == remote_hash
|
return local_hash.decode() == remote_hash
|
||||||
|
|
||||||
def upload(self, output_dir: Path) -> None:
|
def upload(self, output_dir: Path) -> None:
|
||||||
|
os.umask(0o077)
|
||||||
for service in self.machine.facts_data:
|
for service in self.machine.facts_data:
|
||||||
for secret in self.machine.facts_data[service]["secret"]:
|
for secret in self.machine.facts_data[service]["secret"]:
|
||||||
if isinstance(secret, dict):
|
if isinstance(secret, dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user