Skip to content

Two-factor sign-in ​

With two-factor sign-in, signing in to Orbit takes your password and a 6-digit code from an authenticator app on your phone, so a stolen password is not enough on its own. API tokens are not affected.

Turning it on ​

  1. In Settings → Two-factor sign-in, select Turn on.
  2. Scan the QR code with an authenticator app (1Password, Google Authenticator, Authy, Bitwarden or any other TOTP app), or type the key under it.
  3. Type the 6-digit code it shows. Orbit then shows 10 recovery codes, only this once. Copy or download them and keep them somewhere safe, such as a password manager.

From then on, signing in asks for a code after the password.

Signing in ​

  • Type the current code, or one of your recovery codes when you do not have your phone. Each recovery code works once; Settings shows how many are left, and New recovery codes replaces them all.
  • A code works once, so a code someone saw cannot be used again. Orbit also accepts the code just before and just after the current one, in case the phone's clock is a little off.
  • Wrong codes count towards the sign-in limit: after five failures, that address waits a minute.

Turning it off ​

Turn off takes a current code or a recovery code. It is not possible while the administrator requires two-factor sign-in.

Requiring it for everyone ​

Orbit's administrator can require it under Settings → Two-factor sign-in, once their own is on. Settings shows how many people do not have it yet, and Settings → Members marks who does.

  • Someone without it can only set it up, or sign out, until they do: the console takes them to the setup page, and the API answers 403 secondFactorSetupRequired to everything else.
  • People already signed in are asked on their next request, not only the next time they sign in.
  • API tokens keep working.

Lost phone and recovery codes ​

  • Orbit's administrator selects Reset 2FA next to that person in Settings → Members. They sign in with their password and, if it is required, set it up again.

  • For the administrator themselves, or without the console, on the main server:

    sh
    sudo orbit reset-second-factor --email ada@example.com

How it is stored ​

The secret is sealed with Orbit's key, like the other secrets, and travels with orbit backup. Recovery codes are kept only as hashes. Codes and secrets are never written to the logs.

Orbit by Cortex Labs