feat: use SSH host certificates (#3786)

This commit is contained in:
miampf 2025-07-01 12:47:04 +02:00 committed by GitHub
parent 95f17a6d06
commit 7ea5c41f9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 706 additions and 117 deletions

View file

@ -23,19 +23,21 @@ runs:
lb="$(terraform output -raw loadbalancer_address)"
popd
lb_ip="$(gethostip $lb | awk '{print $2}')"
echo "Resolved ip of load balancer: $lb_ip"
# write ssh config
cat > ssh_config <<EOF
Host $lb
Host $lb_ip
ProxyJump none
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
IdentityFile ./access-key
PreferredAuthentications publickey
CertificateFile=constellation_cert.pub
UserKnownHostsFile=./known_hosts
User root
ProxyJump $lb
ProxyJump $lb_ip
EOF
for i in {1..26}; do

View file

@ -150,7 +150,9 @@ runs:
- name: Setup bazel
uses: ./.github/actions/setup_bazel_nix
with:
nixTools: terraform
nixTools: |
terraform
syslinux
- name: Log in to the Container registry
uses: ./.github/actions/container_registry_login
@ -452,7 +454,7 @@ runs:
s3AccessKey: ${{ inputs.s3AccessKey }}
s3SecretKey: ${{ inputs.s3SecretKey }}
githubToken: ${{ inputs.githubToken }}
- name: Run emergency ssh test
if: inputs.test == 'emergency ssh'
uses: ./.github/actions/e2e_emergency_ssh