Skip to content
Weik.ioDocs
2026.2
Try Weik.io

Break-glass access

Weik.io 2026.2

Emergency accounts can sign in only during a break-glass window that you open on the hub's host. The audit trail records every request they make.

On this page

Use break-glass access when single sign-on is down or every administrator is locked out. You open a break-glass window on the hub’s host. While the window is open, an emergency account can sign in with its password and second factor, but only from the addresses the window allows.

The command that opens the window works while every backend is down. It needs only the message server.

Create an emergency account#

A platform administrator marks a local account as an emergency account:

Terminal
$ weikio user create oncall@example.com --display-name "On-call"
$ weikio user set oncall@example.com --break-glass=true

At sign-in the account needs a code from an authenticator app, whatever the installation’s two-factor setting is.

The account can’t sign in or use its API keys outside a window. You then see an error that no break-glass window is open or that the address isn’t allowed. The error’s last line is the weikio-backend breakglass enable command that opens a window.

Open a window#

Run this on the hub’s host, in the stack’s folder:

Terminal
$ docker compose run --rm infra weikio-backend breakglass enable --hours 4 --cidr 203.0.113.7/32 --reason "Entra ID sign-in is down"
Flag What it does
--hours Keeps the window open for 1 to 72 hours.
--cidr Gives a range the emergency accounts may sign in from. Repeat it for several ranges, or leave it out to allow any address.

The command prints a one-time set-password link for every emergency account that has no password yet. When no emergency account exists, it prints that none exists and the two commands that create one.

A new window replaces an open one and ends every break-glass session. The accounts then sign in again under the new window’s hours and addresses.

Give --cidr the caller’s address as the hub receives it, or the address the CDN passes on when the hub is behind one. When the hub has allowed networks and the window’s address isn’t on them, add the address to them first. weikio-backend networks add needs no sign-in:

Terminal
$ docker compose run --rm infra weikio-backend networks add 203.0.113.7/32 --reason "break-glass sign-in"

Check and close it#

Terminal
$ docker compose run --rm infra weikio-backend breakglass status
$ docker compose run --rm infra weikio-backend breakglass disable --reason "Entra ID sign-in works again"

status shows whether the window is open and until when. It also shows which addresses the window allows and how many sign-ins it has had.

disable closes the window early and ends every session signed in through it. A platform administrator also sees the open window with weikio platform breakglass.

Audit trail and alerts#

The audit trail records opening a window as BreakGlassEnabled and closing it as BreakGlassDisabled. Each of those records has the reason you gave. The trail also records every request of a break-glass session. When a request comes while no window is open, or from an address the window doesn’t allow, Weik.io ends the session. The trail records that too.

To post each of those records in JSON to your alerting system as soon as Weik.io writes it, set that system’s https:// address in .env and run docker compose up -d:

.env
WEIKIO_BREAK_GLASS_WEBHOOK_URL=https://alerts.acme.example/hooks/weikio

The address must use https://, because the records would otherwise travel in clear text. With an http:// address, the backend fails to start and logs a line about the setting.

Sign in to the live demo

Sign in with the shared viewer account. It can open every screen of the example projects but can't change anything.

E-mail
viewer@demo.weik.io
Password
try-weikio-live-demo
Open the live demo