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

Governor and Worker Settings

Environment variables that set up Governor and its workers. Most deployments only need the required production settings and, if you use them, the feature flags. The defaults of the others suit typical use.

Set Governor’s variables on its API container: the backend service in Docker Compose, or api.container.config in Helm (api.container.secretConfig for secrets). Restart the container after a change. You can also set them as application properties.

Required in production

The Docker Compose and Helm installations explain how to generate and set these.

Variable What it sets

SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME, SPRING_DATASOURCE_PASSWORD

The PostgreSQL database that holds Governor’s own data: users, projects, data sources and workflows.

JWT_SECRET

The key that signs sign-in tokens.

ADMIN_EMAIL, ADMIN_DEFAULT_PASSWORD

The first administrator account.

CREDENTIALS_ENCRYPTION_KEY

A Base64-encoded 256-bit key that encrypts stored data source passwords. Set your own key in every production deployment. To rotate it, list the new key first and the old one after it, separated by ;. If the key is lost, the stored passwords can’t be recovered.

SYNTHESIZED_KEY

Your Synthesized license key. Without one, Governor runs in free mode.

Feature flags

These flags turn on features that are off by default. Set them to "true" on Governor’s API container, then restart it. Setting them on the frontend or worker containers has no effect.

Flag Turns on

UI_XML_GENERATOR

XML as a data source type in the web UI. See XML Generator.

UI_CSRI

Cross-system referential integrity: its screens in the web UI and its API endpoints, which return 404 while it’s off. See Cross-System Referential Integrity.

UI_SAP_UI

The SAP workflow wizard. See SAP Workflow Wizard.

In Docker Compose, the docker-compose.yml that ships with the platform already passes UI_CSRI to the backend service, so you can set it in .env.

Security and sign-in

Variable Default What it sets

GOVERNOR_SESSION_IDLETIMEOUT

7d

How long a user stays signed in without using Governor, for example 15m. At least one minute. See Sessions.

GOVERNOR_SESSION_ABSOLUTETIMEOUT

30d

How long a sign-in lasts at most, however active the user is. No shorter than GOVERNOR_SESSION_IDLETIMEOUT: for example, 8h needs a time without use of 8h or less. See Sessions.

JWT_ACCESS_TOKEN_EXPIRATION

3600000 (1 hour)

How long an access token lasts, in milliseconds. Governor renews it while the session lasts.

JWT_REFRESH_TOKEN_EXPIRATION

None

Deprecated. Set GOVERNOR_SESSION_ABSOLUTETIMEOUT instead. While that isn’t set, this value in milliseconds is used as the time since sign-in, and as the time without use when it is shorter than 7 days.

JWT_ISSUER

io.synthesized

The issuer recorded in tokens.

GOVERNOR_SECURITY_DEFAULTROLE

MEMBER

The role a new user gets: MEMBER or ADMINISTRATOR. Don’t set ADMINISTRATOR: every new user would get that role.

GOVERNOR_SECURITY_OWNERACCESSONLY

false

When true, users see and access only their own workflows.

GOVERNOR_SECURITY_ALLOWEDORIGINPATTERNS

*

The origins allowed to call the API from a browser (CORS), separated by commas, such as https://*.example.com.

GOVERNOR_SECURITY_SECRETEXPIRETIMESECONDS

30

How long security secrets last, in seconds.

GOVERNOR_SECURITY_ALLOWEDCLOCKSKEWSECONDS

0

The clock difference allowed in time-based security checks, in seconds.

GOVERNOR_SECURITY_SSOAUTOREDIRECTENABLED

false

With a single identity provider, sends users straight to its sign-on. See Auto-redirect to single sign-on.

SAML

Variable Default What it sets

GOVERNOR_SECURITY_SAML_AUTHORITIES_ENABLED

false

Assigns roles from the user’s groups in the identity provider.

GOVERNOR_SECURITY_SAML_AUTHORITIES_GROUP_ATTRIBUTE

groups

The SAML attribute that lists the user’s groups.

GOVERNOR_SECURITY_SAML_AUTHORITIES_CONVERT_TO_UPPERCASE

true

Converts group names to upper case before they’re matched to role aliases.

GOVERNOR_SECURITY_SAML_AUTHORITIES_DEFAULT_ROLE

MEMBER

The role a user gets when no group matches: MEMBER or ADMINISTRATOR.

GOVERNOR_SECURITY_SAML_SLO_ENABLED

false

Single Logout: signing out of Governor also signs the user out of the identity provider.

GOVERNOR_SECURITY_SAML_DEFAULT_REGISTRATION_ID

none

The identity provider registration used for logout, such as microsoft. Required when Single Logout is on.

For the full SAML setup, including role aliases, see Single Sign-On (SSO).

Workers

Settings for the connection between Governor and its workers.

Variable Default What it sets

WORKER_GRPC_PORT

50055

The gRPC port that workers connect to.

WORKER_GRPC_MAXMESSAGESIZE

52428800 (50 MB)

The largest gRPC message, in bytes. Raise it for very large workflow configurations.

WORKER_GRPC_COMPRESSION_ENABLED

true

