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.propertiesfile 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 |
|---|---|---|
|
value of |
Read credentials from AWS Secrets Manager. |
|
|
Read credentials from Google Cloud Secret Manager. |
|
|
Read credentials from HashiCorp Vault. |
|
|
Use a local directory to speed up some operations. |
|
none |
The working directory. Required when it’s enabled. |
|
|
Maximum database connection pool size. |
|
|
Turn on AWS integration: configuration files in S3, credentials from AWS Secrets Manager. |
|
|
Load the license from AWS License Manager. |
|
|
Turn on Google Cloud features, such as reading configuration and inventory files from Cloud Storage. |
|
|
Run under a Google Cloud Marketplace license. |
|
|
Run under an Azure license. |
|
|
Governor’s own database. |
|
|
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, theAWSCURRENTversion 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 assecret,databaseorcubbyhole. -
path: the mount path of the secret. -
secret: the name of the secret. -
versioned(optional): whether the storage is versioned.falseby 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_PATHis 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: falsein its table settings. -
On a worker, set
WORKER_WORKING_DIRECTORY_PATHinstead.
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_CREDENTIALSto 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 |
|---|---|---|
|
|
JDBC URL of Governor’s own database. |
|
- |
User of Governor’s database. |
|
- |
Password of Governor’s database. |
|
|
SQL dialect of Governor’s database. |
|
|
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.