Data Observability platform Help

Deploying SelectZero

Prerequisites

The minimum requirements for the server or cloud instance hosting the application are as follows:

  • CPU: 2 core

  • RAM: 2GB minimum, 4GB recommended (see Memory sizing)

  • HDD: A minimum of 10GB of free space

If you are doing production deployment, please also follow information about securing deployment for production

Memory sizing

SelectZero needs memory in two places. The Java heap holds the application itself. The query engine behind comparison test cases and the CSV, Excel, SharePoint and REST connections (DuckDB) allocates its memory outside the Java heap. Give the heap about half of the server's or container's memory, and leave the other half for the query engine:

  • Docker image: this is the default, also when JAVA_OPTIONS is set without a heap option. An explicit -Xmx or -XX:MaxRAMPercentage in JAVA_OPTIONS replaces it.

  • Kubernetes and Helm: -XX:MaxRAMPercentage=50.0.

  • JAR: -Xmx set to about half of the server's memory, for example -Xmx2g on a 4GB server.

Memory

What runs comfortably

2GB

One large comparison at a time, up to about 4 million rows, or several small ones. The engine works in small memory and writes temporary files, so large comparisons are slower. Comparisons of around 10 million rows, or several multi-million-row comparisons in parallel, can end with memory usage too high

3GB

Three comparisons of a few million rows in parallel (the default per connection), next to CSV and Excel connections

4GB

A test suite with comparisons of 10 million rows and more, next to parallel ones and a file connection

8GB

Several suites in parallel, and large comparisons with fewer temporary files

Comparison rows are read from the source and written to the engine as they arrive, and the differing rows go to the result files the same way, so the Java heap does not grow with the size of a comparison.

At startup the system log (dqm-system.log) names the memory found, the heap, and how much a query engine instance gets with the heap full. The application log and standard output warn when a full heap would leave too little for a suite's parallel comparisons. Engine memory is handed out from what is actually free when each comparison starts, so a comparison usually gets more.

When the memory in use gets close to the limit, SelectZero first lets Java hand back heap memory it no longer uses. If that is not enough, it stops the query engine work using the most memory, if the query engine is what uses it (otherwise the log names the Java heap or other processes). That test case ends with ERROR - [DQM] memory usage too high and the rest of the run carries on, instead of the operating system stopping the whole application. If you see this result, run fewer test cases in parallel (the connection's maximum threads), lower the heap, or give the server more memory.

If the Java heap itself runs out, the container exits and restarts instead of staying up without answering.

Encryption key

SelectZero platform encrypts all user secrets and files at rest. On initial deployment, encryption key will be automatically generated if not provided by environment variables. Generated encryption key will be stored in "database" volume under "encryption.key" with only running user access rights.

SelectZero refuses to start if the encryption key is not the one previous boots used. Every encrypted value was written with the old key and cannot be read back with a different one, so the alternative would be scattered authentication failures and unreadable files rather than one clear error. If the change is intentional and you accept that the existing encrypted values are lost, set SZ_ALLOW_ENCRYPTION_KEY_CHANGE=true.

Secret references

Instead of a literal value, a secret field can hold a reference to a secret in your own secret manager. AWS Secrets Manager and Azure Key Vault are supported:

aws-sm://<secret-id-or-arn>[#<json-field>] azure-kv://<vault-name>/<secret-name>[/<version>][#<json-field>]

SelectZero reads the value from the secret manager when it needs it, so the secret itself is never stored in SelectZero, and rotating it there requires no change here.

  • AWS Secrets Manager: give a full ARN instead of a name to read a secret from a different region than the configured default.

  • Azure Key Vault: the vault name is always part of the reference, so one installation can read from several vaults. Without a version the current version is read. Adding a version pins that exact value, which means a rotation is not picked up; leave it out unless you need that.

A secret holds either a plain string or a JSON document, and the two are referenced differently:

Secret contents

Reference

A plain value, e.g. hunter2

aws-sm://prod/dqm/smtp-password or azure-kv://prod-vault/smtp-password

A JSON document, e.g. {"username":"dqm","password":"hunter2"}

aws-sm://prod/dqm/db-credentials#password or azure-kv://prod-vault/db-credentials#password

Use #<json-field> for the JSON case. Secrets created by AWS-managed rotation are always JSON documents with username and password keys, so database credentials set up that way always need the #password suffix. Omitting it hands the entire JSON document over as the value, which typically surfaces later as an authentication failure; SelectZero logs a warning in the system log when this happens. Asking for a field from a secret that is not JSON fails with a clear message, and binary secrets are not supported.

References can be used in two places:

  • Environment variables at startup, most usefully SZ_ENCRYPTION_KEY=aws-sm://prod/dqm/master-key (or azure-kv://prod-vault/dqm-master-key) so the key never exists as plaintext in the cluster. Also works for SZ_DATABASE_PASSWORD and any other supported variable. These are read once at startup, so a change needs a restart. Note the warning above: the master encryption key must not be rotated. References given this way are not subject to SZ_SECRETS_AWS_ALLOWED_PREFIXES.

  • Secret fields in the application, such as a connection password, the SMTP password, the AI assistant API key, the OAuth client secret or a webhook authorization header. Type the reference into the field instead of the secret. These are re-read as they are used, so a rotated secret is picked up automatically, within about five minutes and at the start of the next execution.

A reference is a pointer rather than a secret, so it is stored as-is and shown back to you in the form, unlike a stored password. A key icon next to the field marks a value that resolves from the secret manager.

Not every secret field accepts a reference, and the ones that do not simply treat what you type as the secret itself. The exceptions are the webhook basic-authentication password (what gets stored is derived from the username and password together, so it cannot be resolved later), the pipeline webhook signing secret (generated by SelectZero rather than entered by you), and the application database password when it is saved through the settings screen - use the SZ_DATABASE_PASSWORD environment variable for that one, which does accept a reference. If a field offers no key icon after you save a reference into it, that field is not one of the supported ones.

If a reference cannot be resolved, SelectZero reports it instead of silently continuing: an unresolvable reference at startup aborts the boot with the property name in the message, and one in a secret field fails the action that needed it, with the reason shown there. The system log (dqm-system.log) records the failure naming the reference without its #field part, never a secret value, a JSON field name or the tenant and application ids. When the secret manager is only briefly unreachable, the last value read is reused rather than failing.

Configuring access to AWS Secrets Manager

Variable name

Explanation

SZ_SECRETS_AWS_REGION

Default region for references given as a plain secret name. A reference given as a full ARN always uses the region in the ARN

SZ_SECRETS_AWS_ACCESS_KEY

Optional. Leave empty to use the AWS default credential chain - on EKS attach an IAM role to the service account (IRSA), no secrets required

SZ_SECRETS_AWS_SECRET_KEY

Optional, pairs with the access key

SZ_SECRETS_AWS_ENDPOINT

Optional. Point at a Secrets Manager compatible endpoint, for example a VPC endpoint or a local test double

SZ_SECRETS_CACHE_TTL_SECONDS

How long a resolved value is reused before the secret manager is asked again (default 300). 0 disables caching. Applies to Azure Key Vault too

SZ_SECRETS_AWS_ALLOWED_PREFIXES

Optional but recommended. Comma-separated secret-id prefixes that references entered in the application may read, e.g. prod/dqm/connections/. References in environment variables at startup are exempt. Leave unset for no restriction. See the security note below

Nothing is contacted unless a reference is actually present, so these variables can be left unset on installations that do not use the feature.

A least-privilege policy grants read access to the specific secrets SelectZero needs and nothing else:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "secretsmanager:GetSecretValue", "Resource": [ "arn:aws:secretsmanager:eu-central-1:123456789012:secret:prod/dqm/master-key-*", "arn:aws:secretsmanager:eu-central-1:123456789012:secret:prod/dqm/db-credentials-*" ] } ] }

