Don't use too powerful key

This commit is contained in:
alesapin 2021-12-21 16:05:02 +03:00
parent 157d4a7f7c
commit af7cd00e30
2 changed files with 3 additions and 4 deletions

View File

@ -208,9 +208,6 @@ jobs:
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/keeper_jepsen
REPORTS_PATH=${{runner.temp}}/keeper_jepsen
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
REPO_COPY=${{runner.temp}}/keeper_jepsen/ClickHouse
EOF
- name: Download json reports

View File

@ -7,6 +7,7 @@ import os
import boto3
from github import Github
from get_robot_token import get_parameter_from_ssm
from env_helper import REPORTS_PATH, REPO_COPY, TEMP_PATH
from stopwatch import Stopwatch
from upload_result_helper import upload_results
@ -143,7 +144,8 @@ if __name__ == "__main__":
else:
raise Exception("Cannot binary clickhouse among build results")
with SSHKey("ROBOT_CLICKHOUSE_SSH_KEY"):
os.environ['JEPSEN_KEY'] = get_parameter_from_ssm("jepsen_ssh_key")
with SSHKey("JEPSEN_KEY"):
ssh_auth_sock = os.environ['SSH_AUTH_SOCK']
auth_sock_dir = os.path.dirname(ssh_auth_sock)
cmd = get_run_command(ssh_auth_sock, auth_sock_dir, pr_info, nodes_path, REPO_COPY, build_url, result_path, docker_image)