Bastion Host Key Rotation and SSH Certificate Authority
Migrated bastion host authentication from static SSH keys to short-lived certificates signed by the internal SSH Certificate Authority.
SSH CA Architecture
- CA key stored in HSM; user/host certificates now carry TTL metadata instead of perpetual trust via authorized_keys.
- Certificate types: user-cert (login), host-cert (server identity), and agent-forward-cert for jump-host chains.
- Principal mapping enforces least-privilege: each cert grants access only to its assigned subnet range.
Rotation Procedure
ssh-keygen -s /etc/ssh/ca/user_key \ -I "franklin-bastion" \ -V +08h \ -n "franklin,node90*" \ ~/.ssh/id_ed25519.pub