The trailing -* matches the six random characters AWS appends to a secret ARN. If the secret is encrypted with a customer managed KMS key, the same role also needs kms:Decrypt on that key.

What the IAM policy protects

Treat this policy as a security boundary, not just as tidy configuration. A user who may edit a connection can type any reference into a credential field, and SelectZero resolves it with the identity above and then sends the resolved value to the server configured on that connection. Anyone with connection-edit rights can therefore read any secret that identity can read, by pointing a connection at a host they control. Two consequences:

  • Set SZ_SECRETS_AWS_ALLOWED_PREFIXES whenever the identity can read anything DQM users must not reach, the master encryption key above all. It is optional and unset by default, meaning any secret the identity can read is reachable; when you set it, SelectZero refuses any reference entered in the application that falls outside those prefixes, before contacting AWS. References in environment variables at startup are set by you, the operator, and are exempt, so the master key can sit outside the prefixes and still be read at startup:

SZ_ENCRYPTION_KEY=aws-sm://prod/dqm/master-key SZ_DATABASE_PASSWORD=aws-sm://prod/dqm/db-credentials#password SZ_SECRETS_AWS_ALLOWED_PREFIXES=prod/dqm/connections/,prod/dqm/smtp

With this setup the example policy above, which grants the master key and the database credentials to the same identity, is safe: neither can be reached by typing a reference into a connection or settings field.

  • For the strongest separation, grant the runtime identity only the secrets DQM users are allowed to use, and provide the master key from a separate identity or a Kubernetes Secret, so it is never resolvable by the running application at all.

The prefix is matched against the secret name, so a reference given as a full ARN is checked the same way and cannot be used to get around it.

As a companion control, enabling the DNS whitelist under Settings > General restricts which hosts connections may reach at all, which limits where a resolved secret can be sent.

Configuring access to Azure Key Vault

Variable name

Explanation

SZ_SECRETS_AZURE_CLIENT_SECRET

Optional. Leave empty to sign in with AKS workload identity or a managed identity, no secrets required. Set it to sign in as a service principal

SZ_SECRETS_AZURE_TENANT_ID

Required with a client secret. With workload identity it defaults to the value the AKS webhook injects

SZ_SECRETS_AZURE_CLIENT_ID

Required with a client secret. Otherwise optional: selects a user-assigned managed identity, or overrides the workload identity client id

SZ_SECRETS_AZURE_VAULT_DNS_SUFFIX

Optional. Defaults to vault.azure.net. Set vault.azure.cn or vault.usgovcloudapi.net for a sovereign cloud

SZ_SECRETS_AZURE_ENDPOINT

Optional, for testing only. Sends every request to this URL instead of the vault, for example a local Key Vault emulator

SZ_SECRETS_AZURE_SIGN_IN_TIMEOUT_SECONDS

Optional. How long a request waits for a sign-in token before failing (default 10). If no identity answers, requests fail at once for 30 seconds instead of each waiting again. A rejected sign-in, such as a wrong client secret, is retried on every request

SZ_SECRETS_AZURE_ALLOWED_PREFIXES

Optional but recommended. Comma-separated <vault-name>/<secret-name> prefixes SelectZero may read, e.g. prod-vault/ or prod-vault/dqm-. Leave unset for no restriction

As with AWS, nothing is contacted unless an azure-kv:// reference is present. If a connection test reports that managed identity was used while you meant a client secret, SZ_SECRETS_AZURE_CLIENT_SECRET did not reach the application.

Without a client secret, SelectZero signs in with AKS workload identity when the pod has one, and otherwise with the managed identity of the host. For workload identity, label the pod azure.workload.identity/use: "true", annotate its service account with azure.workload.identity/client-id, and add a federated credential for that service account to the identity; the AKS webhook then injects everything SelectZero needs. Developer sign-ins such as the Azure CLI are deliberately not used.

