Skip to content

Commit efc9cdf

Browse files
Update job_executor/adapter/fs/private_keys_directory.py
Co-authored-by: Daniel Elisenberg <33904479+DanielElisenberg@users.noreply.github.com>
1 parent 69de59f commit efc9cdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

job_executor/adapter/fs/private_keys_directory.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ def create(self) -> bool:
1414
return False
1515

1616
def save_private_key(self, microdata_private_key_pem: bytes) -> None:
17+
"""
18+
Write the new private key file so only the owner of the
19+
file (this application) has read and write permissions.
20+
Fails and raises an exception if the file exists.
21+
"""
1722
fd = os.open(
1823
self._get_private_key_location(),
1924
os.O_CREAT | os.O_WRONLY | os.O_EXCL,

0 commit comments

Comments
 (0)