Compresses gRPC messages.

WORKER_ALIVEMINUTES

2

How many minutes a worker counts as alive without a heartbeat.

WORKER_CHECKTASKDELAY

not set

The delay between checks for new tasks, in milliseconds.

A worker container has its own settings: the Governor host and port it connects to (WORKER_SERVERHOST, WORKER_SERVERPORT), its tags and groups (WORKER_TAGS, WORKER_DATASOURCES), plaintext or TLS (WORKER_USEPLAINTEXT) and its working directory (WORKER_WORKING_DIRECTORY_PATH). See Synthesized Workers. For mutual TLS (WORKER_GRPC_TLS_*), see Worker–Governor mTLS.

AGENT_* variables, the names from older releases, still work: they’re mapped to WORKER_* at startup. If both are set, WORKER_* wins.

Workflow execution

Variable Default What it sets

WORKFLOW_RUNNER_THREADS

30

Threads available to run workflows.

WORKFLOW_RUNNER_TERMINATION_MS

5000

How long the workflow runner waits to terminate, in milliseconds.

WORKFLOW_DATASOURCE_DEFAULTMAXIMUMPOOLSIZE

20

The default maximum size of each data source’s connection pool.

WORKFLOW_DATASOURCE_SYSTEMPOOLSIZE

3

The size of the system connection pool.

WORKFLOW_DATASOURCE_SYSTEMPOOLSCACHESIZE

1024

The most connection pools kept in the cache.

WORKFLOW_DATASOURCE_SYSTEMPOOLSCACHEEXPIREACCESSECONDS

180

How long a cached connection pool lasts without use, in seconds.

WORKFLOW_LOGFILE_LOCATION

logs/runs

The directory for run log files.

WORKFLOW_LOGFILE_FILEPREFIXNAME

run

The prefix of run log file names.

WORKFLOW_LOGFILE_FILEEXTENSIONNAME

log

The extension of run log files.

Scheduled tasks

Governor runs housekeeping tasks in the background.

Variable Default What it sets

GOVERNOR_SCHEDULING_TASK_RUN_TERMINATING_CHECK_DELAY_MILLIS

10000 (10 seconds)

The delay before the first check for runs that are terminating.

GOVERNOR_SCHEDULING_TASK_RUN_TERMINATING_CHECK_INTERVAL_MILLIS

30000 (30 seconds)

The interval between those checks.

GOVERNOR_SCHEDULING_CONNECTION_CACHE_CLEANUP_INTERVAL_MILLIS

180000 (3 minutes)

How often cached database connections are cleaned up.

GOVERNOR_SCHEDULING_SPAWNED_DATABASE_CLEANUP_INTERVAL_MILLIS

3600000 (1 hour)

How often expired temporary databases, created during runs, are removed.

Governor database connection pool

The pool of connections to Governor’s own database (HikariCP).

Variable Default What it sets

SPRING_DATASOURCE_HIKARI_MAXIMUMPOOLSIZE

15

The most connections in the pool.

SPRING_DATASOURCE_HIKARI_MINIMUMIDLE

0

The fewest idle connections kept. 0 lets the pool shrink to nothing.

SPRING_DATASOURCE_HIKARI_CONNECTIONTIMEOUT

30000 (30 seconds)

How long to wait for a connection from the pool, in milliseconds.

SPRING_DATASOURCE_HIKARI_IDLETIMEOUT

120000 (2 minutes)

How long a connection can stay idle, in milliseconds.

SPRING_DATASOURCE_HIKARI_MAXLIFETIME

1800000 (30 minutes)

The longest a connection lives, in milliseconds.

SPRING_DATASOURCE_HIKARI_KEEPALIVETIME

0 (off)

How often idle connections are checked, in milliseconds.

SPRING_DATASOURCE_HIKARI_SCHEMA

public

The default schema.

Monitoring

Variable Default What it sets

MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE

health,metrics,prometheus

The management endpoints exposed, separated by commas.

MANAGEMENT_HEALTH_LDAP_ENABLED

false

Includes the LDAP connection in the health check.

SENTRY_DSN

empty (off)

The Sentry project that errors are reported to.

SENTRY_TRACES_SAMPLE_RATE

1.0

The share of traces sent to Sentry, from 0.0 to 1.0.

APP_FEIGN_CONNECT_TIMEOUT

10

Connection timeout of Governor’s HTTP clients for external services, in seconds.

APP_FEIGN_READ_TIMEOUT

120

Read timeout of those HTTP clients, in seconds.

Internal settings

Change these only if Synthesized support asks you to.

Variable Default What it sets

SPRING_LIQUIBASE_ENABLED

true

Runs Governor’s database migrations at startup.

SPRING_LIQUIBASE_CHANGE_LOG

classpath:db/migration/governor.dbchangelog.xml

The migration changelog.

SPRING_LIQUIBASE_ANALYTICS_ENABLED

false

Liquibase analytics.

SPRING_MAIN_ALLOW_BEAN_DEFINITION_OVERRIDING

true

Spring bean definition overriding.

SPRING_MAIN_BANNER_MODE

off

Whether the startup banner is printed: off, console or log.

See also