Skip to content

Settings and environment variables

This page lists where QubeSight keeps its settings: the .env file of the installation (environment variables), the files in secrets/, and the settings stored in PostgreSQL that you change in the interface. It states which values you may change, which are generated, and which are read only once.

Community Enterprise

Where settings live

Place Content How to change
PostgreSQL (configuration database) All product settings: users, roles, integrations, alert rules, notification channels, retention, backup settings, licence, certificates metadata, installation settings In the interface. Included in every configuration backup and restored with it.
.env (release directory, mode 0600) This machine's wiring: ports, listen addresses, resource limits, image versions, internal tokens, root keys, and installer answers read on the first start Edit .env, then apply (see below). Never commit or share it.
secrets/ (mode 0700) PostgreSQL passwords, the HTTPS seed certificate, the Kafka admin credentials file Generated; do not edit
Named volumes Web certificate store, control-plane secrets (for example the access manager's first password), backups, models Managed by the product

Applying a .env change

docker compose reads .env when a service is created. After you edit it:

cd /opt/qubesight
sudo ./install.sh --recreate        # recommended: validates and recreates what changed
# or, for an installation never updated through patches:
docker compose up -d

On an installation updated through Platform → System and Cluster → Update, plain docker compose up -d can recreate services unnecessarily; use ./install.sh --recreate. docker compose restart does not re-read .env.

Warning

Back up .env securely. GUARDIUM_SECRET_KEY decrypts every stored integration password; if it is lost, those passwords cannot be decrypted. A configuration backup with its backup passphrase also carries this key.

.env: values you may change

Variable Default Meaning
COMPOSE_PROJECT_NAME qubesight Compose project name. Change only before the first installation.
COMPOSE_PROFILES restore,updater (+ minio, assistant as chosen) Optional services; prefer the install.sh --with-*/--no-* options
TZ Europe/Istanbul (template value) Time zone of the services. install.sh changes it only with --set TZ=…; the web installer writes your choice.
ENVIRONMENT empty production: session cookies always Secure, weak administrator password and start without PostgreSQL refused. Requires HTTPS (the default) or a TLS terminator that sends X-Forwarded-Proto: https.
QUBESIGHT_PUBLIC_HOST detected IPv4 Address log shippers use; Kafka advertises it. Also used in links in e-mails.
BIND_PUBLIC 0.0.0.0 Listen address of the web interface, syslog, Kafka and SNMP ports
BIND_ADMIN 127.0.0.1 Listen address of the API and the ClickHouse, MinIO and Redpanda management ports
UI_PORT 3000 Web interface (HTTPS)
API_PORT 8085 API (HTTPS, local by default)
SYSLOG_PORT 5140 Syslog over TCP
KAFKA_PORT 9092 Kafka
SNMP_TRAP_PORT 162 SNMP traps (UDP)
CLICKHOUSE_HTTP_PORT, CLICKHOUSE_NATIVE_PORT 8123, 9002 ClickHouse (local)
MINIO_S3_PORT, MINIO_CONSOLE_PORT 9000, 9001 Local MinIO
PANDAPROXY_PORT, REDPANDA_ADMIN_PORT 8082, 9644 Redpanda (local)
GATEWAY_TLS on HTTPS on the gateway; off only behind your own TLS terminator
GATEWAY_TLS_EXTRA_HOSTS empty Extra names or IPs (comma-separated) for the self-signed certificate. GATEWAY_TLS_HOSTS is maintained by the installer.
GATEWAY_TRUSTED_PROXIES empty Addresses or CIDRs of a reverse proxy or load balancer whose X-Forwarded-For and -Proto headers are trusted, and whose plain HTTP is not redirected
GATEWAY_MAX_CONNS 1024 Maximum concurrent connections at the gateway
GATEWAY_BODY_IDLE_SECONDS 60 A request whose body makes no progress for this long is cut
PATCH_MAX_UPLOAD_BYTES 8589934592 Largest patch package accepted (bytes)
CLICKHOUSE_COLD_DIR ./clickhouse_cold Host directory of ClickHouse's own local cold tier (can point to a larger disk)
CLICKHOUSE_STORAGE_CONFIG local-disk configuration Switched by --with-minio / --no-minio
MINIO_IMAGE, MINIO_MC_IMAGE qubesight/minio:RELEASE.2025-10-15T17-29-55Z-qs1 MinIO image, if you supply your own build
BOOTSTRAP_ACCESS_MANAGER_USER accessmgr Name of the access manager account created on the first start; none disables it
BOOTSTRAP_ADMIN_USER admin First administrator (first start only)
BOOTSTRAP_ADMIN_MUST_CHANGE empty true: the first administrator must change the password at first sign-in (first start only)

Resource limits

Variable Default Meaning
CLICKHOUSE_CPUS cores minus 2, at least 2 (set by the installer on a new .env; a larger sizing value is kept; 2.0 if the core count is unknown) ClickHouse CPU limit
CLICKHOUSE_MEMORY without an expected rate: a quarter of the memory Docker sees, 4G to 16G; with --expected-tps: the sizing recommendation (set by the installer on a new .env) ClickHouse memory limit
CONTROL_PLANE_CPUS, CONTROL_PLANE_MEMORY 1.0, 1536M Control plane
WORKER_CPUS, WORKER_MEMORY 1.0, 1G Worker
VECTOR_CPUS, VECTOR_MEMORY 0.5, 512M Vector (syslog parsing); parsing throughput does not grow beyond about 2 cores
VECTOR_BUFFER_BYTES 2147483648 Upper bound of Vector's disk buffer toward Kafka (at least 268435488)
REDPANDA_SMP, REDPANDA_MEMORY 1, 1G Redpanda cores and memory (at least 1G per core)
RESTORE_MYSQL_MEMORY 2G Guardium archive restore MySQL
ASSISTANT_CPUS, ASSISTANT_MEMORY, ASSISTANT_THREADS 4.0, 6G, 4 Embedded language model service
ASSISTANT_IDLE_SECONDS 900 The model is unloaded from memory after this many idle seconds
ASSISTANT_BIND, ASSISTANT_PORT 127.0.0.1, 18090 Where the model service listens on the host. Set ASSISTANT_BIND to the LAN address only if other cluster nodes should use this server's model.
INGEST_FLUSH_INTERVAL 30s Longest time events wait before being written to ClickHouse at low rates
INGEST_BATCH_MAX_BYTES 33554432 Batch size bound for events with large SQL
CLICKHOUSE_COMPRESSION lz4 Worker to ClickHouse compression: lz4, zstd (remote or slow network), none
EXPECTED_TPS, EXPECTED_INGEST_PATH, EXPECTED_SQL_PROFILE undefined, syslog, simple Capacity target shown in Platform → System and Cluster → Capacity

The installer's sizing recommendation writes WORKER_*, CLICKHOUSE_* and VECTOR_*. CPU limits higher than the cores Docker sees are refused by Docker.

.env: read only on the first start

These are installer answers. The control plane reads them only while the corresponding setting has never been saved; afterwards the value in PostgreSQL (changed in the interface) is authoritative, and editing .env has no effect.

Variable Set by Change later in
QUBESIGHT_COLD_MODE, QUBESIGHT_HOT_DAYS, QUBESIGHT_COLD_YEARS, QUBESIGHT_COLD_S3_ENDPOINT, QUBESIGHT_COLD_S3_SECURE, QUBESIGHT_COLD_S3_BUCKET, QUBESIGHT_COLD_S3_ACCESS_KEY, QUBESIGHT_COLD_S3_SECRET_KEY, QUBESIGHT_COLD_S3_REGION, QUBESIGHT_COLD_S3_AUTH, QUBESIGHT_COLD_LOCK_MODE --cold-*, --hot-days Platform → Data and Backup → Retention
QUBESIGHT_HOT_MODE, QUBESIGHT_HOT_DISK_PERCENT --hot-mode, --hot-disk-percent Platform → Data and Backup → Retention (see the note below)
QUBESIGHT_BACKUP_METHOD, QUBESIGHT_BACKUP_LOCK_DAYS --backup-location, --backup-lock-days Platform → Data and Backup → Backup settings
QUBESIGHT_INGEST_ALLOWLIST --ingest-allow Data Sources → Access allowlist (Syslog/SNMP)
BOOTSTRAP_ADMIN_*, BOOTSTRAP_ACCESS_MANAGER_USER installer Account settings

Hot-data default

The installer's hot-data choice (--hot-mode, --hot-days, --hot-disk-percent, or the web installer's hot-data step) is stored by the control plane on its first start, while no retention setting has been saved yet; after that you change it in Platform → Data and Backup → Retention. Without an installer value the control plane uses days mode, 365 days. An existing installation keeps its saved setting when it is upgraded; see Upgrading from 2.0.106.

