Skip to main content
If your identity provider (IdP) goes down or is misconfigured, SSO login stops working and nobody can sign in. A recovery admin login lets a designated organization admin sign in with a local password instead of through the IdP. Use it when SSO fails for everyone, for example because of a network outage, an expired certificate, a decommissioned IdP tenant, or a configuration change on either side. It is not a general-purpose login method. Configure it ahead of time and use it only during an outage.
Configuring a recovery admin login requires LangSmith chart version 0.18.2 (application version 0.18.2026112200) or later on the v18 stable line, or chart version 0.19.0-rc.8 (application version 0.19.3rc1) or later on the v19 line.

Prerequisites

  • Self-hosted LangSmith with SSO via OAuth2.0/OIDC configured with a client secret (authType: mixed, oauth.enabled: true, and oauthClientSecret set). OAuth with PKCE is not supported, and basic auth must be disabled.
  • An existing, enabled organization admin identity, already provisioned through SSO. The recovery admin login authenticates as this identity; it does not create a new user or a separate credential store.

Configure the recovery admin

To configure the recovery admin, generate a password hash, then add the hash and the admin’s email to your Helm values.

1. Generate a password hash

Requires LangSmith CLI v0.5.1 or later.
Your Helm configuration holds only a hash of the recovery password, never the plaintext. Generate a PBKDF2-SHA256 hash locally with the LangSmith CLI:
The command prompts for the password without echoing it, then prints the hash. It does not require a login or API key.

2. Set the Helm values

Enable the recovery admin login in your Helm values. Set email to the organization admin from the prerequisites, and provide the password hash either inline or from an existing Kubernetes secret:
Helm
If the admin identity is disabled, or belongs to a disabled organization, LangSmith rejects the recovery login, as it would a normal login.

Log in during an outage

The login screen has no button for the recovery admin login. While signed out, append ?recovery=true to your instance URL:
The Log in via SSO screen changes to an email and password form. Sign in with the email from config.recoveryAdmin.email and the password you hashed in step 1. The session authenticates as that organization admin, with the admin’s existing permissions, and expires after 15 minutes.
Record this URL in your incident runbooks. Nothing in the UI links to it.

See also