Skip to content

Break-glass (emergency) account

Harbor suiteRole: adminDescribes Onboard 0.58.0 / Health 0.21.0

The emergency (break-glass) account is a local username and password, checked by Harbor itself. It always works, even when CyberArk Identity is down or single sign-on is misconfigured. It is always an admin.

Threat How the account addresses it
Single sign-on fails (Identity outage, a broken app registration, an expired redirect URI) and nobody can reach the console to fix it. A way in that does not depend on CyberArk.
Someone guesses the password from the network or from another program on the machine. A progressive sign-in throttle, a strong-password rule, and an audit line plus a webhook alert on every use.
The password leaks. Rotation ends every other session of the account at once.

There are three ways, all ending in the same account:

Where How
First run The Welcome to Harbor screen, with the one-time setup code. See First-run setup.
PowerShell on the Harbor machine Set-HarborWebLogin -Username <account name> (prompts for the password).
The console, when single sign-on is the only way in Gear menu, Tenant & service account, card Emergency (break-glass) account: Username, Password, Create emergency account. Needs an admin with a recent sign-in.

While no emergency account exists and single sign-on is on, admins see a strip: “No emergency (break-glass) account: if CyberArk sign-in fails nobody can get in. Create one under Tenant & service account.”

The account is stored as a salted PBKDF2-SHA256 hash (600,000 iterations), never the password, in the appLogin block of the shared configuration (%ProgramData%\Harbor\environment.local.json). One account covers both consoles. A running console picks up any change within a couple of seconds.

At least 12 characters, at least 5 different characters, not the username, and not built from a common password (such as passwordpassword or Welcome2026!). The username is 1 to 64 letters, digits, ., _, @ or -.

  • Without single sign-on: the sign-in page shows Username, Password and Sign in.
  • With single sign-on: open Emergency sign-in under Sign in with CyberArk (“The break-glass account is for when CyberArk sign-in is unavailable. Every use is recorded.”), then Sign in with the emergency account.

Every successful use is a security event: an audit-log line and, when the profile has a webhook, a break-glass-used notification. Failed sign-ins are audited too.

Who How
The account itself Signed in as the emergency account: Tenant & service account, Emergency (break-glass) account, Current password, New password, Change password.
An administrator on the machine Set-HarborWebLogin -Username <account name> again.

A change ends every other session of the account, on both consoles; the console hands your own browser a fresh session. It is audited, and sent to the webhook as break-glass-changed. Nobody can change the password from the console without knowing the current one.

Terminal window
Set-HarborWebLogin -Disable

Do this only when single sign-on works and at least one SSO user is an admin. To disable it, use this command: deleting the configuration file does not log anyone out of a running console.

After 5 failed attempts in a row, further attempts are refused for 60 seconds, then 2, 4 and 8 minutes, up to a cap of 15 minutes. Lock-outs are never permanent, and counts are forgotten after a quiet period.

  • A browser that has signed in successfully before carries a signed device cookie (90 days) and is throttled in its own bucket. Failed attempts from other browsers or programs do not lock it out.
  • Every other sign-in attempt from the same address shares one budget, whatever username it sends, so the throttle never reveals whether a name exists.

The lock-out message says how to get out: “If you are locked out, an administrator on this machine can clear the lock-out by setting the break-glass password again: Set-HarborWebLogin -Username <account name>. That also ends every existing session of that account.”

Forgotten password: an administrator on the machine runs Set-HarborWebLogin -Username <account name>. Nothing else can reset it: write access to Harbor’s configuration store is the root of trust.

  • Choose a name that is not obvious, and a long random password.
  • Keep the password in your organisation’s vault or emergency-access process, not in someone’s head.
  • Send the security events to a channel someone watches: Webhooks / notifications.
  • Test it once a quarter, then rotate it.
  • A browser that has never signed in successfully (a new machine, cleared cookies, another browser) can be held at the lock-out by a local program sending wrong passwords. Set-HarborWebLogin on the machine clears it.
  • A configuration file that is deleted (rather than replaced) keeps a running console on its last known sign-in state until it is restarted.

See Known limitations.

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.