Skip to main content

Sign-In and Identity Model

Before any role is checked, the platform must know who is asking: a person who signed in, or a program that presented a credential. This page explains the choices behind sign-in and machine identities. What each identity may then do is the subject of the RBAC model.

Why federate sign-in​

Without an identity provider, every user has one more password, and leaving the company does not remove access to the console until someone remembers to. With one, people sign in with their company account: its password policy, its second factor and its offboarding apply here too.

The console still decides what each person may do, through roles. The provider only answers who they are.

A person signs in through the identity provider or with a local account; the MFA policy adds a second factor; the session says who they are, and roles decide what they may do

Why require a second factor​

A password can be guessed, reused from another site, or typed into a fake sign-in page. A second factor means that the password alone is no longer enough. For the console (from which production can be deployed, exposed and deleted), it is the single most effective protection.

Why the email address is verified after sign-up, not before​

Registering signs the user in at once. Nothing is asked first (no code to copy from an email, no second factor to enroll), so that a first visit goes straight to building an integration.

The address still has to be verified: it is how an account is recovered and how notifications reach its owner. The console asks for it afterwards, in a dialog shown after sign-in:

  • not on the sign-in that created the account, only from the next one on;
  • once per sign-in, for as long as the address is not verified;
  • Skip for now closes it until the next sign-in; nothing is blocked;
  • Verify my email sends the same verification email as Resend verification on the profile page.

What an organization requires for the security of an account (a second factor) is reminded the same way, in a band at the top of the home page: see MFA Policy Reference.

Why programs get their own identity​

A pipeline or a script that uses a person's credentials stops working when that person leaves, acts with all of their rights, and makes the audit trail say a human did what a robot did. A service account fixes the three: it belongs to no one, has only the roles you grant it, and appears under its own name.

One account per program

When a credential leaks, you revoke one account and one program is affected. A shared account turns every leak into an outage for everything that used it.

Choosing a service account credential​

The right credential depends on what the calling program can do and on how much you want to limit a leak.

SituationCredential
A script, a quick automationPersonal access token with a short expiration
A service that can run an OAuth flowClient ID and secret
No shared secret may be stored on the platform sideJWT key: only the public key is kept