The identity needs to read secrets and nothing else. With Azure RBAC on the vault (the default for new vaults), assign it the Key Vault Secrets User role, preferably on the individual secrets SelectZero uses rather than on the whole vault:

az role assignment create --role "Key Vault Secrets User" \ --assignee <identity-client-id> \ --scope /subscriptions/<subscription>/resourceGroups/<group>/providers/Microsoft.KeyVault/vaults/prod-vault/secrets/dqm-db-password

On a vault that still uses access policies, grant the Get secret permission instead. A disabled secret is refused the same way as missing permission.

The same security boundary applies as described for AWS above: anyone who may edit a connection can read any secret this identity can read. Prefer keeping the master encryption key out of the vaults the runtime identity can reach, and set SZ_SECRETS_AZURE_ALLOWED_PREFIXES. As with AWS, the prefixes limit only references typed into the application, not environment variables at startup, so a master key read with SZ_ENCRYPTION_KEY=azure-kv://prod-vault/dqm-master-key must stay outside them. Vault and secret names are not case sensitive in Azure, so neither is this check. This list allows connection and SMTP secrets but not that key:

SZ_SECRETS_AZURE_ALLOWED_PREFIXES=prod-vault/dqm-conn-,shared-vault/dqm-smtp

A rejected sign-in fails with "could not sign in to Azure" and Azure's error code, for example AADSTS7000215 (wrong client secret), AADSTS700016 (unknown client id) or AADSTS90002 (unknown tenant). A tenant id that is neither a GUID nor a domain name is reported as invalid settings before anything is sent to Azure.

A reference to a vault in a different Azure tenant than the configured identity fails with a message saying so. With a client secret it names SZ_SECRETS_AZURE_TENANT_ID; with workload identity it names SZ_SECRETS_AZURE_TENANT_ID when set, otherwise AZURE_TENANT_ID. Check that tenant id, or use a vault from that tenant. Setting the prefixes also stops such references before anything is sent to that vault.

Quick start

Fastest way of deploying SelectZero is by using our predefined docker compose file, which takes care of the configuration for you. Make sure you are in the preferred directory on the machine.

Downloading docker compose and launching it:

curl -fsSL https://selectzero.com/deploy/docker-compose.yml -o docker-compose.yml && docker compose up -d
curl -o docker-compose.yml https://selectzero.com/deploy/docker-compose.yml; docker compose up -d

If you need more precise configuration you can simply download the docker-compose:

curl -fsSL https://selectzero.com/deploy/docker-compose.yml -o docker-compose.yml
curl -o docker-compose.yml https://selectzero.com/deploy/docker-compose.yml

Modify it based on your needs and then run it:

docker compose up -d

After running the platform, you can acquire initial admin password (application boot up might take a few seconds):

docker exec -it selectzero cat admin-init.txt

First login: setup wizard

Until the setup is finished, an administrator who logs in lands on the setup page (/settings/setup, not listed in the Settings menu), which walks through the first steps of a new installation. An installation upgraded from an earlier version is not sent there; the page is still available at /settings/setup. The welcome screen shows the three steps as cards; the step list on the left counts the completed ones. All steps are optional and Next always moves on:

  1. Change the admin password. Offered only when the built-in admin account logs in for the first time with the password generated at installation: that session replaces it with one of its own. After a logout or a restart the step is no longer shown, and the password can always be changed under Settings → Profile.

  2. Add a license. Either paste the license key and activate it, after which the page confirms the license details, or pick Continue on the free tier: up to 3 connections and 3 read-only users besides the administrator. A key lifts the limits and can be added later in Settings → General. When a license is already active the step shows its details instead, and a new key can be pasted to replace it.

  3. Set up a connection to a data source. The connector list is grouped into databases, files, services and BI tools. A connector that needs a JDBC driver JAR can be uploaded on the spot together with a link to the driver downloads; the restart that loads it brings the setup page back to the same step with the connector and name restored. The setup covers one connection: coming back to this step shows it for editing, and further connections are added on the Connections page. A connection whose test fails stays open for fixing and the step is not marked done until it connects.

  4. Sync metadata. Pick a connection and the schemas to add. Every chosen schema appears in the table at once and shows whether it is queued, syncing, synced or failed; the page waits for each sync however long it takes. The schema list is the one read when the connection was saved; the refresh button next to the picker reads it again, so a schema created since then can be picked. Once metadata is synced, Add a dbt project switches the dbt module on (Settings → General → Modules) and opens the project dialog. The saved project is synced immediately and its details open when the sync is done.

  5. Add users. Create accounts for colleagues one after the other with Add another user. On the free tier these are read-only accounts (the built-in user role), up to three besides the administrator.

The last page sums up what is in place (license, connections, synced objects, users, dbt) and lists what to do next, each item with a link into the application and to the matching documentation: further connections, alerting and test cases. A setup interrupted by a restart or a logout is picked up again at the next login, with the finished steps ticked. Finish, or Do this later in the footer of any step, marks the setup as seen: it then stays away on login and can be reopened at any time by visiting /settings/setup as an administrator. The page and its API are available to administrators only.

Deployment

Download the latest version of JAR from https://selectzero.com/downloads/

To run JAR application, use command:

java -XX:TieredStopAtLevel=1 -Dspring.jmx.enabled=false -XX:+ExitOnOutOfMemoryError -Xmx2g -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:G1PeriodicGCInterval=60000 -XX:+ExplicitGCInvokesConcurrent -Dserver.port=8090 -jar SelectZero_2026.10.2.jar

-Xmx2g – The Java heap, here 2GB for a 4GB server: about half of the memory, because the query engine uses memory outside the heap (see Memory sizing)

-XX:+ExitOnOutOfMemoryError – Ends the process when the heap runs out, so a service manager can restart it

-XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:G1PeriodicGCInterval=60000 -XX:+ExplicitGCInvokesConcurrent – Lets Java hand back heap memory it no longer uses, so the query engine can use it, without pausing the application to do so (the Docker image sets these itself)

-Dserver.port=8090 – Defining SelectZero application port (8090 is also default port if not provided)

It is recommended to run the Java file as a service.

Link to Java Service on Ubuntu

On Windows, see Running on Windows Server.

For hosting your application on your cloud instance, make sure you have a connection to docker hub.

You can find latest versions here

Deploy with docker

  1. Pull docker image

    docker pull selectzero/selectzero:2026.10.2
  2. Run container

    docker run -d -v {local_path}/logs:/usr/app/logs -v {local_path}/database:/usr/app/database -v {local_path}/drivers:/usr/app/drivers -v {local_path}/reports:/usr/app/reports -v {local_path}/keys:/usr/app/keys -p 8090:8090 -e JAVA_OPTIONS='-XX:MaxRAMPercentage=50.0' selectzero/selectzero:2026.10.2

    -v {local_path}/logs:/usr/app/logs

    Logs storage

    -v {local_path}/database:/usr/app/database

    DQM local database

    -v {local_path}/drivers:/usr/app/drivers

    JAR connectors storage

    -v {local_path}/reports:/usr/app/reports

    Reports and results

    -v {local_path}/keys:/usr/app/keys

    Key files storage such as BigQuery JSON keys and application certificate keystore

    -p 8090:8090

    Port mapping for exposing DQM application at port 8090

    selectzero/selectzero:2026.10.2

    Image from dockerhub, latest tag is also available

  3. Validate that DQM container is running

    docker ps

Docker compose is the easiest way to deploy/manage DQM with docker containers

Deploy with docker compose

  1. Create docker-compose.yml

    services: selectzero: container_name: selectzero image: selectzero/selectzero:2026.10.2 ports: - 8090:8090 volumes: - ./logs:/usr/app/logs - ./database:/usr/app/database - ./drivers:/usr/app/drivers - ./reports:/usr/app/reports - ./keys:/usr/app/keys environment: JAVA_OPTIONS: -XX:MaxRAMPercentage=50.0
  2. Run docker compose

    docker compose up -d

The recommended way is the Helm chart:

helm install selectzero oci://registry-1.docker.io/selectzero/selectzero-helm \ --version 2026.10.2 -n YOUR-NAMESPACE --create-namespace -f values.yaml

Kubernetes has its own page. Kubernetes deployment is a complete runbook covering both storage variants: S3 storage mode with no persistent volume, and the persistent volume variant for EBS, EFS, Azure Disk and GCE Persistent Disk. The chart values and the reference manifests live there.

Running on Windows Server

SelectZero runs on Windows Server as a JAR under a Windows service. We test it on Windows Server 2022 with Microsoft Defender on, as a service under a local account without administrator rights. Windows needs a few settings that Linux and the Docker image do not.

  • x64 only. The query engine behind comparisons and the CSV, Excel, SharePoint and REST connections ships native libraries for x64 Windows. Windows on ARM is not supported. Use a 64-bit Java 17.

  • Install folder. Keep the JAR in its own folder, for example C:\SelectZero. SelectZero creates database, tempFiles and logs next to it, so the service account needs Modify rights on the folder.

  • Working directory. Those folders are created in the working directory. A Windows service starts in C:\Windows\System32 unless its wrapper sets the working directory, so set it to the install folder.

  • Temporary folder. At startup, SelectZero unpacks native libraries (the SQLite driver and the query engine) into Java's temporary folder, by default the Temp folder in the service account's profile. Point it into the install folder with -Djava.io.tmpdir=C:\SelectZero\tmp, and create that folder. This keeps the libraries where an application control rule can allow them (see below).

Installing the service

Any service wrapper that sets the working directory works. This example uses WinSW 2.x: rename WinSW-x64.exe to selectzero-service.exe, put it in the install folder with this selectzero-service.xml next to it, and adjust the Java path and the heap (see Memory sizing):

<service> <id>SelectZero</id> <name>SelectZero</name> <description>SelectZero data quality platform</description> <executable>C:\Program Files\Eclipse Adoptium\jdk-17\bin\java.exe</executable> <arguments>-XX:TieredStopAtLevel=1 -Dspring.jmx.enabled=false -XX:+ExitOnOutOfMemoryError -Xmx2g -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:G1PeriodicGCInterval=60000 -XX:+ExplicitGCInvokesConcurrent -Djava.io.tmpdir=C:\SelectZero\tmp -Dserver.port=8090 -jar SelectZero_2026.10.2.jar</arguments> <workingdirectory>C:\SelectZero</workingdirectory> <startmode>Automatic</startmode> <onfailure action="restart" delay="10 sec"/> <log mode="roll-by-size"/> </service>

Then, in an administrator PowerShell, install the service:

cd C:\SelectZero .\selectzero-service.exe install

To run the service under its own account, set the account under Services → SelectZero → Log On now. If you set it in the XML instead, WinSW 2.x needs <serviceaccount> with <domain>.</domain> and <user>name</user>: it ignores <username>, which is the WinSW 3 spelling, and silently runs the service as LocalSystem.

Then start the service:

.\selectzero-service.exe start

-XX:+ExitOnOutOfMemoryError together with <onfailure action="restart"> restarts the service when the Java heap runs out. The initial admin password is in C:\SelectZero\admin-init.txt. Only the service account can read that file, so an administrator has to take ownership of it first.

To update, stop the service, replace the JAR, change the file name in <arguments> and start the service again.

Application control (AppLocker, WDAC)

