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

Application Properties

Application properties change how the platform itself runs, rather than what a workflow does. The CLI reads all of these. Governor reads them too, except where a section says otherwise.

For Governor’s server settings, such as security, scheduling and feature flags, see Governor and Worker Settings. For every setting in one list, see Settings and Environment Variables.

How to set them

Set a property in either of these ways:

  • As an environment variable, before you start the application:

    export TDK_WORKINGDIRECTORY_ENABLED=true
  • In an application.properties file in the same directory as the application’s JAR file:

    TDK_WORKINGDIRECTORY_ENABLED = true

In Docker Compose, set them in the service’s environment. In Helm, set them in the container’s config.

Summary

Property Default What it does

Secret managers

SECRETS_AWS_SECRET_MANAGER_ENABLED

value of TDK_AWS_ENABLED

Read credentials from AWS Secrets Manager.

SECRETS_GCP_SECRET_MANAGER_ENABLED

false

Read credentials from Google Cloud Secret Manager.

SECRETS_VAULT_SECRET_MANAGER_ENABLED

false

Read credentials from HashiCorp Vault.

Working directory

TDK_WORKINGDIRECTORY_ENABLED

false

Use a local directory to speed up some operations.

TDK_WORKINGDIRECTORY_PATH

none

The working directory. Required when it’s enabled.

Connection pool

TDK_DB_MAXIMUM-POOL-SIZE

20

Maximum database connection pool size.

Cloud integrations and licensing

TDK_AWS_ENABLED

false

Turn on AWS integration: configuration files in S3, credentials from AWS Secrets Manager.

TDK_AWS_LICENSE_ENABLED

false

Load the license from AWS License Manager.

TDK_GCP_ENABLED

false

Turn on Google Cloud features, such as reading configuration and inventory files from Cloud Storage.

TDK_GCP_LICENSE_ENABLED

false

Run under a Google Cloud Marketplace license.

TDK_AZURE_LICENSE_ENABLED

false

Run under an Azure license.

Governor only

DB_URL, DB_USER, DB_PASSWORD, SQL_DIALECT

jdbc:h2:mem:db, -, -, H2

Governor’s own database.

SERVER_PORT

8081

The port Governor’s API listens on.

Secret managers

With a secret manager turned on, you can give database users and passwords as references to secrets instead of values: in the -secret options of the CLI and in an inventory file. A reference is a JSON object whose type names the secret manager. Each secret’s value must be a UTF-8 string.

AWS Secrets Manager

SECRETS_AWS_SECRET_MANAGER_ENABLED=true (by default, the value of TDK_AWS_ENABLED).

{"type": "aws", "secret": "prod/tdk/input-password"}
  • secret: the ARN or name of the secret.

  • version (optional): the version ID. Without it, the AWSCURRENT version is used.

Set up AWS credentials in the environment as the AWS SDK credentials chain expects. When it’s on, the log shows AWS Secrets Manager enabled.

Google Cloud Secret Manager

SECRETS_GCP_SECRET_MANAGER_ENABLED=true.

{"type": "gcp", "project": "my-project", "secret": "tdk-input-password", "version": "latest"}
  • project: the GCP project ID.

  • secret: the secret ID.

  • version (optional): the version ID. Without it, the latest version is used.

Give the application access to Google Cloud through built-in credentials or the GOOGLE_APPLICATION_CREDENTIALS environment variable. When it’s on, the log shows Google Secret Manager enabled.

HashiCorp Vault

SECRETS_VAULT_SECRET_MANAGER_ENABLED=true.

{"type": "vault", "storage": "secret", "path": "tdk", "secret": "input-password", "versioned": "true", "version": "0"}
  • storage: the secret storage, such as secret, database or cubbyhole.

  • path: the mount path of the secret.

  • secret: the name of the secret.

  • versioned (optional): whether the storage is versioned. false by default.

  • version (optional): the version. 0, the default, is the current version.

Also set the Vault connection properties, such as vault.uri, vault.token and vault.ssl.*, and any other authentication settings. See the Spring Vault documentation. When it’s on, the log shows Vault Secrets Manager enabled.

Working directory

TDK_WORKINGDIRECTORY_ENABLED=true lets the platform use a directory on the local file system to speed up some operations. It can noticeably increase throughput, at the cost of disk space: in the worst case, as much as the input tables take up.

Today it speeds up subsetting: MASKING mode with a target_ratio below 1.

  • TDK_WORKINGDIRECTORY_PATH is required when the working directory is enabled. It must be an existing, empty directory. Use an absolute path, so the result doesn’t depend on where the application starts.

  • A table can opt out with use_working_directory: false in its table settings.

  • On a worker, set WORKER_WORKING_DIRECTORY_PATH instead.

TDK_WORKINGDIRECTORY_ENABLED=true
TDK_WORKINGDIRECTORY_PATH=/home/tdk/working-directory

When it’s on, the log shows Working directory enabled, path: <path>.

Connection pool

TDK_DB_MAXIMUM-POOL-SIZE sets the maximum size of the database connection pool. The default is 20. The parallelism of data transfer depends on it.

Cloud integrations and licensing

TDK_AWS_ENABLED

Turns on AWS integration: configuration files in S3 storage, and credentials from AWS Secrets Manager. Set up AWS credentials as the AWS SDK credentials chain expects.

TDK_AWS_LICENSE_ENABLED

Loads the license from AWS License Manager. It’s required when you bought the platform from the AWS Marketplace, and the Marketplace Docker image already sets it.

TDK_GCP_ENABLED

Turns on Google Cloud features, such as reading configuration and inventory files from Google Cloud Storage. It works without a special Google Cloud environment: set GOOGLE_APPLICATION_CREDENTIALS to the path of a credentials file.

TDK_GCP_LICENSE_ENABLED

Makes the platform available in Google Cloud: usage reporting, the Google Cloud License Manager and Cloud Billing. Set up the environment as the Marketplace listing describes.

TDK_AZURE_LICENSE_ENABLED

Makes the platform available in the Azure cloud.

All five are false by default.

Governor only

These properties apply to Governor’s API only:

Property Default What it sets

DB_URL

jdbc:h2:mem:db

JDBC URL of Governor’s own database.

DB_USER

-

User of Governor’s database.

DB_PASSWORD

-

Password of Governor’s database.

SQL_DIALECT

H2

SQL dialect of Governor’s database.

SERVER_PORT

8081

The port the API listens on.

The Docker Compose and Helm installations set Governor’s database with SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME and SPRING_DATASOURCE_PASSWORD.