This documentation is available to agents as Markdown at https://docs.synthesized.io/tdk/latest/user_guide/060_security_compliance/authentication.md. For the complete documentation index, see llms.txt.

Authentication

Users sign in to Governor with an email and password, through single sign-on, or with their directory account. Pipelines use access keys. This page compares the options.

Sign-in methods

Method Use it for Roles

Email and password

Small teams, and a break-glass administrator. The first administrator is created from ADMIN_EMAIL and ADMIN_DEFAULT_PASSWORD; administrators create the other users. See Administration.

Set in Governor.

OAuth2: Google, Microsoft, GitHub, PingFederate

Signing in with an existing account at one of these providers. See OAuth2.

Set in Governor.

SAML: Microsoft Entra ID, Google

Enterprise single sign-on, with roles from your identity provider’s groups. See SAML.

Set in Governor, or taken from SAML groups at each sign-in.

Kerberos, through your identity provider

Single sign-on from computers in your Windows domain. Your identity provider signs users in with Kerberos, for example through Windows integrated authentication, and then signs them in to Governor with SAML or OAuth2. Set up single sign-on, and turn on Kerberos in your identity provider.

As for SAML or OAuth2.

LDAP and Active Directory

Signing in with a directory account, checked against your LDAP server or Active Directory. See LDAP and Active Directory.

Set in Governor, or taken from LDAP groups.

Access keys

Scripts and pipelines that call the REST API. A key acts as the user who created it. See Generating a New Access Key.

The roles of the user who created the key.

You can set up more than one method. The sign-in page shows a button for each SSO provider you configure.

Sessions

A user stays signed in until one of these happens:

  • They stop using Governor for a while, 7 days by default. Only clicking, typing and scrolling count as use; a page that refreshes on its own doesn’t keep the user signed in. Using Governor in one tab keeps the user’s other tabs signed in.

  • Too much time passes since they signed in, 30 days by default, however active they are.

  • They sign out. Their other open tabs are signed out at once.

  • They change their password. Their other browsers are signed out; the one where they changed it stays signed in.

  • An administrator resets their password, or disables or deletes their account. Every browser where they’re signed in is signed out.

  • A copy of their session is used from another browser. Governor signs out both browsers and tells the user why.

When a limit passes, every open Governor tab switches to the sign-in page on its own, without waiting for a click, even after the computer wakes from sleep or with the network down. Reloading a tab or opening a new one doesn’t bring the data back. After inactivity, when the time since sign-in runs out, or when Governor ended the session for security reasons, the sign-in page says so.

Setting the limits

Limit Docker Compose (backend service) Helm Default

Time without use

GOVERNOR_SESSION_IDLETIMEOUT

api.session.idleTimeout

7d

Time since sign-in

GOVERNOR_SESSION_ABSOLUTETIMEOUT

api.session.absoluteTimeout

30d

In Docker Compose, add them to the environment: of the backend service: the shipped docker-compose.yml doesn’t pass them on from .env. In Helm, GOVERNOR_SESSION_IDLETIMEOUT or GOVERNOR_SESSION_ABSOLUTETIMEOUT set in api.container.config wins over the matching api.session value.

Give a number and a unit: s for seconds, m for minutes, h for hours or d for days. A number with no unit is read as milliseconds. The time without use can’t be shorter than one minute, or longer than the time since sign-in. For example, to sign users out after 15 minutes without use, a common requirement of security policies, and limit a sign-in to a working day, set the time without use to 15m and the time since sign-in to 8h. Restart Governor after a change.

Before these settings existed, JWT_REFRESH_TOKEN_EXPIRATION limited how long a sign-in lasted. If your installation still sets it and doesn’t set the time since sign-in, Governor uses it as that limit, and also as the time without use when it is shorter than 7 days, and logs a warning at startup. If you set both, Governor ignores the old setting and warns about that instead. Replace it with the settings above.

When users sign in through an AWS Application Load Balancer, as on the Synthesized platform, these limits don’t apply: the session settings of the load balancer do.

With single sign-on, signing in again after a session ends may not ask for a password while the user is still signed in to the identity provider. To make users enter their password again, set a matching session limit in your identity provider.

With SAML, signing out ends the Governor session. Turn on Single Logout to sign out of the identity provider too.

Database authentication

How the platform authenticates to your databases is separate from how users sign in:

  • A user name and password stored with the data source, encrypted in Governor’s metadata database.

  • A reference to a secret in AWS Secrets Manager, Google Cloud Secret Manager or HashiCorp Vault. See Secret Managers.

  • Kerberos, for databases that require it. This is separate from Kerberos sign-in through your identity provider. See Kerberos for database connections.

  • No authentication, for Db2, MySQL and PostgreSQL data sources whose driver gets its credentials from the JDBC URL or the worker’s environment. See Data Sources.