Skip to content

Commit

Permalink
set perms on cert files
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Dec 6, 2024
1 parent 52bf698 commit 24ff3de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gptscript/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def save_certificates_from_env():
key_file = tempfile.NamedTemporaryFile(delete=False, suffix=".pem")
client_cert_file = tempfile.NamedTemporaryFile(delete=False, suffix=".pem")

os.chmod(cert_file.name, 0o600)
os.chmod(key_file.name, 0o600)
os.chmod(client_cert_file.name, 0o600)

cert_file.write(cert)
key_file.write(key)
client_cert_file.write(client_cert)
Expand Down

0 comments on commit 24ff3de

Please sign in to comment.