A policy that enforces DLL rules for services blocks the native libraries SelectZero unpacks at runtime. Two folders need an allow rule for the service account, with the temporary folder set as above:

  • C:\SelectZero\tmp\* (the SQLite driver and the query engine)

  • C:\SelectZero\tempFiles\duckdb-extensions\* (the query engine's extension for encrypted files)

Without the first rule the query engine cannot load, and with the built-in SQLite database the service does not start at all. Without the second, comparisons, Excel and SharePoint connections, and CSV connections on uploaded files fail with Extension "...httpfs.duckdb_extension" could not be loaded: This program is blocked by group policy. The query engine's files end in .so and .duckdb_extension and are still checked by DLL rules. The AppLocker log (Microsoft-Windows-AppLocker/EXE and DLL) shows each blocked file as event 8004.

AppLocker's default rules do not apply to services unless enforcement for services is switched on, so a server without that setting needs no rules. We verified the two rules with AppLocker. A WDAC policy needs the same two folders.

Antivirus and long paths

Microsoft Defender's real-time scanning had no measurable effect in our tests: building the cache of a 2 million row CSV connection took the same time with and without an exclusion. An exclusion for C:\SelectZero\tempFiles is optional. Consider it if another antivirus product slows down file connections.

CSV folders with file paths longer than 260 characters work without any Windows setting. The LongPathsEnabled registry setting does not change this.

S3 storage mode (stateless Kubernetes)

For Kubernetes environments with a "no persistent volumes" policy, SelectZero can store all durable files (execution results, test suite reports, uploaded data source files, synced SharePoint workbooks, JDBC drivers, custom logo, certificates) in an Amazon S3 bucket instead of a persistent volume. Pods become fully stateless: local disk is used only as an ephemeral working copy (emptyDir), and the entire cluster can be rebuilt from manifests without data loss.

By default all files are encrypted by the application before they reach the bucket - S3 only ever holds ciphertext, and the encryption key never leaves your secrets manager.

Alternatively, set SZ_FILE_ENCRYPTION=false to delegate encryption at rest entirely to the storage layer: files are written as-is and the bucket's server-side encryption (SSE-S3 or SSE-KMS) protects them. The main benefit is key management - rotating a KMS key is handled by AWS and never requires re-encrypting stored files, whereas rotating SZ_ENCRYPTION_KEY with application-side file encryption would. SZ_ENCRYPTION_KEY is still required in S3 mode either way, because it also protects secrets stored in database columns (connection passwords, certificates), which S3 encryption cannot cover. File names keep their .enc suffix in both modes.

Requirements

  1. External PostgreSQL as the application database (SQLite is not supported in S3 mode)

  2. SZ_ENCRYPTION_KEY must be provided from your secrets manager - the application refuses to start in S3 mode without it, because a locally generated key would not survive a pod restart and would make the encrypted files in the bucket unreadable. Either pass the key itself, or point the variable at an aws-sm:// or azure-kv:// secret reference so it is fetched at startup and never stored in the cluster. Without it the application logs a line starting with Startup aborted on standard output and exits; see When the pod does not start

  3. An S3 bucket and IAM permissions: s3:ListBucket on the bucket, s3:GetObject, s3:PutObject, s3:DeleteObject on the bucket contents

At startup in S3 mode the application lists the bucket once to verify the configuration. If the bucket cannot be reached - wrong name or region, missing s3:ListBucket, or credentials that do not resolve - the application refuses to start and logs the reason, rather than running with file storage that would fail later during a scheduled job.

Configuration

Variable name

Explanation

SZ_STORAGE_MODE

local (default, filesystem/volume storage) or s3

SZ_STORAGE_S3_BUCKET

Bucket name for durable file storage

SZ_STORAGE_S3_REGION

AWS region of the bucket, e.g. eu-central-1

SZ_STORAGE_S3_PREFIX

Optional key prefix inside the bucket, e.g. dqm/ - for team-shared buckets

SZ_STORAGE_S3_ACCESS_KEY

Optional. Leave empty to use the AWS default credential chain - on EKS attach an IAM role to the service account (IRSA), no secrets required

SZ_STORAGE_S3_SECRET_KEY

Optional, pairs with the access key

SZ_FILE_ENCRYPTION
(previously DQM_FILE_ENCRYPTION)

true (default): the application encrypts files before upload. false: files are stored as-is and encryption at rest is delegated to bucket SSE. Install-time choice - never flip on existing data

Reading a credential failure

When credentials cannot be resolved, the AWS SDK reports every provider it tried. Only the provider matching your setup matters; the others always fail and can be ignored:

  • Running with an IAM role (IRSA or EKS Pod Identity), the messages about AWS_ACCESS_KEY_ID are expected. A role never produces an access key.

  • Profile file contained no credentials for profile 'default' refers to an AWS credentials profile (~/.aws/credentials), not to a Kubernetes service account. The container has no such file, so this line is normal and unrelated to which service account the pod runs under.

  • With IRSA, the line to check is the web identity one. The pod's service account must carry the eks.amazonaws.com/role-arn annotation, which makes EKS inject AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE into the container. Verify with kubectl exec <pod> -- env | grep AWS_; the service account itself is selected by spec.serviceAccountName in the pod spec, never by application configuration.

Security model with file encryption disabled

When SZ_FILE_ENCRYPTION=false, encryption at rest is provided by the infrastructure instead of the application. Verify and configure the following:

  1. Bucket encryption. Check what the bucket applies with aws s3api get-bucket-encryption --bucket <bucket>. Every S3 bucket encrypts objects at rest by default (SSE-S3/AES256). For customer-controlled key rotation, configure the bucket with SSE-KMS and a customer-managed KMS key, and enable S3 Bucket Keys to reduce KMS request costs (SelectZero writes many small objects). Rotating the KMS key never requires re-encrypting stored objects.

  2. Per-object proof. aws s3api head-object --bucket <bucket> --key "reports/results/<file>" returns a ServerSideEncryption field (AES256 or aws:kms with the key id) - evidence that a specific object is encrypted at rest.

  3. IAM. With SSE-KMS the application's role additionally needs kms:GenerateDataKey and kms:Decrypt on the key, on top of the S3 permissions listed under Requirements.

  4. Bucket policies. The application sends no explicit encryption headers - bucket default encryption applies to its uploads. A bucket policy that denies PutObject requests lacking an explicit x-amz-server-side-encryption header will therefore reject all uploads; rely on bucket default encryption instead of such deny policies.

  5. Local working copies. The pod's ephemeral volume holds plaintext working copies of uploaded files and cached results while the pod runs (with file encryption enabled it holds plaintext temporary data during query execution as well - only the durable copies differ). At-rest protection for the node comes from volume encryption (e.g. encrypted EBS), which is the same posture as any database workload. For the strictest setup, back the working directories with emptyDir: {medium: Memory} sized for the full uploaded-file set plus cache - plaintext then never touches a disk.

Secrets stored in database columns (connection passwords, certificates, tokens) are encrypted with SZ_ENCRYPTION_KEY in every mode - the flag only affects files.

Kubernetes example

Install with the Helm chart: the values for this mode are under Values for S3 storage mode. The reference manifests, including the Secret, the IRSA service account, the probes and the emptyDir sizing, are on the same page under S3 storage mode on Amazon EKS.

Startup hydration

On every pod start in S3 mode, SelectZero restores its working directories (uploaded data source files, synced SharePoint workbooks, drivers, logo, certificates) from the bucket before the application becomes ready. Progress is visible in the System log tab inside the application. These lines go to the system log only, so they do not appear on standard output:

S3 hydration starting: restoring mirrored directories [database/files, database/images, database/system/sharepoint, drivers, keys] from bucket storage S3 hydration finished: restored 142 file(s) in 8317ms

Startup time grows with the amount of uploaded data (downloads run in parallel; roughly 1-3 minutes for 15GB of uploaded files in-region). Configure the pod's startupProbe with enough headroom for your data volume so Kubernetes does not restart the pod mid-hydration. The Helm chart and the reference manifest at Manifests both allow 10 minutes in S3 mode; with the chart, raise probes.startup.failureThreshold for more.

Choosing underlying database

SelectZero supports two underlying database types:

  1. SQLite - default deployment database. Local file based database

  2. Postgres - Separate database instance for better performance and scaling. Can be enabled via UI or directly from environment variables

In S3 storage mode PostgreSQL is mandatory: the SQLite database file is not stored in the bucket, so on ephemeral storage it would be lost at every restart. The application refuses to start in S3 mode without it. Configure the database with the environment variables below: settings saved on the Database settings page are kept in database/config.json, which is not stored in the bucket either.

Supported environment variables

Variable name

Explanation

SZ_ENCRYPTION_KEY
(previously DQM_ENCRYPTION_KEY)

Custom encryption key for encrypting underlying secrets, and files while file encryption is enabled. May also be an aws-sm:// or azure-kv:// secret reference so the key is never stored in the cluster. Must not be rotated

SZ_ALLOW_ENCRYPTION_KEY_CHANGE

false (default): refuse to start when the encryption key is not the one earlier boots used. true: start anyway, accepting that everything encrypted with the previous key becomes unreadable

SZ_FILE_ENCRYPTION
(previously DQM_FILE_ENCRYPTION)

true (default) encrypts stored files application-side; false stores files as-is and leaves encryption at rest to the storage layer (e.g. S3 SSE, disk encryption). Install-time choice - never flip on existing data

SPRING_PROFILES_ACTIVE

Profile to run platform with (default 'on-prem'). Available profiles are on-prem, secure-session

SZ_API_DOCS_ENABLED

true (default) serves Swagger UI at /swagger-ui.html and the OpenAPI specification at /v3/api-docs to signed-in users. false turns both off; the API itself is unaffected. See API

SZ_LOG_JSON

true additionally writes every log stream as one-line JSON to logs/dqm.json for an external log collector (Filebeat, rsyslog, Elastic Agent). Default false; the text log files are unchanged either way. See JSON log file

SZ_LOG_PSEUDONYMIZE

true replaces the login name with a hashed id and masks the client IP in the standard output log prefix. Default false; logs/dqm.log keeps the plain values either way. See Hiding user identity

SZ_JDBC_URL

Postgres JDBC url for application database. The application does not start while this database is unreachable

SZ_DATABASE_USER

Postgres JDBC user for application database

SZ_DATABASE_PASSWORD

Postgres JDBC password for application database

SZ_DATABASE_SSL_MODE

Postgres JDBC SSL Mode for application database (NONE, SSL, SSL_VERIFY). An unrecognised value falls back to NONE with a warning in the log.
If CA cert is needed, it is possible to map it with docker keys volume (keys/pg-certs/ca.crt)

SZ_STORAGE_MODE

Durable file storage backend: local (default) or s3. See S3 storage mode for the full variable set

JAVA_OPTIONS

Extra JVM options for the SelectZero process. The image's default heap is -XX:MaxRAMPercentage=50.0; a heap option in the variable (-Xmx or -XX:MaxRAMPercentage) replaces it (see Memory sizing). Also where -Djava.security.properties=... goes when connecting to legacy database servers

SZ_MEMORY_WATCHDOG_ENABLED

true (default) stops the query engine work using the most memory, with the result memory usage too high, before the memory runs out. false turns this off; the operating system may then stop the whole application instead

SZ_MEMORY_WATCHDOG_HEADROOM_MB
SZ_MEMORY_WATCHDOG_HEADROOM_PERCENT

How far below the memory limit query engine work is stopped: the larger of the two, default 384 MB and 10%

SZ_MEMORY_WATCHDOG_MIN_ENGINE_MB

Query engine work using less than this (default 64 MB) is never stopped: when the Java heap or another process fills the memory, the log says so instead of failing a test

SZ_MEMORY_WATCHDOG_HEAP_RECLAIM

true (default): when memory gets close to the limit, Java first hands back heap memory it no longer uses (a garbage collection, at most every 30 seconds) before any query engine work is stopped, unless memory is already close to the limit: then the work is stopped first and the heap handed back right after. false turns this off

Updating SelectZero version

Update JAR

  1. Download the latest version of JAR from https://selectzero.com/downloads/

  2. Stop the old JAR service

    systemctl stop {service-name}
  3. Run new JAR

    java -XX:TieredStopAtLevel=1 -Dspring.jmx.enabled=false -XX:+ExitOnOutOfMemoryError -Xmx2g -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:G1PeriodicGCInterval=60000 -XX:+ExplicitGCInvokesConcurrent -Dserver.port=8090 -jar SelectZero_2026.10.2.jar

Update docker container

  1. Pull new docker image

    docker pull selectzero/selectzero:2026.10.2
  2. Look for old container name

    docker ps
  3. Stop old container

    docker stop {container-name}
  4. Run container with new version

    docker run -d -v {local_path}/logs:/usr/app/logs -v {local_path}/database:/usr/app/database -v {local_path}/drivers:/usr/app/drivers -v {local_path}/reports:/usr/app/reports -v {local_path}/keys:/usr/app/keys -p 8090:8090 -e JAVA_OPTIONS='-XX:MaxRAMPercentage=50.0' selectzero/selectzero:2026.10.2
  5. Validate that SelectZero container is running with new version

    docker ps

Update docker compose

  1. Modify existing docker-compose.yml

    services: selectzero: container_name: selectzero image: selectzero/selectzero:2026.10.2 # Change version ports: - 8090:8090 volumes: - ./logs:/usr/app/logs - ./database:/usr/app/database - ./drivers:/usr/app/drivers - ./reports:/usr/app/reports - ./keys:/usr/app/keys environment: JAVA_OPTIONS: -XX:MaxRAMPercentage=50.0
  2. Run docker compose

    docker compose up -d

With the Helm chart, upgrade to the new chart version:

helm upgrade selectzero oci://registry-1.docker.io/selectzero/selectzero-helm \ --version 2026.10.2 -n YOUR-NAMESPACE -f values.yaml

With raw manifests, change the image tag and apply. See Updating the version for the commands and what happens during the rollout.

Fixing folder rights for non-root user

From version 2023.10 SelectZero container is running on non-root user "dqm". This is due to security reasons. "dqm" user uses default groups UID:1000 GID:1000. In case SelectZero container startup should give folder access rights, we have prepared a few fix scripts for assigning correct user rights to folders. This is a one time action and will work as expected in the future. It won't affect new installs, unless using direct docker bind mount to host system.

Fix folder rights

  1. Stop existing container

    docker stop {container_name}
  2. Run busybox container to fix folder permissions

    docker run --rm -v {local_path}/logs:/usr/app/logs -v {local_path}/database:/usr/app/database -v {local_path}/drivers:/usr/app/drivers -v {local_path}/reports:/usr/app/reports -v {local_path}/keys:/usr/app/keys busybox:latest sh -c "chown -R 1000:1000 /usr/app"
  3. Run the original container with fixed folder permissions

    docker run -d -v {local_path}/logs:/usr/app/logs -v {local_path}/database:/usr/app/database -v {local_path}/drivers:/usr/app/drivers -v {local_path}/reports:/usr/app/reports -v {local_path}/keys:/usr/app/keys -p 8090:8090 -e JAVA_OPTIONS='-XX:MaxRAMPercentage=50.0' {image_id}

Fix folder rights

  1. Modify existing docker-compose.yml to include startup service

    version: "3.7" services: busybox: container_name: busybox-folders image: busybox volumes: - ./logs:/usr/app/logs - ./database:/usr/app/database - ./drivers:/usr/app/drivers - ./reports:/usr/app/reports - ./keys:/usr/app/keys command: ["chown", "-R", "1000:1000", "/usr/app/"] selectzero: container_name: selectzero-non-root image: "selectzero/selectzero:2026.10.2" ports: - "8090:8090" volumes: - ./logs:/usr/app/logs - ./database:/usr/app/database - ./drivers:/usr/app/drivers - ./reports:/usr/app/reports - ./keys:/usr/app/keys environment: JAVA_OPTIONS: -XX:MaxRAMPercentage=50.0 depends_on: busybox: condition: service_completed_successfully
  2. Re-apply docker compose

    docker compose up -d

A new installation with the Helm chart does not need this: the chart runs SelectZero as user 1000 with fsGroup: 1000, and Kubernetes hands the volume to that group when it mounts it. The fix below is for volumes written by a SelectZero version before 2023.10 on storage that ignores fsGroup, such as NFS or Amazon EFS. On the chart, add the init container through extraInitContainers instead of editing the Deployment:

extraInitContainers: - name: folder-rights-fix image: busybox:1.36 command: ["chown", "-R", "1000:1000", "/usr/app/"] securityContext: runAsUser: 0 runAsNonRoot: false # the chart runs every container as non-root unless told otherwise volumeMounts: - {name: storage, mountPath: /usr/app/database, subPath: database} - {name: storage, mountPath: /usr/app/logs, subPath: logs} - {name: storage, mountPath: /usr/app/drivers, subPath: drivers} - {name: storage, mountPath: /usr/app/reports, subPath: reports} - {name: storage, mountPath: /usr/app/keys, subPath: keys}

With raw manifests:

Fix folder rights

  1. Modify deployment resource to include init container

    ... spec: volumes: - name: selectzero-storage persistentVolumeClaim: claimName: selectzero-storage-claim initContainers: - name: folder-rights-fix image: busybox:latest securityContext: runAsUser: 0 imagePullPolicy: Always command: ["chown", "-R", "1000:1000", "/usr/app/"] volumeMounts: - mountPath: "/usr/app/database" name: {storage-name} subPath: database - mountPath: "/usr/app/logs" name: {storage-name} subPath: logs - mountPath: "/usr/app/drivers" name: {storage-name} subPath: drivers - mountPath: "/usr/app/reports" name: {storage-name} subPath: reports - mountPath: "/usr/app/keys" name: {storage-name} subPath: keys containers: - name: selectzero ...
  2. Add security context to main deployment spec

    ... apiVersion: apps/v1 kind: Deployment metadata: name: selectzero-deployment spec: securityContext: runAsUser: 1000 fsGroup: 1000 ...
  3. Re-apply kubernetes resource

    kubectl apply -f selectzero.yaml

Securing deployment for production

For production environments we recommend adding extra security options to make the platform more resilient.

  1. Adding host headers

  2. Enabling secure session cookies with secure-session profile (requires https)

Connecting to legacy database servers (TLS 1.0 / 1.1)

Old database servers, for example SQL Server 2008 or 2012 without the TLS 1.2 update, only speak TLS 1.0 or 1.1. The Java 17 runtime inside the SelectZero container disables these protocols and their cipher suites, so the connection fails during the TLS handshake.

The setting that blocks them is a Java security property, not a system property. It cannot be changed with -Djdk.tls.disabledAlgorithms=... or an environment variable. It has to be overridden through a small properties file that the JVM loads on top of its own defaults.

Enabling TLS 1.0 / 1.1

  1. Create a file legacy-tls.properties containing the JDK default list without the entries your server needs. The line below is the Java 17 default with TLSv1, TLSv1.1 and TLS_RSA_* removed, which is what SQL Server 2008 / 2012 typically requires:

    jdk.tls.disabledAlgorithms=SSLv3, DTLSv1.0, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, ECDH, rsa_pkcs1_sha1 usage HandshakeSignature, ecdsa_sha1 usage HandshakeSignature, dsa_sha1 usage HandshakeSignature

    If the server only offers 3DES cipher suites, also remove 3DES_EDE_CBC. The current default list can be read from /opt/java/openjdk/conf/security/java.security inside the SelectZero image.

  2. Make the file available to the container, for example as a Kubernetes ConfigMap mounted at /usr/app/keys/legacy-tls.properties, or a bind mount inside the keys folder on Docker Compose.

  3. Add the flag to JAVA_OPTIONS. Use a single =. With == the file replaces the whole JDK security configuration instead of overlaying it, and the JVM loses its SSL providers entirely.

    JAVA_OPTIONS: "-XX:MaxRAMPercentage=50.0 -Djava.security.properties=/usr/app/keys/legacy-tls.properties"
  4. Restart SelectZero. If the server presents a self-signed certificate, the handshake now succeeds but certificate validation fails. Preferably keep validation on: export the server certificate, place it in a PKCS12 truststore inside the keys folder and point the connection's JDBC properties at it, e.g. encrypt=true;trustStore=/usr/app/keys/legacy-mssql.p12;trustStoreType=PKCS12;trustStorePassword=...;hostNameInCertificate=SQLHOST01. The driver also checks the host name against the certificate. Auto-generated SQL Server certificates carry the machine's NetBIOS name as CN, so when you connect by FQDN or IP address set hostNameInCertificate to that CN, otherwise validation fails with "Failed to validate the server name in a certificate". Only if the truststore route is not workable, set encrypt=true;trustServerCertificate=true instead. Be aware that this disables server identity verification entirely, so the connection is encrypted but not authenticated.

If the connection still fails, check the path: a java.security.properties flag pointing at a missing or unreadable file is ignored silently and the defaults stay in effect.

With the Helm chart, everything goes into your values file: the ConfigMap through extraObjects, the volume and its mount through extraVolumes and extraVolumeMounts, and the flag through config.javaOptions.

config: javaOptions: "-XX:MaxRAMPercentage=50.0 -Djava.security.properties=/usr/app/keys/legacy-tls.properties" extraObjects: - apiVersion: v1 kind: ConfigMap metadata: name: selectzero-legacy-tls data: legacy-tls.properties: | jdk.tls.disabledAlgorithms=SSLv3, DTLSv1.0, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, ECDH, rsa_pkcs1_sha1 usage HandshakeSignature, ecdsa_sha1 usage HandshakeSignature, dsa_sha1 usage HandshakeSignature extraVolumes: - name: legacy-tls configMap: name: selectzero-legacy-tls extraVolumeMounts: - name: legacy-tls mountPath: /usr/app/keys/legacy-tls.properties subPath: legacy-tls.properties readOnly: true

With raw manifests, first the ConfigMap holding the file:

apiVersion: v1 kind: ConfigMap metadata: name: selectzero-legacy-tls data: legacy-tls.properties: | jdk.tls.disabledAlgorithms=SSLv3, DTLSv1.0, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, ECDH, rsa_pkcs1_sha1 usage HandshakeSignature, ecdsa_sha1 usage HandshakeSignature, dsa_sha1 usage HandshakeSignature

Then the additions to your existing Deployment manifest (see Manifests). The volume is a pod-level key next to containers; the mount and the environment variable belong to the SelectZero container:

spec: template: spec: volumes: - name: legacy-tls configMap: name: selectzero-legacy-tls containers: - name: selectzero env: - name: JAVA_OPTIONS value: "-XX:MaxRAMPercentage=50.0 -Djava.security.properties=/usr/app/keys/legacy-tls.properties" volumeMounts: - name: legacy-tls mountPath: /usr/app/keys/legacy-tls.properties subPath: legacy-tls.properties readOnly: true
03 November 2026