← All posts

Can I get in when the login service is down?

I use Authentik, a shared sign-in service, wherever I can. Having one identity across my services makes daily access easier to manage. It also means I need to think about how I would get in when that identity service needs repairing.

My login through kubectl, the Kubernetes command-line tool, is an example. It uses Authentik to obtain credentials for administering Kubernetes, while Authentik itself runs in the cluster. If authentication becomes unavailable and I have no usable credentials left, the normal route into the cluster may be unavailable just when I need it.

That does not make central authentication a bad choice. It means the recovery route needs to be designed alongside the everyday one.

Following the steps backwards

A useful exercise is to pick a failed service and write down the first action needed to repair it. Then ask what that action depends on.

To restore a machine, I might need access to its provider account. To open that account, I might need a password and a second factor. If the only available copies are in a password manager running on the failed machine, I have arrived back where I started.

The same exercise applies to documentation. Zebra is my Kubernetes cluster; it hosts GitLab, the source-code service holding its deployment configuration. During a cluster outage, the remote repository may be unavailable too. An independent working copy or recovery archive needs to include the instructions and configuration I would otherwise fetch from it.

I've lost access to the vault and NetBird while in South Africa, and I've locked myself out of the LAN on another occasion. Those are reasons I'm cautious about risky changes while abroad, not hypothetical examples.

It is worth doing this from a clean starting point. A browser session or cached token can make a recovery test succeed while hiding a dependency that would matter on a replacement laptop.

The loop and the intended escape are simple to draw:

Repair cluster -> obtain credentials -> service on failed cluster
      ^                                      |
      +--------------------------------------+

Independent recovery material -> regain access -> repair

"Independent" must cover the event I am planning for. Almost everything I store shares one building, much of it one room. If that room is inaccessible, instructions or keys available only there cannot start a remote recovery. The room-loss scenarios also require a usable device and a way to obtain the off-site data. I have not demonstrated that entire sequence from a clean starting point.

Where I keep an exception

Vaultwarden, my self-hosted password manager, is a deliberate exception to my preference for single sign-on (SSO). Its login is independent of Authentik, and accessing the vault does not require the private mesh VPN I use to reach management services to be working.

That removes identity and mesh dependencies from the normal path to the vault. It still leaves the hosting infrastructure: the live server needs its storage, network, and application to be available. A separate login cannot make the server survive losing the cluster.

Second factors need the same examination. If the only copy of a vault's own second factor is inside that locked vault, changing the authentication method has simply moved the recovery loop. My wife and I depend on this vault daily. I expect offline client access to help, but haven't validated our family recovery scenario. Opening a previously synchronised vault, starting on a replacement device, and restoring the server are different checks. That is part of making the setup usable without me.

Preparing an independent starting point

My break-glass archive exists to make essential recovery material available outside the running setup. It needs a usable retrieval and decryption path, not just a copy stored somewhere else.

There is a security cost to that independence. Powerful recovery material needs protection against theft, clear handling instructions, and checks that it still works. A permanent administrator credential left on every device would create a different problem.

Try following your own recovery steps from a clean browser or a replacement machine. Can you sign in, get the instructions and keys, and reach the system that needs fixing? Cached access makes this surprisingly easy to overestimate. I'd rather discover the missing step while I still have a working setup beside me.

← Back to the notebook