Commit aa648f0e authored by Pietro Albini's avatar Pietro Albini

Apply restrictive permissions on the secret key file

parent 030a3b3f
Pipeline #46 passed with stage
in 0 seconds
......@@ -77,3 +77,4 @@ def init_data_directory(data_path):
if not os.path.exists(secret_key_path):
with open(secret_key_path, "w") as f:
f.write("%s\n" % utils.random_key(64))
os.chmod(secret_key_path, 0o400)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment