Browse Source

Merge "Enforce 0600 permissions on private SSH key file." into stable/train

changes/33/705033/1
Zuul 3 weeks ago
parent
commit
78ac810aec
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tripleoclient/utils.py

+ 1
- 0
tripleoclient/utils.py View File

@@ -1206,6 +1206,7 @@ def ssh_private_key(workdir, key):
return None
if (isinstance(key, six.string_types) and
os.path.exists(key)):
os.chmod(key, 0o600)
return key

path = os.path.join(workdir, 'ssh_private_key')

Loading…
Cancel
Save