summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/platforms
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2018-01-08 08:53:14 -0800
committerScott Moser <smoser@ubuntu.com>2018-01-09 09:22:21 -0500
commitf794708fabba690677e0e81bd929871c83af3409 (patch)
treeca3a1f4d7f91ccd72d25ca1608fc14aecc4fd9c0 /tests/cloud_tests/platforms
parent34595e9b4abacc10ac599aad97c95861af34ea54 (diff)
downloadvyos-cloud-init-f794708fabba690677e0e81bd929871c83af3409.tar.gz
vyos-cloud-init-f794708fabba690677e0e81bd929871c83af3409.zip
tests: rename test ssh keys to avoid appearance of leaking private keys.
While the generated ssh keys are throw away keys, generating SSH keys with the default name (e.g. id_rsa) can trigger security scanners or draw unnecessary attention. The change here simply renames 'id_rsa' to 'cloud_init_rsa' to avoid a false positive reported by a scanning tool.
Diffstat (limited to 'tests/cloud_tests/platforms')
-rw-r--r--tests/cloud_tests/platforms/platforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cloud_tests/platforms/platforms.py b/tests/cloud_tests/platforms/platforms.py
index d4e5c561..1542b3be 100644
--- a/tests/cloud_tests/platforms/platforms.py
+++ b/tests/cloud_tests/platforms/platforms.py
@@ -33,7 +33,7 @@ class Platform(object):
def _generate_ssh_keys(self, data_dir):
"""Generate SSH keys to be used with image."""
- filename = os.path.join(data_dir, 'id_rsa')
+ filename = os.path.join(data_dir, self.config['private_key'])
if os.path.exists(filename):
c_util.del_file(filename)