iac.htora.dev · security templates

Home/Refreshers/Emergency access that works when login is broken: refresher

Emergency access that works when login is broken

A separate account that does not depend on your identity provider, and shouts every time it is used.

Remember

  1. Normal sign-in is broken: the identity provider is down.
  2. The emergency account: outside single sign-on, with a hardware key.
  3. Everything it does is recorded: in the cloud's audit log.
  4. An alert fires, every time: to the on-call channel.
PlatformUsesThe part that catches people
AWSA standalone IAM user with a hardware key and a CloudTrail alarmTerraform never sets the password or the MFA device, so neither lands in state.
AzureA cloud-only account excluded from Conditional Access, with alerts on sign-in and changeTerraform cannot create the account, register its key, or exclude it from Conditional Access with this provider.
Google CloudA dedicated organisation administrator with a log-based alertTerraform cannot create the account or set its password.
Oracle CloudA local user in the Default domain, outside federation, alerted on every useIdentity changes and their audit events happen in the home region.

Run the quick start

Download providersterraform init
Previewterraform plan
Applyterraform apply

Watch out

  • Drill it on a schedule.
  • Keep two, held by different people.
Check it worked

Use the account in a drill. An alert reaches the on-call channel within minutes.

Read the full pageDownload PDF

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.