For the complete documentation index, see llms.txt. Markdown versions are available by appending .md to documentation URLs.

Configure Session Token Providers in Self-Hosted SigNoz

Self-Hosted Community - This page applies to self-hosted SigNoz without a license.
Self-Hosted Enterprise - This page applies to self-hosted SigNoz with an active license.

SigNoz issues a session token when a user signs in and checks it on each authenticated request. The tokenizer config block selects the provider that issues those tokens. It also controls how long sessions live, how often tokens rotate, and how many sessions a user can hold at once.

Providers

SigNoz has two providers. Set the active one with tokenizer.provider.

  • opaque (default): tokens are random strings that SigNoz stores in its metadata database. Because SigNoz holds the record, it can revoke a single session at once and limit how many sessions each user holds. No extra infrastructure is needed.
  • jwt: tokens are signed JSON Web Tokens that carry their own data. SigNoz cannot revoke them before they expire. Choose this provider only if you need stateless tokens. It requires a secret. See JWT Secret Configuration.

Configuration

Set these keys under tokenizer in your SigNoz config file, or set the matching environment variables on the SigNoz service (the usual approach for Docker Compose and Helm). Restart SigNoz after any change.

conf/example.yaml
tokenizer:
  # Specifies the tokenizer provider to use.
  provider: opaque
  lifetime:
    # The duration for which a user can be idle before being required to authenticate.
    idle: 168h
    # The duration for which a user can remain logged in before being asked to login.
    max: 720h
  rotation:
    # The interval to rotate tokens in.
    interval: 30m
    # The duration for which the previous token pair remains valid after a token pair is rotated.
    duration: 60s
  jwt:
    # The secret to sign the JWT tokens. Required when provider is jwt. Use a long random string.
    secret: ""
  opaque:
    gc:
      # The interval to perform garbage collection.
      interval: 1h
    token:
      # The maximum number of tokens a user can have. This limits the number of concurrent sessions a user can have.
      max_per_user: 20

Each key also has an environment variable. Upper-case the path, join the parts with a single underscore, and add the SIGNOZ_ prefix. An underscore inside a key name becomes a double underscore. For example, tokenizer.lifetime.idle becomes SIGNOZ_TOKENIZER_LIFETIME_IDLE, and tokenizer.opaque.token.max_per_user becomes SIGNOZ_TOKENIZER_OPAQUE_TOKEN_MAX__PER__USER.

Reference

KeyDefaultApplies toDescription
provideropaquebothActive provider: opaque or jwt.
lifetime.idle168h (7 days)opaqueHow long a session can stay idle before the user must sign in again.
lifetime.max720h (30 days)bothMaximum session lifetime, whatever the activity.
rotation.interval30mbothHow often SigNoz rotates a token. With jwt, this is how long an access token stays valid.
rotation.duration60sopaqueAfter a rotation, how long SigNoz accepts a repeated rotation request that uses the previous token pair, for example from a second browser tab. SigNoz returns the current pair instead of rejecting the request.
jwt.secret(empty)jwtSecret that signs and verifies JWT tokens. Required when provider is jwt.
opaque.gc.interval1hopaqueHow often SigNoz deletes expired opaque tokens from the metadata database.
opaque.token.max_per_user20opaqueMaximum number of sessions a user can hold at once. See Concurrent session limit.

The JWT provider uses only lifetime.max and rotation.interval. The validation rules still check lifetime.idle with the JWT provider, so keep it between rotation.interval and lifetime.max. Idle timeout, the rotation retry window, garbage collection, and the session limit apply only to the opaque provider, because they need the stored token records. These settings apply to user sessions, not to API keys.

Validation rules

SigNoz refuses to start if the tokenizer config breaks any of these rules:

  • lifetime.idle and lifetime.max must not be negative.
  • rotation.interval must be smaller than lifetime.idle.
  • lifetime.idle must be smaller than lifetime.max.
  • rotation.duration must be smaller than rotation.interval.
  • jwt.secret must be set when provider is jwt.

Concurrent session limit

With the opaque provider, each user can hold up to max_per_user sessions at once. SigNoz creates a session each time a user signs in, so a user who signs in from several browsers or devices holds several sessions.

When a user signs in and already holds the maximum number of sessions, SigNoz deletes their oldest session. That session is signed out on its next request.

The default is 20 sessions per user since v0.151.0. Earlier releases used 5.

To change the limit, set max_per_user in your config file:

tokenizer:
  opaque:
    token:
      max_per_user: <max-sessions>

Or set the environment variable. Note the double underscores in MAX__PER__USER:

SIGNOZ_TOKENIZER_OPAQUE_TOKEN_MAX__PER__USER=<max-sessions>

Verify these values:

  • <max-sessions>: Number of sessions each user can hold at once. Must be 1 or higher.

Restart SigNoz to apply the change. SigNoz has no upper limit for this value. Raise it when users need more sessions at once. Lower it to limit sessions more tightly, but users then get signed out more often as they open new sessions.

A lower limit does not sign out sessions that already exist. Each new sign-in deletes only the oldest session, so a user who already holds more sessions than the new limit keeps the extra sessions until they sign out or the sessions expire.

To confirm the limit, set it to 2, sign in from three different browsers, then reload the first one. It returns to the login page.

Next steps

Is this page helpful

Last updated—November 24, 2026

Is this page helpful

On this page

Last updated—November 24, 2026