Skip to content

Config Reference

The config reference covers global runtime settings used by Xferity.

Global configuration usually includes:

  • flow and partner directories
  • state backend selection
  • logging and audit settings
  • security defaults and hardened mode
  • UI and API settings
  • authentication settings
  • worker and runtime performance controls

Use config reference when you need field-level meaning. Use deployment guides when you need environment-specific recommendations.

Controls the browser login mode for the UI.

Supported values:

  • oidc — browser UI uses the OIDC redirect/callback flow
  • local — browser UI uses the local username/password sign-in form

Header token auth via ui.auth_token remains available for scripts and automation and is separate from auth.mode.

The local operator username accepted by the browser login form when auth.mode=local.

  • required when auth.mode=local
  • no default value
  • used as the persisted auth identity for the local browser login user

Secret reference for the local operator password when auth.mode=local.

Expected usage:

  • env:...
  • file:...
  • vault:...

Example:

auth:
mode: local
local:
username: admin
password_ref: env:UI_LOCAL_PASSWORD

There is no default password.

Use auth.mode=oidc when the deployment should rely on an identity provider for browser operator access.

Use auth.mode=local for private/internal, early-rollout, lab/test, or air-gapped deployments where OIDC is not in use but the UI must still require authenticated browser access.

auth.mode=local currently requires:

state:
backend: postgres

Reason:

local browser auth uses persisted browser session state and auth user records.

If this is misconfigured, startup/validation fails with an explicit message:

auth.mode=local requires state.backend=postgres because browser sessions use persisted auth state

For browser auth modes (oidc and local):

  • session cookie is HttpOnly
  • session cookie uses SameSite=Lax
  • session cookie is Secure on HTTPS / trusted forwarded HTTPS
  • session TTL uses auth.session_duration
  • logout revokes the persisted session and clears the cookie

On first successful local sign-in:

  • the configured username and password reference are validated
  • a persisted auth user is created if one does not already exist
  • that local browser-auth user is created as an admin
  • a normal persisted session is created