.env: maintained by the installer or the update service

Do not edit these by hand.

Variable Meaning
QUBESIGHT_VERSION Installed version (image tag)
QUBESIGHT_RELEASE, CONTROL_PLANE_IMAGE, WORKER_IMAGE, UI_IMAGE, SNMP_TRAP_IMAGE, GATEWAY_IMAGE, UPDATER_IMAGE Written by the update service after a patch; without them docker compose up -d would return to older images
QUBESIGHT_HOST_DIR, QUBESIGHT_SECRETS_DIR Absolute paths of the installation; re-run install.sh after moving the directory
UPDATER_URL Update service address (empty when the update service is off)
TOPOLOGY_OPTIONAL_NODES Components shown as idle rather than failed on the topology view
QUBESIGHT_INGEST_VIP, QUBESIGHT_INGEST_VIP_PREFIX, QUBESIGHT_INGEST_IFACE Single-server virtual IP. Change with ./install.sh --vip or --no-vip; in a cluster, in Platform → System and Cluster → Cluster.
GATEWAY_TLS_HOSTS Names covered by the self-signed certificate. The installer merges the server address, GATEWAY_TLS_EXTRA_HOSTS, the host name, the detected IPv4 address and the virtual IP; localhost, 127.0.0.1 and ::1 are always included.
QUBESIGHT_VAULT_* Vault server details (no secrets)
QUBESIGHT_MARKETPLACE, QUBESIGHT_AWS_*, QUBESIGHT_INGEST_PROVIDER, QUBESIGHT_INGEST_ADDRESS, QUBESIGHT_INGEST_KAFKA_PORTS, BOOTSTRAP_ADMIN_CREDENTIALS_IN Cloud marketplace installations
KAFKA_SASL_ENABLED Set to true only after Kafka users and ACLs exist
CLICKHOUSE_S3_AUTH_CONFIG ClickHouse's S3 credential configuration; switched to the instance-role file by --cold-auth iam
SIZING_DECIDED, UPDATER_PROFILE_DECIDED, QUBESIGHT_RESTORED_AT, QUBESIGHT_VAULT_DONE, QUBESIGHT_NODE_LAYOUT Installer state markers

