← Back

Security improvements

Improvement

We spent part of November on security work across Hatchbox and your servers:

  • SSH host key verification. Hatchbox records each server's SSH host key the first time it connects, and your jump server's key too. If a key later changes, Hatchbox refuses to connect and emails your account's admins. You can compare the new fingerprint on the server page and trust it if you rebuilt the server yourself.
  • SSH key alerts. Admins now get a notification and an email when someone else adds, imports or removes an SSH key on your account.
  • Key rotation removes the old key. Rotating a cluster's SSH key now removes the old key from your servers, not just adds the new one.
  • Secrets are kept out of sight. SSL private keys, database passwords, Git connection tokens and two-factor secrets are now encrypted at rest. Environment variable values no longer appear in our request logs. DNS provider credentials, Redis passwords and passwords in failed commands are hidden in your server logs.
  • Tighter permissions on your servers. Backup credentials and scripts can only be read by the deploy user. /home/deploy is no longer readable by other users on older Ubuntu releases. Each AWS server now has its own token for syncing its IP address.
  • Safer package installs. apt now checks package signatures on every install.
  • Stronger PostgreSQL passwords. New servers use SCRAM password authentication. Existing servers switch on their next Update once none of their database users have an old md5 password. Resetting a user's password in Hatchbox converts it.
  • Kernel exploit mitigation. Every server now drops TCP packets that carry IPv4 options. Nothing legitimate sends them, and they're the way in for a recent kernel vulnerability.
  • Close port 22 to the world. Once you add a firewall rule that allows SSH from specific addresses, including Hatchbox's, you can remove the "SSH from anywhere" rule. Hatchbox won't add it back.