@@ -1756,7 +1756,8 @@ suites:
17561756
17571757 # Configure the ssh connection to the test vm
17581758 if [ -n "$NESTED_REMOTE_USER_CERT" ]; then
1759- echo "$NESTED_REMOTE_USER_CERT" > $TESTSTMP/cert-file
1759+ echo "$NESTED_REMOTE_USER_CERT" > "$TESTSTMP"/cert-file
1760+ chmod 0600 "$TESTSTMP"/cert-file
17601761 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --cert "$TESTSTMP/cert-file"
17611762 else
17621763 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --pass ubuntu
@@ -1838,7 +1839,8 @@ suites:
18381839 # Configure the ssh connection to the test vm
18391840 # Configure the ssh connection to the test vm
18401841 if [ -n "$NESTED_REMOTE_USER_CERT" ]; then
1841- echo "$NESTED_REMOTE_USER_CERT" > $TESTSTMP/cert-file
1842+ echo "$NESTED_REMOTE_USER_CERT" > "$TESTSTMP"/cert-file
1843+ chmod 0600 "$TESTSTMP"/cert-file
18421844 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --cert "$TESTSTMP/cert-file"
18431845 else
18441846 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --pass ubuntu
@@ -1913,8 +1915,9 @@ suites:
19131915
19141916 # Configure the ssh connection to the test vm
19151917 if [ -n "$NESTED_REMOTE_USER_CERT" ]; then
1916- echo "$NESTED_REMOTE_USER_CERT" > $TESTSTMP/cert-file
1917- remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --cert "$TESTSTMP/cert-file"
1918+ echo "$NESTED_REMOTE_USER_CERT" > "$TESTSTMP"/cert-file
1919+ chmod 0600 "$TESTSTMP"/cert-file
1920+ remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --cert "$TESTSTMP"/cert-file
19181921 else
19191922 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --pass ubuntu
19201923 fi
@@ -2002,7 +2005,8 @@ suites:
20022005
20032006 # Configure the ssh connection to the test vm
20042007 if [ -n "$NESTED_REMOTE_USER_CERT" ]; then
2005- echo "$NESTED_REMOTE_USER_CERT" > $TESTSTMP/cert-file
2008+ echo "$NESTED_REMOTE_USER_CERT" > "$TESTSTMP"/cert-file
2009+ chmod 0600 "$TESTSTMP"/cert-file
20062010 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --cert "$TESTSTMP/cert-file"
20072011 else
20082012 remote.setup config --host localhost --port 8022 --user "$NESTED_REMOTE_USER_NAME" --pass ubuntu
0 commit comments