Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cloudinit/config/cc_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@
CONFIG_KEY_TO_FILE.update(
{
f"{k}_private": (KEY_FILE_TPL % k, 0o600),
f"{k}_public": (f"{KEY_FILE_TPL % k}.pub", 0o600),
f"{k}_certificate": (f"{KEY_FILE_TPL % k}-cert.pub", 0o600),
f"{k}_public": (f"{KEY_FILE_TPL % k}.pub", 0o644),
f"{k}_certificate": (f"{KEY_FILE_TPL % k}-cert.pub", 0o644),
}
)
PRIV_TO_PUB[f"{k}_private"] = f"{k}_public"
Expand Down
6 changes: 3 additions & 3 deletions tests/unittests/config/test_cc_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,17 +330,17 @@ def test_handle_ssh_keys_in_cfg(
mock.call(
"/etc/ssh/ssh_host_{}_key".format(key_type),
private_value,
384,
0o600,
),
mock.call(
"/etc/ssh/ssh_host_{}_key.pub".format(key_type),
public_value,
384,
0o644,
),
mock.call(
"/etc/ssh/ssh_host_{}_key-cert.pub".format(key_type),
cert_value,
384,
0o644,
),
mock.call(
sshd_conf_fname,
Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ MarkMielke
marlluslustosa
matthewruffell
maxnet
Mazorius
megian
michaelrommel
mitechie
Expand Down