opensafely-core / backend-server

Infrastructure code for managing partner hosted OpenSAFELY backend servers.
0 stars 2 forks source link

Error handling for SSH key loading #200

Closed madwort closed 8 months ago

madwort commented 8 months ago

I observed this block:

https://github.com/opensafely-core/backend-server/blob/8f2b13b323cfb77d6649f09b67e053b66e0bbcad/scripts/update-ssh.sh#L25-L31

receiving a 502 bad gateway and overwriting an existing (correct) authorized_keys file with junk, blocking logins for all users.