Generated secrets

install.sh generates these once and never overwrites them. Do not change them on a running installation; several are needed to decrypt stored data.

Variable or file Purpose
GUARDIUM_SECRET_KEY Encrypts stored integration passwords and other secrets in PostgreSQL. Back it up.
QUBESIGHT_MFA_KEY Not generated by the installer. Optional separate key for sealing MFA secrets (at least 16 characters). If not set, MFA secrets are sealed with a key derived from GUARDIUM_SECRET_KEY. Do not change its source after users enrolled MFA.
BACKUP_ENCRYPTION_KEY Older backup encryption key (recovery bundle procedure)
BOOTSTRAP_ADMIN_PASSWORD / BOOTSTRAP_ADMIN_PASSWORD_HASH_B64 First administrator password (plain, or bcrypt hash from a setup wizard); only the first value, not updated when the password is changed
CLICKHOUSE_PASSWORD ClickHouse password
MINIO_ROOT_USER, MINIO_ROOT_PASSWORD Local MinIO root credentials
INTERNAL_API_TOKEN, UPDATER_API_TOKEN, GATEWAY_ADMIN_TOKEN, GATEWAY_TLS_TOKEN Separate tokens between services, so that each can do only its own job
RESTORE_MYSQL_ROOT_PASSWORD Guardium archive restore MySQL
KAFKA_ADMIN_PASSWORD, KAFKA_WORKER_PASSWORD, KAFKA_INGEST_PASSWORD, KAFKA_FILEBEAT_PASSWORD Kafka SASL/SCRAM users qs-admin, qs-worker, qs-ingest, qs-filebeat. The Filebeat password is shown to administrators in Data Sources → Stream Sources → Filebeat.
secrets/metadata_db_password, secrets/metadata_db_app_password PostgreSQL administrator and application role passwords
secrets/kafka_rpk.env Kafka admin credentials for the tools inside the Redpanda container (only with Kafka authentication)
secrets/tls/server.crt, secrets/tls/server.key HTTPS seed: imported by the gateway on its first start only; can be deleted afterwards

Troubleshooting variables

Set these only when advised by support or a troubleshooting page. Except GUARDIUM_TLS_INSECURE_SKIP_VERIFY, docker-compose.yml does not pass them to the control plane, so a line in .env alone has no effect: add them to the control-plane service's environment in a docker-compose.override.yml.

Variable Effect
QUBESIGHT_DNS_FANOUT=off Turns off querying all name servers in parallel (used to tolerate split DNS on Podman CNI hosts)
QUBESIGHT_CH_FETCH_LISTEN, QUBESIGHT_CH_FETCH_HOST Listen address and host name of the temporary endpoint ClickHouse reads large SFTP log copies from during a restore, for unusual networks
BACKUP_LEGACY_SECRETS Comma-separated previous GUARDIUM_SECRET_KEY values, to open backups taken before a key rotation
GUARDIUM_TLS_INSECURE_SKIP_VERIFY Legacy; moved to a setting in PostgreSQL and migrated once on start. Use the Guardium certificate verification setting instead.

Settings stored in PostgreSQL

Everything else is changed in the interface. The most important places:

Setting Screen
Users, roles, password policy, MFA, LDAP, SSO Assurance Center → Identity & Access; see Users, roles and permissions
Licence Platform → Settings → License
Web certificate Platform → Settings → Web certificate (HTTPS)
Mail server, notification channels, notification language and templates Platform → Settings → Notifications
Embedded model and model providers Platform → Settings → Assistant
Hot and cold retention, locked store Platform → Data and Backup → Retention
Backup location, passphrase, schedule Platform → Data and Backup → Backup settings
Ingest allowlist Data Sources → Access allowlist (Syslog/SNMP)
Cluster, virtual IP, outbound source IP Platform → System and Cluster → Cluster
Capacity target Platform → System and Cluster → Capacity
Data sources and integrations Data Sources
Parsing, storage rules, noise management Platform → Pipeline
Installation settings (address, ports, components, virtual IP, HTTPS, version) Written by install.sh after every run; not editable in the interface. Used as defaults by a restore.

See Settings and Data and Backup.