# OpenCTI configuration

> Every OpenCTI configuration key of this version, with its environment variable, default and description, generated from the OpenCTI source code.

- URL: https://filigran.io/docs/reference/opencti/configuration/
- Products: OpenCTI 7.261119.0
- For: developers, platform engineers, administrators
- Type: Reference
- Generated from the OpenCTI 7.261119.0 source code

**Diagram: The platform takes each key from its environment variable, else from production.json, else from default.json, else from the code**

- You set: Environment variable (APP__BASE_URL, in Docker), config/production.json (Without containers, or the file CONF names)
- The release ships: config/default.json (Defaults of the release), Code default (Keys not in default.json)
- OpenCTI: Platform (Reads app:base_url)

Connections:

- Environment variable → Platform: first
- config/production.json → Platform: then
- config/default.json → Platform: then
- Code default → Platform: last

Every key OpenCTI reads in this version: the keys of `config/default.json`, and the keys the code reads without declaring them there. Each has an environment variable, the way to set it in Docker: its name is the key in upper case, with `__` between the levels, so `app:base_url` is `APP__BASE_URL`. In the XTM stack, set these variables in [`docker-compose.override.yml`](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml); in an installation without containers, set the key in `config/production.json`.

A list goes in the variable as JSON: `APP__ADMIN__EXTERNALLY_MANAGED_ROLES=["Administrator"]`. A key marked **Not in default.json** works the same way; its default is the one the code applies.

433 keys in OpenCTI 7.261119.0. Generated from OpenCTI-Platform/opencti@7df98f9.

## Basic parameters {#basic-parameters}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:admin:email` | `APP__ADMIN__EMAIL` | `admin@opencti.io` | string | Default login email of the admin user. |
| `app:admin:externally_managed` | `APP__ADMIN__EXTERNALLY_MANAGED` | `false` | boolean | Completely remove the default admin user from the platform and never create it again. |
| `app:admin:password` | `APP__ADMIN__PASSWORD` | `ChangeMe` | string | Default password of the admin user. |
| `app:admin:token` | `APP__ADMIN__TOKEN` | `ChangeMe` | string | Default token (must be a valid UUIDv4) |
| `app:auth_payload_body_size` | `APP__AUTH_PAYLOAD_BODY_SIZE` |  | string | Maximum payload body size for SSO/SAML. Controls the Express body-parser `limit` setting (defaults to 100kb). See https://expressjs.com/en/resources/middleware/body-parser.html. Read by the code, not in default.json. |
| `app:base_path` | `APP__BASE_PATH` |  | string | Specific URI (ie. /opencti) |
| `app:base_url` | `APP__BASE_URL` | `http://localhost:4000/` | string | Full URL of the platform (should include the `base_path` if any) |
| `app:enterprise_edition_license` | `APP__ENTERPRISE_EDITION_LICENSE` |  | string | Enterprise Edition license certificate, in PEM format. When set, it replaces the license entered in the interface. |
| `app:health_access_key` | `APP__HEALTH_ACCESS_KEY` | `ChangeMe` | string | Access key for the `/health` endpoint. Must be changed - will not respond to default value. Access with `/health?health_access_key=ChangeMe`. |
| `app:health_monitoring:dependency_check_interval` | `APP__HEALTH_MONITORING__DEPENDENCY_CHECK_INTERVAL` | `30000` | number | Interval in milliseconds between two dependency checks (ElasticSearch/OpenSearch, S3/MinIO, RabbitMQ, Redis). The `/health` endpoint answers from the state collected by these checks. New after 7.260811.0-lts.1. |
| `app:health_monitoring:usage_metrics_interval` | `APP__HEALTH_MONITORING__USAGE_METRICS_INTERVAL` | `300000` | number | Interval in milliseconds between two collections of storage and ingestion usage metrics, collected by the `platform_usage_metrics_manager` (disabled by default, see `platform_usage_metrics_manager:enabled`) and shared across the cluster through Redis. Also the polling interval every node uses to adopt that shared value. Set to `0` to disable the collection. New after 7.260811.0-lts.1. |
| `app:keep_alive_timeout` | `APP__KEEP_ALIVE_TIMEOUT` | `65000` | number | Keep-alive timeout of idle HTTP(S) connections, in ms. Must be greater than the idle timeout of your load balancer / reverse proxy (AWS ALB defaults to 60s), otherwise the platform closes sockets the proxy still reuses and clients get intermittent 502. `0` disables the timeout. New after 7.260811.0-lts.1. |
| `app:liveness_port` | `APP__LIVENESS_PORT` |  | string | Port for the liveness probe HTTP server. Starts immediately on process launch, before platform initialization. Read by the code, not in default.json. |
| `app:max_upload_file_size` | `APP__MAX_UPLOAD_FILE_SIZE` |  | string | Maximum size of a file uploaded to the platform (files, imports, artifacts...). Accepts a byte count or a unit suffix (`kb`, `mb`, `gb`). A larger file is rejected. Lower it if your platform does not ingest large artifacts (malware samples). Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `app:max_upload_files` | `APP__MAX_UPLOAD_FILES` |  | string | Maximum number of files uploaded in a single request. Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `app:port` | `APP__PORT` | `4000` | number | Listen port of the application. |
| `app:request_timeout` | `APP__REQUEST_TIMEOUT` | `1200000` | number | Request timeout, in ms (default 20 minutes) |
| `app:session_cookie` | `APP__SESSION_COOKIE` | `false` | boolean | Use memory/session cookie instead of persistent one. |
| `app:session_idle_timeout` | `APP__SESSION_IDLE_TIMEOUT` | `0` | number | Idle timeout (locking the screen), in ms (default 0 minute - disabled) |
| `app:session_manager` | `APP__SESSION_MANAGER` | `shared` | string | Where user sessions are stored: `shared` stores them in Redis, shared by all the nodes; any other value keeps them in the memory of each node, so a user stays connected only to the node that opened the session. |
| `app:session_timeout` | `APP__SESSION_TIMEOUT` | `1200000` | number | Session timeout, in ms (default 20 minutes) |

## Network and security {#network-and-security}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:allow_unsecure_http_resources` | `APP__ALLOW_UNSECURE_HTTP_RESOURCES` | `!HTTP_SECURE_BY_DEFAULT` | boolean | When set to false, prevents the application from loading insecure (HTTP) resources (images, manifests, connections, objects) and sends `upgrade-insecure-requests`. Unset, `true`, and from 7.261119 the opposite of `app:http:secure_by_default`, which refuses these resources without sending `upgrade-insecure-requests`. Read by the code, not in default.json. |
| `app:crypto:master_seed` | `APP__CRYPTO__MASTER_SEED` |  | string | Former name of `app:encryption_key`, read only when `app:encryption_key` is not set. Use `app:encryption_key` instead. Read by the code, not in default.json. |
| `app:encryption_key` | `APP__ENCRYPTION_KEY` |  | string | Encryption key used by platform cryptographic usage. Must be securely generated with `openssl rand -base64 32`. Read by the code, not in default.json. |
| `app:forgot_password:otp_ttl_second` | `APP__FORGOT_PASSWORD__OTP_TTL_SECOND` | `600` | number | Validity, in seconds, of the one-time code sent by email to reset a forgotten password. |
| `app:graphql:armor_protection:block_field_suggestion` | `APP__GRAPHQL__ARMOR_PROTECTION__BLOCK_FIELD_SUGGESTION` | `true` | boolean | GraphQL armor protection, block the field suggestion. |
| `app:graphql:armor_protection:cost_limit` | `APP__GRAPHQL__ARMOR_PROTECTION__COST_LIMIT` | `50000000` | number | GraphQL armor protection cost limit. |
| `app:graphql:armor_protection:disabled` | `APP__GRAPHQL__ARMOR_PROTECTION__DISABLED` | `!GRAPHQL_SECURE_BY_DEFAULT` | boolean | Disable GraphQL armor protection (limits on depth, directives, tokens, cost and field suggestions). Unset, it is `true` (armor off), and from 7.261109 the opposite of `app:graphql:secure_by_default`. Read by the code, not in default.json. |
| `app:graphql:armor_protection:max_depth` | `APP__GRAPHQL__ARMOR_PROTECTION__MAX_DEPTH` | `20` | number | GraphQL armor protection max depth in queries. |
| `app:graphql:armor_protection:max_directives` | `APP__GRAPHQL__ARMOR_PROTECTION__MAX_DIRECTIVES` | `20` | number | GraphQL armor protection max directives in queries. |
| `app:graphql:armor_protection:max_tokens` | `APP__GRAPHQL__ARMOR_PROTECTION__MAX_TOKENS` | `100000` | number | GraphQL armor protection max tokens. |
| `app:graphql:batching_protection:mutation_default` | `APP__GRAPHQL__BATCHING_PROTECTION__MUTATION_DEFAULT` | `1` | number | Maximum number of times a GraphQL request can call the same mutation through aliases. Protects against batching attacks; the login mutation is always limited to 1. |
| `app:graphql:batching_protection:query_default` | `APP__GRAPHQL__BATCHING_PROTECTION__QUERY_DEFAULT` | `2` | number | Maximum number of times a GraphQL request can call the same query through aliases. Protects against batching attacks. |
| `app:graphql:batching_protection:query_subtypes` | `APP__GRAPHQL__BATCHING_PROTECTION__QUERY_SUBTYPES` | `4` | number | Maximum number of times a GraphQL request can call the `subTypes` query through aliases, higher than the default because the interface asks for it several times. |
| `app:graphql:secure_by_default` | `APP__GRAPHQL__SECURE_BY_DEFAULT` | `false` | boolean | Default of the GraphQL protections that do not set their own option. When `true`, the GraphQL armor protection is on (`app:graphql:armor_protection:disabled` defaults to `false`), the playground is off (`app:graphql:playground:enabled` defaults to `false`, which also refuses introspection), and the WebSocket endpoint accepts only subscriptions. `false` by default for now, and the platform logs a warning at start; a later version turns it on by default. An explicit value of the other keys always wins. New after 7.260811.0-lts.1. |
| `app:http:max_redirects` | `APP__HTTP__MAX_REDIRECTS` |  | string | Number of redirects the platform's outgoing HTTP requests follow (feeds, synchronizers, notifiers), `0` to follow none. A request that needs more fails with `Maximum number of redirects exceeded`. Unset, `21`, or `5` with `app:http:secure_by_default`. A value that is not a whole number of zero or more falls back to the default, with a warning at start. Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `app:http:secure_by_default` | `APP__HTTP__SECURE_BY_DEFAULT` | `false` | boolean | Default of the HTTP protections that do not set their own option. When `true`, the rate limit is 30,000 requests per 60 seconds (`app:rate_protection:max_requests`, `app:rate_protection:time_window`), a JSON request body is limited to `10mb` (`app:max_payload_body_size`), the pages of the platform refuse `http://` resources (`app:allow_unsecure_http_resources`), and outgoing requests follow 5 redirects (`app:http:max_redirects`). It does not send `upgrade-insecure-requests`: only an explicit `app:allow_unsecure_http_resources` set to `false` does. `false` by default for now, and the platform logs a warning at start; a later version turns it on by default. An explicit value of the other keys always wins. New after 7.260811.0-lts.1. |
| `app:https_cert:ca` | `APP__HTTPS_CERT__CA` | `[]` | list | Certificate authority paths or content, only if the client uses a self-signed certificate. |
| `app:https_cert:cookie_samesite` | `APP__HTTPS_CERT__COOKIE_SAMESITE` | `lax` | string | SameSite attribute of the session cookie: `lax`, `strict` or `none`. Browsers accept `none` only with `app:https_cert:cookie_secure` set to `true`. Read by the code, not in default.json. |
| `app:https_cert:cookie_secure` | `APP__HTTPS_CERT__COOKIE_SECURE` | `false` | boolean | Set the flag "secure" for session cookies. |
| `app:https_cert:crt` | `APP__HTTPS_CERT__CRT` |  | string | Certificate crt path or content. |
| `app:https_cert:key` | `APP__HTTPS_CERT__KEY` |  | string | Certificate key path or content. |
| `app:https_cert:passphrase` | `APP__HTTPS_CERT__PASSPHRASE` |  | string | Passphrase of the private key given in `app:https_cert:key`, when that key is encrypted. Read by the code, not in default.json. |
| `app:https_cert:reject_unauthorized` | `APP__HTTPS_CERT__REJECT_UNAUTHORIZED` | `true` | boolean | If not false, the server certificate is verified against the list of supplied CAs. |
| `app:ip_whitelist_enabled` | `APP__IP_WHITELIST_ENABLED` | `true` | boolean | Set it to `false` to bypass the IP allow list defined in the platform settings, for example to recover access after an administrator locked themselves out. Read by the code, not in default.json. |
| `app:max_payload_body_size` | `APP__MAX_PAYLOAD_BODY_SIZE` |  | string | Maximum size of a JSON request body accepted by the API, the TAXII server and the other HTTP routes, such as `50mb`. Raise it if large requests are rejected. Unset, `50mb`, and from 7.261119 `10mb` with `app:http:secure_by_default`. From 7.261119, the TAXII API root advertises this limit, in bytes, as its `max_content_length` (before, a fixed 100 MB). Read by the code, not in default.json. |
| `app:password_change:max_attempts` | `APP__PASSWORD_CHANGE__MAX_ATTEMPTS` | `5` | number | Number of password changes one submitter may attempt on one local account within `app:password_change:window_seconds` (default 5). Counted only while **Number of recent passwords that cannot be reused** is above 0, for changes made from the profile, by an administrator, at a forced change and through a forgotten password; a success counts too. Further attempts get "Too many password change attempts. Please try again in a few minutes." A positive integer; any other value falls back to the default. New after 7.260811.0-lts.1. |
| `app:password_change:window_seconds` | `APP__PASSWORD_CHANGE__WINDOW_SECONDS` | `900` | number | Length of the password change limit window, in seconds (default 900, 15 minutes). The window starts with the first attempt and a successful change does not reset it. A positive integer; any other value falls back to the default. New after 7.260811.0-lts.1. |
| `app:public_dashboard_authorized_domains` | `APP__PUBLIC_DASHBOARD_AUTHORIZED_DOMAINS` |  | string | List of domain name that can display public dashboard in an embedded iframe. Empty string means none, '*' means all. |
| `app:rate_protection:ip_skip_list` | `APP__RATE_PROTECTION__IP_SKIP_LIST` |  | list | JSON array of IP strings allowed to bypass the rate protection. Read by the code, not in default.json. |
| `app:rate_protection:ip_skip_ranges` | `APP__RATE_PROTECTION__IP_SKIP_RANGES` |  | list | JSON array of CIDR ranges (e.g. `["192.168.0.0/16", "10.0.0.0/8"]`) allowed to bypass the rate protection. Read by the code, not in default.json. |
| `app:rate_protection:max_requests` | `APP__RATE_PROTECTION__MAX_REQUESTS` |  | string | Maximum of request allow per IP and per window duration, 0 will deny all. Unset, `10000`, and from 7.261119 `30000` with `app:http:secure_by_default`. Read by the code, not in default.json. |
| `app:rate_protection:time_window` | `APP__RATE_PROTECTION__TIME_WINDOW` |  | string | Time window for rate protection in seconds. Unset, `1`, and from 7.261119 `60` with `app:http:secure_by_default`. Read by the code, not in default.json. |
| `app:rate_protection:user_agent_skip_prefixes` | `APP__RATE_PROTECTION__USER_AGENT_SKIP_PREFIXES` |  | list | JSON array of User-Agent prefixes (e.g. `["Mozilla"]`). Requests whose User-Agent starts with any prefix are not rate limited (case-insensitive) Read by the code, not in default.json. |
| `app:session_presence:grace_period` | `APP__SESSION_PRESENCE__GRACE_PERIOD` | `30000` | number | Time, in milliseconds, before a session is logged out once its last browser tab is closed (default 30000), when the platform logs out such sessions. New after 7.260811.0-lts.1. |
| `aws:proxy_enabled` | `AWS__PROXY_ENABLED` | `false` | boolean | When enabled, routes all AWS SDK traffic (STS and S3) through the HTTP/HTTPS proxy above. |
| `http_proxy` | `HTTP_PROXY` |  | string | Proxy URL for the outgoing HTTP requests of the platform (feeds, connectors, authentication providers...). With `aws:proxy_enabled`, also used for AWS traffic. |
| `https_proxy` | `HTTPS_PROXY` |  | string | URL of the proxy for outgoing HTTPS requests of the platform, except hosts listed in `no_proxy`. Also used by the AWS SDK when `aws:proxy_enabled` is on, and passed to managed connectors as `HTTPS_PROXY`. |
| `https_proxy_ca` | `HTTPS_PROXY_CA` | `[]` | list | List of paths of CA certificates trusted for the TLS connection to the HTTPS proxy. Set it when the proxy uses a certificate from a private CA. |
| `https_proxy_reject_unauthorized` | `HTTPS_PROXY_REJECT_UNAUTHORIZED` | `TLS_REJECT_UNAUTHORIZED` | boolean | When `true`, the platform refuses an HTTPS proxy whose TLS certificate it cannot verify (see `https_proxy_ca`). Unset, it is `false`, and from 7.261109 it follows `tls:reject_unauthorized`. Also passed to managed connectors as `HTTPS_PROXY_REJECT_UNAUTHORIZED`. Read by the code, not in default.json. |
| `no_proxy` | `NO_PROXY` |  | string | Comma-separated list of hosts reached without the proxy. Each entry is a hostname, a pattern with `*`, or an IP range in CIDR notation. |
| `providers:local:strategy` | `PROVIDERS__LOCAL__STRATEGY` | `LocalStrategy` | string | Strategy of the built-in `local` provider (login with email and password); its value is never read. `providers:local:config:disabled` set to `true` turns local login off once, when the platform first records its own sign-in settings (a new platform, or the first start of a version that keeps them in the platform); after that, local login is switched in the platform's settings, and this key changes nothing. |
| `secrets` | `SECRETS` |  | string | Named secrets that the authentication providers configured in the interface (OIDC, SAML, LDAP) reference instead of storing a value. Each secret is set as `secrets:<name>:value` (environment variable `SECRETS__<NAME>__VALUE`) or fetched from a remote credentials provider under `secrets:<name>:credentials_provider`. Read by the code, not in default.json. |
| `tls:reject_unauthorized` | `TLS__REJECT_UNAUTHORIZED` | `false` | boolean | Default certificate verification of the platform's outgoing TLS connections that do not set their own option: the HTTPS proxy (`https_proxy_reject_unauthorized`), RabbitMQ (`rabbitmq:use_ssl_reject_unauthorized`, `rabbitmq:management_ssl_reject_unauthorized`), SMTP (`smtp:reject_unauthorized`), the remote credentials provider, connector and synchronization calls without an explicit SSL verification setting, and the platform's HTTP client. When `true`, a server whose certificate cannot be verified against the trusted CAs is refused. `false` by default for now, and the platform logs a warning at start; a later version turns it on by default. Set it to `true` once your internal CAs are trusted (`NODE_EXTRA_CA_CERTS` or the per-service CA keys). The search engine keeps its own `elasticsearch:ssl:reject_unauthorized`, `true` by default. New after 7.260811.0-lts.1. |
| `trust_proxy_addresses` | `TRUST_PROXY_ADDRESSES` | `[]` | list | Additional addresses or CIDR ranges of reverse proxies the platform trusts, on top of loopback, link-local and private addresses. Requests from a trusted proxy get their client IP from the `X-Forwarded-For` header. |

## Errors {#errors}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:app_logs:control:max_array_size` | `APP__APP_LOGS__CONTROL__MAX_ARRAY_SIZE` | `50` | number | Maximum number of elements kept from an array in the metadata of an application log entry; extra elements are dropped. Limits the size of log lines. Read by the code, not in default.json. |
| `app:app_logs:control:max_depth_keys` | `APP__APP_LOGS__CONTROL__MAX_DEPTH_KEYS` | `100` | number | Maximum number of keys written in the metadata of one application log entry; keys beyond this count are dropped. Read by the code, not in default.json. |
| `app:app_logs:control:max_depth_size` | `APP__APP_LOGS__CONTROL__MAX_DEPTH_SIZE` | `10` | number | Maximum nesting depth of the metadata of an application log entry; deeper objects are dropped. Read by the code, not in default.json. |
| `app:app_logs:control:max_string_size` | `APP__APP_LOGS__CONTROL__MAX_STRING_SIZE` | `5000` | number | Maximum length, in characters, of a string in the metadata of an application log entry; longer strings are cut and end with `...`. Read by the code, not in default.json. |
| `app:app_logs:extended_error_message` | `APP__APP_LOGS__EXTENDED_ERROR_MESSAGE` | `false` | boolean | Adds the input data and document bodies to error logs, and the GraphQL query and variables to API call logs. Use it to debug; logs then can contain sensitive data. |
| `app:app_logs:logs_console` | `APP__APP_LOGS__LOGS_CONSOLE` | `true` | boolean | If application logs is logged to console (useful for containers) |
| `app:app_logs:logs_directory` | `APP__APP_LOGS__LOGS_DIRECTORY` | `./logs` | string | File logs directory. |
| `app:app_logs:logs_files` | `APP__APP_LOGS__LOGS_FILES` | `true` | boolean | If application logs is logged into files. |
| `app:app_logs:logs_level` | `APP__APP_LOGS__LOGS_LEVEL` | `info` | string | The application log level. |
| `app:app_logs:logs_max_files` | `APP__APP_LOGS__LOGS_MAX_FILES` | `7` | number | Maximum number of daily files in logs. |
| `app:app_logs:logs_redacted_inputs` | `APP__APP_LOGS__LOGS_REDACTED_INPUTS` | `["password","secret","token","api_tokens","authentication_value","enterprise_license"]` | list | List of GraphQL input fields to redact from logs (e.g. `password`) |

## Audit {#audit}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:audit_logs:logs_console` | `APP__AUDIT_LOGS__LOGS_CONSOLE` | `true` | boolean | If audit logs is logged to console (useful for containers) |
| `app:audit_logs:logs_directory` | `APP__AUDIT_LOGS__LOGS_DIRECTORY` | `./logs` | string | Audit logs directory. |
| `app:audit_logs:logs_files` | `APP__AUDIT_LOGS__LOGS_FILES` | `true` | boolean | If audit logs is logged into files. |
| `app:audit_logs:logs_in_transports` | `APP__AUDIT_LOGS__LOGS_IN_TRANSPORTS` | `["administration"]` | list | Activity access types written to the audit log transports (file and console): `administration`, `extended`, or both. All activities stay stored in the platform history whatever this list holds (Enterprise Edition). |
| `app:audit_logs:logs_max_files` | `APP__AUDIT_LOGS__LOGS_MAX_FILES` | `7` | number | Maximum number of daily files in logs. |
| `app:audit_logs:trace_request_headers` | `APP__AUDIT_LOGS__TRACE_REQUEST_HEADERS` | `["user-agent","x-forwarded-for"]` | list | List of HTTP headers to include in audit logs. |

## Telemetry {#telemetry}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:telemetry:metrics:enabled` | `APP__TELEMETRY__METRICS__ENABLED` | `false` | boolean | Enable the metrics collection. |
| `app:telemetry:metrics:exporter_otlp` | `APP__TELEMETRY__METRICS__EXPORTER_OTLP` |  | string | Port to expose the OTLP endpoint. |
| `app:telemetry:metrics:exporter_prometheus` | `APP__TELEMETRY__METRICS__EXPORTER_PROMETHEUS` | `14269` | number | Port to expose the Prometheus endpoint. |
| `app:telemetry:metrics:exporter_prometheus_host` | `APP__TELEMETRY__METRICS__EXPORTER_PROMETHEUS_HOST` | `0.0.0.0` | string | Address the Prometheus metrics endpoint listens on, with the port of `app:telemetry:metrics:exporter_prometheus`. The default `0.0.0.0` listens on every IPv4 interface; set `127.0.0.1` to keep the endpoint local to the host. An IPv6 address such as `::` does not work. New after 7.260811.0-lts.1. |
| `app:telemetry:pyroscope:enabled` | `APP__TELEMETRY__PYROSCOPE__ENABLED` | `false` | boolean | Sends continuous profiling data of the platform to a Pyroscope server. |
| `app:telemetry:pyroscope:exporter` | `APP__TELEMETRY__PYROSCOPE__EXPORTER` |  | string | URL of the Pyroscope server that receives the profiling data when `app:telemetry:pyroscope:enabled` is `true`. |
| `app:telemetry:pyroscope:identifier` | `APP__TELEMETRY__PYROSCOPE__IDENTIFIER` | `OpenCTI` | string | Application name under which the profiling data of this platform appears in Pyroscope. |
| `app:telemetry:tracing:enabled` | `APP__TELEMETRY__TRACING__ENABLED` | `false` | boolean | Enables OpenTelemetry tracing of the platform operations; traces are sent to the exporters set in `app:telemetry:tracing:exporter_otlp` and `app:telemetry:tracing:exporter_zipkin`. |
| `app:telemetry:tracing:exporter_otlp` | `APP__TELEMETRY__TRACING__EXPORTER_OTLP` |  | string | URL of the OTLP (HTTP) endpoint that receives the traces when tracing is enabled. |
| `app:telemetry:tracing:exporter_zipkin` | `APP__TELEMETRY__TRACING__EXPORTER_ZIPKIN` |  | string | URL of the Zipkin endpoint that receives the traces when tracing is enabled. |

## Maps & references {#maps-references}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:map_bundled_file_path` | `APP__MAP_BUNDLED_FILE_PATH` | `./static/maps/world.pmtiles` | string | Path to the bundled PMTiles file on disk. |
| `app:map_countries_bundled_file_path` | `APP__MAP_COUNTRIES_BUNDLED_FILE_PATH` | `./static/maps/countries.json` | string | Path to the bundled country boundaries GeoJSON file on disk. New after 7.260811.0-lts.1. |
| `app:reference_attachment` | `APP__REFERENCE_ATTACHMENT` | `false` | boolean | External reference mandatory attachment. |

## Functional customization {#functional-customization}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `aliases_identifier_rules` | `ALIASES_IDENTIFIER_RULES` |  | string | Rules restricting which aliases count as identifiers for deduplication: an object keyed by entity type in lower case (`intrusion-set`, `malware`...), each with a list of regular expressions. Only aliases matching one expression identify the entity; without a rule for a type, every alias does. Read by the code, not in default.json. |
| `app:account_statuses_default` | `APP__ACCOUNT_STATUSES_DEFAULT` | `Active` | string | Account status given to new users. Must be `Active`, `Expired` or a key of `app:locked_account_statuses`, otherwise the platform refuses to start; a user whose status is not `Active` cannot log in. |
| `app:artifact_zip_max_extracted_size` | `APP__ARTIFACT_ZIP_MAX_EXTRACTED_SIZE` | `104857600` | number | Maximum extracted size (in bytes) of an archive uploaded as artifact. Above this size, the archive is imported as is. New after 7.260811.0-lts.1. |
| `app:artifact_zip_password` | `APP__ARTIFACT_ZIP_PASSWORD` | `infected` | string | Artifact encrypted archive default password. |
| `app:authentication:force_env` | `APP__AUTHENTICATION__FORCE_ENV` | `false` | boolean | Use this variable to force the usage of variables to log in. This will prevent any edition of Authentication via UI too. Read by the code, not in default.json. |
| `app:authentication:force_local` | `APP__AUTHENTICATION__FORCE_LOCAL` | `false` | boolean | Use this variable to force the enablement of your local authentication policy even if disabled in UI. Read by the code, not in default.json. |
| `app:bootstrap_wizard:enabled` | `APP__BOOTSTRAP_WIZARD__ENABLED` | `true` | boolean | Open the quick start wizard at the first login on a new platform. Disabling it only stops the automatic opening. New after 7.260811.0-lts.1. |
| `app:custom_catalogs` | `APP__CUSTOM_CATALOGS` |  | string | Additional connector catalogs to load, as a list of local file paths or `http(s)://` URLs, next to the built-in catalog. Support may be removed in a later version. Read by the code, not in default.json. |
| `app:dissemination_list:max_list_size` | `APP__DISSEMINATION_LIST__MAX_LIST_SIZE` | `500` | number | Maximum number of email addresses a dissemination list can hold. |
| `app:dissemination_list:to_email` | `APP__DISSEMINATION_LIST__TO_EMAIL` | `no-reply@filigran.io` | string | Address put in the To field of emails sent to a dissemination list; the list members receive the email in Bcc. |
| `app:enforce_references` | `APP__ENFORCE_REFERENCES` |  | string | Legacy list of entity types that required an external reference on change. Only a 2023 migration reads it, to copy it into the entity settings; set it in the entity settings of the interface now. Read by the code, not in default.json. |
| `app:exclusion_list:file_max_size` | `APP__EXCLUSION_LIST__FILE_MAX_SIZE` | `10000000` | number | Maximum size, in bytes, of a file uploaded as an exclusion list; a larger file is rejected. |
| `app:group_confidence_level:max_confidence_default` | `APP__GROUP_CONFIDENCE_LEVEL__MAX_CONFIDENCE_DEFAULT` | `100` | number | Maximum confidence level given to a group created without one, for example a group created by an SSO provider. |
| `app:locked_account_statuses:Inactive` | `APP__LOCKED_ACCOUNT_STATUSES__INACTIVE` | `Your account has been marked inactive. If you would like to reactivate your account, please contact your administrator.` | string | Message shown at login to a user whose account status is `Inactive`. Each key of `app:locked_account_statuses` defines an account status that blocks login, with its message. |
| `app:locked_account_statuses:Locked` | `APP__LOCKED_ACCOUNT_STATUSES__LOCKED` | `Your account has been locked for security reasons. Please contact your administrator.` | string | Message shown at login to a user whose account status is `Locked`. Each key of `app:locked_account_statuses` defines an account status that blocks login, with its message. |
| `app:schema_metrics` | `APP__SCHEMA_METRICS` |  | string | Custom metrics that can be set on entities, as an object mapping an entity type to a list of one metric `{ attribute, name, description }`. The metrics can then be set through the API and used in filters (Enterprise Edition). Read by the code, not in default.json. |
| `app:translations` | `APP__TRANSLATIONS` | `{}` | string | Custom labels for the web interface, as a JSON string mapping a language code (such as `en-us`) to an object of label overrides; they replace the built-in translations. |
| `app:trash:enabled` | `APP__TRASH__ENABLED` | `true` | boolean | Enable or disable the trash system. If disabled, the trash manager will also be disabled. |
| `app:validation_mode` | `APP__VALIDATION_MODE` | `draft` | string | Can either be `workbench` or `draft` depending on the validation mode to be used for automatic imports. |
| `data_sharing:max_csv_feed_result` | `DATA_SHARING__MAX_CSV_FEED_RESULT` | `5000` | number | Maximum number of entities a CSV feed (Data sharing) returns per request. Raise it if consumers need more rows, at the cost of slower responses. |
| `demo_mode` | `DEMO_MODE` | `false` | boolean | When `true`, the platform hides user names and email addresses (replaced by a redacted value) in the interface, the history and the activity logs. Use it for public demonstrations. |
| `relations_deduplication:created_by_based` | `RELATIONS_DEDUPLICATION__CREATED_BY_BASED` | `false` | boolean | Take into account the author to duplicate even if `stat_time` / `stop_time` are matching. |
| `relations_deduplication:next_days` | `RELATIONS_DEDUPLICATION__NEXT_DAYS` | `30` | number | De-duplicate relations based on `start_time` and `stop_time` + *n* days. |
| `relations_deduplication:past_days` | `RELATIONS_DEDUPLICATION__PAST_DAYS` | `30` | number | De-duplicate relations based on `start_time` and `stop_time` - *n* days. |

## Technical customization {#technical-customization}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:child_locking_process:enabled` | `APP__CHILD_LOCKING_PROCESS__ENABLED` | `true` | boolean | Runs the acquisition and extension of Redis locks in a separate child Node.js process, so that a busy main event loop does not delay lock extension. Set it to `false` to handle locks in the main process. |
| `app:child_locking_process:max_memory` | `APP__CHILD_LOCKING_PROCESS__MAX_MEMORY` | `256` | number | Maximum heap size, in MB, of the child process that handles locks when `app:child_locking_process:enabled` is `true`. Read by the code, not in default.json. |
| `app:concurrency:extension_threshold` | `APP__CONCURRENCY__EXTENSION_THRESHOLD` | `5000` | number | Margin, in ms, used to extend a held lock automatically: the platform extends the lock when it is twice this value away from its expiry. Raise it if locks expire under heavy load. |
| `app:concurrency:max_ttl` | `APP__CONCURRENCY__MAX_TTL` | `60000` | number | Global maximum time for lock retry (in milliseconds) |
| `app:concurrency:retry_count` | `APP__CONCURRENCY__RETRY_COUNT` | `100` | number | Number of try to get the lock to work an element (create/update/merge, ...) |
| `app:concurrency:retry_delay` | `APP__CONCURRENCY__RETRY_DELAY` | `250` | number | Delay between 2 lock retry (in milliseconds) |
| `app:concurrency:retry_jitter` | `APP__CONCURRENCY__RETRY_JITTER` | `100` | number | Random jitter to prevent concurrent retry (in milliseconds) |
| `app:csv_ingestion:max_bundle_size` | `APP__CSV_INGESTION__MAX_BUNDLE_SIZE` | `1000` | number | Maximum number of objects in each STIX bundle that a CSV import sends to the workers. Lower it to send smaller bundles. |
| `app:data_sharing:taxii:max_pagination_result` | `APP__DATA_SHARING__TAXII__MAX_PAGINATION_RESULT` | `500` | number | Maximum number of objects a TAXII collection returns per page; a larger `limit` asked by a client is capped to this value. Read by the code, not in default.json. |
| `app:enabled` | `APP__ENABLED` | `true` | boolean | Starts the HTTP server (API and web interface) on this node. Set it to `false` on a node that only runs managers and background processing. |
| `app:enabled_dev_features` | `APP__ENABLED_DEV_FEATURES` | `[]` | list | Feature flags to enable, as a list of flag names; `*` enables them all. Flags turn on features still in development: do not use them in production. |
| `app:enabled_ui` | `APP__ENABLED_UI` | `true` | boolean | Serves the web interface on this node. Set it to `false` to expose only the API; the GraphQL playground is then disabled too. |
| `app:filename_to_mimes:.yar` | `APP__FILENAME_TO_MIMES__.YAR` | `text/yara+plain` | string | MIME type given to files whose name ends with `.yar` when the type cannot be guessed from the extension. |
| `app:filename_to_mimes:.yara` | `APP__FILENAME_TO_MIMES__.YARA` | `text/yara+plain` | string | MIME type given to files whose name ends with `.yara` when the type cannot be guessed from the extension. |
| `app:filename_to_mimes:pdf_report` | `APP__FILENAME_TO_MIMES__PDF_REPORT` | `application/pdf` | string | MIME type given to files whose name ends with `pdf_report` when the type cannot be guessed from the extension. |
| `app:graphql:playground:enabled` | `APP__GRAPHQL__PLAYGROUND__ENABLED` | `!GRAPHQL_SECURE_BY_DEFAULT` | boolean | Enable the playground on /public/graphql. Unset, it is `true`, and from 7.261109 the opposite of `app:graphql:secure_by_default`. When the playground is off, introspection is refused too. Read by the code, not in default.json. |
| `app:graphql:playground:force_disabled_introspection` | `APP__GRAPHQL__PLAYGROUND__FORCE_DISABLED_INTROSPECTION` | `true` | boolean | Introspection is allowed to auth users but can be disabled in needed. |
| `app:live_stream:cache_max_size` | `APP__LIVE_STREAM__CACHE_MAX_SIZE` | `5000` | number | Maximum number of entries in the cache of elements already sent on one live stream connection, which avoids sending the same dependencies twice. |
| `app:live_stream:cache_max_time` | `APP__LIVE_STREAM__CACHE_MAX_TIME` | `2` | number | Time, in hours, an element stays in the cache of elements already sent on one live stream connection. |
| `app:live_stream:heartbeat_period` | `APP__LIVE_STREAM__HEARTBEAT_PERIOD` | `5000` | number | Interval, in ms, between two heartbeat events sent to the clients of a stream. Raise it if proxies do not need frequent traffic. Read by the code, not in default.json. |
| `app:live_stream:resolution_batch_size` | `APP__LIVE_STREAM__RESOLUTION_BATCH_SIZE` | `500` | number | Maximum number of missing references a live stream loads and sends at once when it resolves the dependencies of an element, such as the content of a large container. New after 7.260811.0-lts.1. |
| `app:node_identifier` | `APP__NODE_IDENTIFIER` |  | string | Identifier of this node in a cluster, used to register the node and to synchronize caches; a random UUID is generated at each start when empty. Set it to keep the same identity across restarts. Read by the code, not in default.json. |
| `app:python_execution` | `APP__PYTHON_EXECUTION` | `native` | string | How the platform runs its Python scripts (indicator syntax check, STIX pattern generation): `native` runs them in an interpreter embedded in the platform process; any other value starts a `python3` child process for each call. |
| `app:python_execution_venv` | `APP__PYTHON_EXECUTION_VENV` | `../../../.python-venv/lib/python3.12/site-packages` | string | Path of a Python `site-packages` directory added to the import path of the embedded Python interpreter, to use the libraries of a virtual environment. |
| `app:script_snippet` | `APP__SCRIPT_SNIPPET` |  | string | HTML snippet, such as a `<script>` tag for web analytics, inserted in the page of the web interface. Read by the code, not in default.json. |
| `app:token_activity_period` | `APP__TOKEN_ACTIVITY_PERIOD` | `60` | number | Minimum interval, in seconds, between two updates of the last use date of an API token. Raise it to reduce writes to Redis. Read by the code, not in default.json. |
| `conf` | `CONF` |  | string | Path of the configuration file to load instead of `config/<env>.json` (also `-c` on the command line). `config/default.json` still applies underneath. Read by the code, not in default.json. |
| `env` | `ENV` |  | string | Execution environment (also `-e` on the command line or `NODE_ENV`), which selects the configuration file `config/<env>.json`. Any value other than `production` enables development mode; keep `production`. Read by the code, not in default.json. |
| `json_path:idle_pool_size` | `JSON_PATH__IDLE_POOL_SIZE` | `2` | number | Number of idle worker threads kept ready to evaluate JSONPath filter expressions of JSON mappers and JSON feeds. A worker released when this many are already idle is stopped. New after 7.260811.0-lts.1. |
| `json_path:idle_timeout` | `JSON_PATH__IDLE_TIMEOUT` | `60000` | number | Time, in ms, after which an idle JSONPath worker thread is stopped, to give back the memory of the last document it copied. New after 7.260811.0-lts.1. |
| `json_path:max_pool_size` | `JSON_PATH__MAX_POOL_SIZE` | `4` | number | Maximum number of worker threads that evaluate JSONPath filter expressions at the same time. Each worker holds a copy of the JSON document it filters, so this bounds the memory used; when every worker is busy, the next queries wait in arrival order. New after 7.260811.0-lts.1. |
| `json_path:max_queries_per_worker` | `JSON_PATH__MAX_QUERIES_PER_WORKER` | `10000` | number | Number of JSONPath queries after which a worker thread is retired and replaced by a fresh one. New after 7.260811.0-lts.1. |
| `json_path:resource_limits:code_range_size_mb` | `JSON_PATH__RESOURCE_LIMITS__CODE_RANGE_SIZE_MB` | `10` | number | Size, in MB, of the memory reserved for compiled code in each JSONPath worker thread. New after 7.260811.0-lts.1. |
| `json_path:resource_limits:max_young_generation_size_mb` | `JSON_PATH__RESOURCE_LIMITS__MAX_YOUNG_GENERATION_SIZE_MB` | `32` | number | Maximum size, in MB, of the heap for short-lived objects of each JSONPath worker thread. The main heap of a worker is not capped, so that a document the platform can read also fits in the worker's copy. New after 7.260811.0-lts.1. |
| `json_path:resource_limits:stack_size_mb` | `JSON_PATH__RESOURCE_LIMITS__STACK_SIZE_MB` | `4` | number | Maximum stack size, in MB, of each JSONPath worker thread. New after 7.260811.0-lts.1. |
| `json_path:timeout` | `JSON_PATH__TIMEOUT` | `60000` | number | Time, in ms, a JSONPath expression with a filter or a script (a path that contains a parenthesis, such as `$.items[?(@.score > 50)]`) may run in its worker thread, in a JSON mapper or a JSON feed. Past it, the evaluation fails with a "JSONPath evaluation timeout" error and the worker is replaced. The time a query waits for a free worker is not counted. A path without parenthesis runs in the platform process, without this limit. New after 7.260811.0-lts.1. |
| `safe_ejs:idle_pool_size` | `SAFE_EJS__IDLE_POOL_SIZE` | `2` | number | Number of idle worker threads kept ready to render EJS templates (email and notification templates) in isolation. A render beyond this number starts a new worker; raise it if the platform sends many emails or notifications at once. New after 7.260811.0-lts.1. |
| `safe_ejs:max_renders_per_worker` | `SAFE_EJS__MAX_RENDERS_PER_WORKER` | `1000` | number | Number of template renders after which a worker thread is retired and replaced by a fresh one, so that its memory limits keep applying to each render. New after 7.260811.0-lts.1. |
| `safe_ejs:resource_limits:code_range_size_mb` | `SAFE_EJS__RESOURCE_LIMITS__CODE_RANGE_SIZE_MB` | `10` | number | Size, in MB, of the memory reserved for compiled code in each template rendering worker thread. New after 7.260811.0-lts.1. |
| `safe_ejs:resource_limits:max_old_generation_size_mb` | `SAFE_EJS__RESOURCE_LIMITS__MAX_OLD_GENERATION_SIZE_MB` | `50` | number | Maximum size, in MB, of the main heap of each template rendering worker thread. A template that needs more fails to render; raise it if large notification digests fail. New after 7.260811.0-lts.1. |
| `safe_ejs:resource_limits:max_young_generation_size_mb` | `SAFE_EJS__RESOURCE_LIMITS__MAX_YOUNG_GENERATION_SIZE_MB` | `10` | number | Maximum size, in MB, of the heap for short-lived objects of each template rendering worker thread. New after 7.260811.0-lts.1. |
| `safe_ejs:resource_limits:stack_size_mb` | `SAFE_EJS__RESOURCE_LIMITS__STACK_SIZE_MB` | `4` | number | Maximum stack size, in MB, of each template rendering worker thread. A template that recurses deeper fails to render. New after 7.260811.0-lts.1. |
| `workflow:disable_read_repair` | `WORKFLOW__DISABLE_READ_REPAIR` | `false` | boolean | When `true`, reading an entity's workflow no longer corrects its status when the status diverges from the workflow's current state. Behind the `ENTITIES_WORKFLOW` feature flag (always active for drafts). Read by the code, not in default.json. New after 7.260811.0-lts.1. |

## XTM Suite {#xtm-suite}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:composer_token_expiration` | `APP__COMPOSER_TOKEN_EXPIRATION` | `604800` | number | Time, in seconds, the encrypted API token of a connector managed by XTM Composer stays cached in Redis. Each use renews it; when it expires, the platform revokes the token and generates a new one. Read by the code, not in default.json. |
| `xtm:auth:token_ttl` | `XTM__AUTH__TOKEN_TTL` | `600` | number | Lifetime, in seconds, of the token the platform signs for a user when it calls XTM One on their behalf (Ask AI chatbot). Values above 600 are capped at 600. |
| `xtm:openaev_token` | `XTM__OPENAEV_TOKEN` |  | string | Declared in default.json; no code reads it in this version. |
| `xtm:openaev_url` | `XTM__OPENAEV_URL` |  | string | OpenAEV URL. |
| `xtm:opengrc_token` | `XTM__OPENGRC_TOKEN` |  | string | Declared in default.json; no code reads it in this version. |
| `xtm:opengrc_url` | `XTM__OPENGRC_URL` |  | string | URL of the OpenCRQ platform (OpenGRC is the former name of OpenCRQ). The platform passes it to the interface in its settings, but no screen of this version uses it. A later release renames it after OpenCRQ, still reads this name as a deprecated fallback, and adds OpenCRQ to the product switcher. |
| `xtm:xtm_one_token` | `XTM__XTM_ONE_TOKEN` |  | string | XTM One registration token. With the URL, the platform registers with XTM One every 5 minutes. |
| `xtm:xtm_one_url` | `XTM__XTM_ONE_URL` | `https://common.xtm1.filigran.io` | string | XTM One URL, as reachable from OpenCTI (an internal address such as `http://xtm-one:4000` in Docker works) |
| `xtm:xtmhub_api_override_url` | `XTM__XTMHUB_API_OVERRIDE_URL` |  | string | URL the platform uses to call the XTM Hub API (health check, registration, news feed) instead of `xtm:xtmhub_url`. Set it when the server reaches XTM Hub at another address than the one users open in their browser. Read by the code, not in default.json. |
| `xtm:xtmhub_connectivity_email_enabled` | `XTM__XTMHUB_CONNECTIVITY_EMAIL_ENABLED` | `true` | boolean | When `true`, the platform emails its administrators once when the connectivity with XTM Hub has been lost for 24 hours, asking them to register the platform again. Set `false` to stop this email. |
| `xtm:xtmhub_to_email` | `XTM__XTMHUB_TO_EMAIL` | `no-reply@filigran.io` | string | Recipient (To) address of the email sent when the connectivity with XTM Hub is lost; the administrators receive it in blind copy. |
| `xtm:xtmhub_url` | `XTM__XTMHUB_URL` | `https://hub.filigran.io` | string | XTM Hub URL. If set to an empty string, integration of XTM Hub features into OpenCTI will be removed from UI. |

## ElasticSearch {#elasticsearch}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `elasticsearch:api_key` | `ELASTICSEARCH__API_KEY` |  | string | API key for ElasticSearch token auth. Until 7.261030, also set `engine_selector` to `elk`; from 7.261109 the client is detected with the same key. Read by the code, not in default.json. |
| `elasticsearch:batch_loader_max_size` | `ELASTICSEARCH__BATCH_LOADER_MAX_SIZE` | `300` | number | Maximum number of elements grouped into one batched load when an API request resolves related data (creators, markings, relations...). Lower it if batched queries to the search engine get too large. Read by the code, not in default.json. |
| `elasticsearch:default_pagination_result` | `ELASTICSEARCH__DEFAULT_PAGINATION_RESULT` | `500` | number | Number of results returned by a list query that does not ask for a page size (`first`), and page size of internal paginated loops. |
| `elasticsearch:engine_client` | `ELASTICSEARCH__ENGINE_CLIENT` | `auto` | string | Client the platform uses for its search engine: `auto` (default), `elasticsearch8`, `elasticsearch9` or `opensearch`. With `auto`, the platform reads the engine's answer to `GET /` at start: OpenSearch gets the OpenSearch client, Elasticsearch 9 and Elastic Serverless the 9.x client, any other version the 8.x client; with `opensearch:region` (AWS SigV4) it uses the OpenSearch client without reading the server. Force a client when `GET /` is blocked (a proxy, an account without the privilege); it must be `opensearch` with AWS SigV4. Any other value, or an engine that does not answer, stops the platform at start. Replaces `elasticsearch:engine_selector` and `elasticsearch:engine_check`. New after 7.260811.0-lts.1. |
| `elasticsearch:index_creation_pattern` | `ELASTICSEARCH__INDEX_CREATION_PATTERN` | `-000001` | string | Suffix appended to the alias name when the platform creates an index (for example `opencti_stix_domain_objects-000001`). Rollover then increments it. Changing it only affects indices created afterwards. |
| `elasticsearch:index_prefix` | `ELASTICSEARCH__INDEX_PREFIX` | `opencti` | string | Prefix for the indices. |
| `elasticsearch:internal_init_mapping_migration` | `ELASTICSEARCH__INTERNAL_INIT_MAPPING_MIGRATION` | `off` | string | Internal: helper for reindex migrations (`off`, `standard` or `old`). On a new platform any value other than `off` creates the templates and indices with that mapping, then stops the process; on an existing platform it fails at start. Do not change it. Read by the code, not in default.json. |
| `elasticsearch:max_bulk_operations` | `ELASTICSEARCH__MAX_BULK_OPERATIONS` | `5000` | number | Maximum number of operations sent in one bulk request to the search engine during mass updates (relation and denormalization updates, migrations). Lower it if bulk requests time out or exceed the cluster's request size. |
| `elasticsearch:max_concurrency` | `ELASTICSEARCH__MAX_CONCURRENCY` | `4` | number | Number of bulk requests or fetch batches the platform sends to the search engine in parallel during mass updates and migrations. Raise it on a large cluster to speed them up, lower it to reduce the load. |
| `elasticsearch:max_container_object_resolutions` | `ELASTICSEARCH__MAX_CONTAINER_OBJECT_RESOLUTIONS` | `100000` | number | Maximum number of objects gathered from the containers of an entity when building its containers graph; once reached, the platform stops reading more containers. Read by the code, not in default.json. |
| `elasticsearch:max_container_resolutions` | `ELASTICSEARCH__MAX_CONTAINER_RESOLUTIONS` | `1000` | number | Maximum number of containers (or contained elements) loaded to resolve related containers and the containers graph of an entity. Raise it to see more containers at the cost of heavier queries. Read by the code, not in default.json. |
| `elasticsearch:max_docs` | `ELASTICSEARCH__MAX_DOCS` | `75000000` | number | Number of documents after which an index rolls over, written into the lifecycle policy the platform creates with its indices (ILM `max_docs` on Elasticsearch, ISM `min_doc_count` on OpenSearch). Read by the code, not in default.json. |
| `elasticsearch:max_mapping_fields` | `ELASTICSEARCH__MAX_MAPPING_FIELDS` | `3500` | number | Maximum number of mapped fields per index (`index.mapping.total_fields.limit`), applied to the index templates and existing indices at each start. Raise it if indexing fails because the field limit is reached (many custom attributes). Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `elasticsearch:max_pagination_result` | `ELASTICSEARCH__MAX_PAGINATION_RESULT` | `5000` | number | Maximum number of results one search page can return; a larger requested page size is capped to this value. Also the batch size of internal loops that load elements by id. |
| `elasticsearch:max_primary_shard_size` | `ELASTICSEARCH__MAX_PRIMARY_SHARD_SIZE` | `50gb` | string | Primary shard size after which an index rolls over (for example `50gb`), written into the lifecycle policy the platform creates with its indices (ILM `max_primary_shard_size` on Elasticsearch, ISM `min_primary_shard_size` on OpenSearch). Read by the code, not in default.json. |
| `elasticsearch:max_result_window` | `ELASTICSEARCH__MAX_RESULT_WINDOW` | `100000` | number | Index setting `max_result_window` (maximum offset plus size of a search), set in the platform's core settings template at each start and applied to indices created afterwards. Read by the code, not in default.json. |
| `elasticsearch:max_retries` | `ELASTICSEARCH__MAX_RETRIES` | `3` | number | Number of times the search engine client retries a failed request before returning an error. Read by the code, not in default.json. |
| `elasticsearch:max_runtime_resolutions` | `ELASTICSEARCH__MAX_RUNTIME_RESOLUTIONS` | `5000` | number | Maximum number of entities (identities, countries, kill chain phases) loaded to sort lists by a computed column such as author or country. Raise it if sorting by these columns shows `Unknown` on a large dataset. |
| `elasticsearch:number_of_replicas` | `ELASTICSEARCH__NUMBER_OF_REPLICAS` |  | string | Number of replicas of each index, set in the platform's core settings template at each start and applied to indices created afterwards. Unset, the search engine default applies. Read by the code, not in default.json. |
| `elasticsearch:number_of_shards` | `ELASTICSEARCH__NUMBER_OF_SHARDS` |  | string | Number of primary shards of each index, set in the platform's core settings template at each start and applied to indices created afterwards. Unset, the search engine default applies. Read by the code, not in default.json. |
| `elasticsearch:password` | `ELASTICSEARCH__PASSWORD` |  | string | Password can be put in the URL or with this parameter. Read by the code, not in default.json. |
| `elasticsearch:proxy` | `ELASTICSEARCH__PROXY` |  | string | URL of an HTTP proxy the platform uses to reach Elasticsearch or OpenSearch. Read by the code, not in default.json. |
| `elasticsearch:request_timeout` | `ELASTICSEARCH__REQUEST_TIMEOUT` | `3600000` | number | Timeout of a request to the search engine, in ms (default one hour). Read by the code, not in default.json. |
| `elasticsearch:sniff_on_start` | `ELASTICSEARCH__SNIFF_ON_START` | `false` | boolean | When `true`, the search engine client discovers the cluster nodes at start and spreads requests across them, instead of using only the configured URL. Read by the code, not in default.json. |
| `elasticsearch:ssl:ca` | `ELASTICSEARCH__SSL__CA` |  | string | Custom certificate path or content. Read by the code, not in default.json. |
| `elasticsearch:ssl:ca_plain` | `ELASTICSEARCH__SSL__CA_PLAIN` |  | string | Certificate authority of the search engine as plain PEM content, used when `elasticsearch:ssl:ca` (a file path) is not set. Read by the code, not in default.json. |
| `elasticsearch:ssl:reject_unauthorized` | `ELASTICSEARCH__SSL__REJECT_UNAUTHORIZED` | `true` | boolean | Enable TLS certificate check. Read by the code, not in default.json. |
| `elasticsearch:unsecure_script_filter_enabled` | `ELASTICSEARCH__UNSECURE_SCRIPT_FILTER_ENABLED` | `false` | boolean | Allows the `script` filter operator, which passes a raw script to the search engine. Disabled by default because any user who can filter can run that script; enable it only if you trust every user. Read by the code, not in default.json. |
| `elasticsearch:url` | `ELASTICSEARCH__URL` | `http://localhost:9200` | string | URL(s) of the ElasticSearch (supports http://user:pass@localhost:9200 and list of URLs) |
| `elasticsearch:username` | `ELASTICSEARCH__USERNAME` |  | string | Username can be put in the URL or with this parameter. Read by the code, not in default.json. |
| `opensearch:region` | `OPENSEARCH__REGION` |  | string | AWS region when using AWS OpenSearch with IAM (e.g. `us-east-1`). When set, requests are signed with SigV4 using the default credential chain (env, instance role, etc.). Omit for self‑hosted Elasticsearch/OpenSearch. Read by the code, not in default.json. |
| `opensearch:service` | `OPENSEARCH__SERVICE` | `es` | string | AWS service name used to sign requests to OpenSearch when `opensearch:region` is set: `es` for Amazon OpenSearch Service, `aoss` for OpenSearch Serverless. Read by the code, not in default.json. |

## Redis {#redis}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `redis:activity_trimming` | `REDIS__ACTIVITY_TRIMMING` | `50000` | number | Approximate maximum number of events kept in the Redis activity (audit) stream; older events are trimmed as new ones arrive. Raise it to keep more activity history in Redis, lower it to save Redis memory. `0` falls back to 50000. Read by the code, not in default.json. |
| `redis:ca` | `REDIS__CA` | `[]` | list | List of path(s) of the CA certificate(s) |
| `redis:database` | `REDIS__DATABASE` | `0` | number | Database of the Redis Server (only work in single mode) Read by the code, not in default.json. |
| `redis:host_ip_family` | `REDIS__HOST_IP_FAMILY` | `4` | number | IP family used to resolve the Redis hostnames in single and cluster mode, `4` for IPv4, `6` for IPv6 or `0` for both. Set `6` or `0` when Redis is reachable only over IPv6. |
| `redis:hostname` | `REDIS__HOSTNAME` | `localhost` | string | Hostname of the Redis Server. |
| `redis:hostnames` | `REDIS__HOSTNAMES` |  | string | Hostnames definition for Redis cluster or sentinel mode: a list of host:port objects. Read by the code, not in default.json. |
| `redis:max_event_length` | `REDIS__MAX_EVENT_LENGTH` | `0` | number | Maximum size (in bytes) of a stream event before its content is offloaded to file storage. (0 = disabled) New after 7.260811.0-lts.1. |
| `redis:mode` | `REDIS__MODE` | `single` | string | Connect to redis in "single", "sentinel or "cluster" mode. |
| `redis:namespace` | `REDIS__NAMESPACE` |  | string | Namespace (to use as prefix) |
| `redis:nat_map` | `REDIS__NAT_MAP` |  | string | Cluster mode only: list of address translations `HOST:PORT>HOST:PORT`, mapping each address a cluster node announces to the address the platform must use. Set it when the nodes sit behind NAT or a proxy (Docker, Kubernetes, cloud) and announce addresses the platform cannot reach. Read by the code, not in default.json. |
| `redis:notification_range_batch_size` | `REDIS__NOTIFICATION_RANGE_BATCH_SIZE` | `1000` | number | Number of notification stream entries read per Redis request when the notification manager builds a digest. Lower it to reduce the memory peak of digests over a busy stream; raise it to make fewer requests. Read by the code, not in default.json. |
| `redis:notification_trimming` | `REDIS__NOTIFICATION_TRIMMING` | `50000` | number | Approximate maximum number of events kept in the Redis notification stream, which the notification manager reads for live triggers and digests. Raise it if digests over long periods miss events; `0` falls back to 50000. Read by the code, not in default.json. |
| `redis:password` | `REDIS__PASSWORD` |  | string | Password of the Redis Server. Read by the code, not in default.json. |
| `redis:port` | `REDIS__PORT` | `6379` | number | Port of the Redis Server. |
| `redis:scale_reads` | `REDIS__SCALE_READS` | `all` | string | Cluster mode only: which nodes serve read commands, `master` (primaries only), `slave` (replicas only) or `all` (primaries and replicas). Use `master` if reads must never return data a replica has not received yet. Read by the code, not in default.json. |
| `redis:sentinel_failover_detector` | `REDIS__SENTINEL_FAILOVER_DETECTOR` | `false` | boolean | Sentinel mode only: when `true`, the platform listens to the Sentinels for master switches and reconnects to the new master as soon as a failover happens, instead of waiting for the connection to fail. Read by the code, not in default.json. |
| `redis:sentinel_master_name` | `REDIS__SENTINEL_MASTER_NAME` |  | string | Name of your Redis Sentinel Master (mandatory in sentinel mode) Read by the code, not in default.json. |
| `redis:sentinel_password` | `REDIS__SENTINEL_PASSWORD` |  | string | Password to authenticate on Redis Sentinel. Read by the code, not in default.json. |
| `redis:sentinel_preferred_slaves` | `REDIS__SENTINEL_PREFERRED_SLAVES` |  | string | Sentinel mode only, with `redis:sentinel_role` set to `slave`: replicas to connect to first, as a list of `{ ip, port, prio }` objects (lower `prio` first). Read by the code, not in default.json. |
| `redis:sentinel_role` | `REDIS__SENTINEL_ROLE` |  | string | Sentinel mode only: role of the node the platform connects to, `master` (default) or `slave`. Keep `master`: the platform writes to Redis. Read by the code, not in default.json. |
| `redis:sentinel_tls` | `REDIS__SENTINEL_TLS` | `false` | boolean | Sentinel mode only: use TLS for the connections to the Sentinel nodes themselves (`redis:use_ssl` covers the connection to the Redis master). Read by the code, not in default.json. |
| `redis:sentinel_update_sentinels` | `REDIS__SENTINEL_UPDATE_SENTINELS` | `true` | boolean | Sentinel mode only: when `true`, the platform adds the Sentinels it discovers to its list of Sentinels. Set `false` to use only the nodes listed in `redis:hostnames`, for example when the discovered addresses are not reachable from the platform. Read by the code, not in default.json. |
| `redis:sentinel_username` | `REDIS__SENTINEL_USERNAME` |  | string | Username to authenticate on Redis Sentinel. Read by the code, not in default.json. |
| `redis:tls_cluster_node_mode` | `REDIS__TLS_CLUSTER_NODE_MODE` | `false` | boolean | When set to `true`, each cluster node certificate is validated individually. New after 7.260811.0-lts.1. |
| `redis:tls_servername` | `REDIS__TLS_SERVERNAME` |  | string | Optional shared server name used for TLS SNI and certificate validation. In cluster mode, leave empty to validate each node individually. New after 7.260811.0-lts.1. |
| `redis:trimming` | `REDIS__TRIMMING` | `2000000` | number | Number of elements to maintain in the stream. (0 = unlimited) |
| `redis:use_ssl` | `REDIS__USE_SSL` | `false` | boolean | Is the Redis Server has TLS enabled. |
| `redis:username` | `REDIS__USERNAME` |  | string | Username of the Redis Server. Read by the code, not in default.json. |

## RabbitMQ {#rabbitmq}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `rabbitmq:hostname` | `RABBITMQ__HOSTNAME` | `localhost` | string | Hostname of the RabbitMQ server. |
| `rabbitmq:hostname_management` | `RABBITMQ__HOSTNAME_MANAGEMENT` |  | string | Hostname of the RabbitMQ Management Plugin. Read by the code, not in default.json. |
| `rabbitmq:management_ssl` | `RABBITMQ__MANAGEMENT_SSL` | `false` | boolean | Is the Management Plugin has TLS enabled. |
| `rabbitmq:management_ssl_reject_unauthorized` | `RABBITMQ__MANAGEMENT_SSL_REJECT_UNAUTHORIZED` | `TLS_REJECT_UNAUTHORIZED` | boolean | Reject a certificate of the RabbitMQ management plugin the platform cannot verify. Unset, it is `false`, and from 7.261109 it follows `tls:reject_unauthorized`. Read by the code, not in default.json. |
| `rabbitmq:password` | `RABBITMQ__PASSWORD` | `guest` | string | RabbitMQ password. |
| `rabbitmq:port` | `RABBITMQ__PORT` | `5672` | number | Port of the RabbitMQ server. |
| `rabbitmq:port_management` | `RABBITMQ__PORT_MANAGEMENT` | `15672` | number | Port of the RabbitMQ Management Plugin. |
| `rabbitmq:queue_prefix` | `RABBITMQ__QUEUE_PREFIX` |  | string | Prefix added (with `_`) to the names of the RabbitMQ exchanges and queues of the platform. Set it to share one RabbitMQ server between several platforms. |
| `rabbitmq:queue_type` | `RABBITMQ__QUEUE_TYPE` | `classic` | string | RabbitMQ Queue Type ("classic" or "quorum") |
| `rabbitmq:use_ssl` | `RABBITMQ__USE_SSL` | `false` | boolean | Use TLS connection. |
| `rabbitmq:use_ssl_ca` | `RABBITMQ__USE_SSL_CA` | `[]` | list | List of path(s) of the CA certificate(s) |
| `rabbitmq:use_ssl_cert` | `RABBITMQ__USE_SSL_CERT` |  | string | Path or cert content. Read by the code, not in default.json. |
| `rabbitmq:use_ssl_key` | `RABBITMQ__USE_SSL_KEY` |  | string | Path or key content. Read by the code, not in default.json. |
| `rabbitmq:use_ssl_passphrase` | `RABBITMQ__USE_SSL_PASSPHRASE` |  | string | Passphrase for the key certificate. Read by the code, not in default.json. |
| `rabbitmq:use_ssl_pfx` | `RABBITMQ__USE_SSL_PFX` |  | string | Path or pfx content. Read by the code, not in default.json. |
| `rabbitmq:use_ssl_reject_unauthorized` | `RABBITMQ__USE_SSL_REJECT_UNAUTHORIZED` | `TLS_REJECT_UNAUTHORIZED` | boolean | Reject a RabbitMQ certificate the platform cannot verify (a self-signed one, for example). Unset, it is `false`, and from 7.261109 it follows `tls:reject_unauthorized`. Read by the code, not in default.json. |
| `rabbitmq:username` | `RABBITMQ__USERNAME` | `guest` | string | RabbitMQ user. |
| `rabbitmq:vhost` | `RABBITMQ__VHOST` | `/` | string | RabbitMQ virtual host. |

## S3 Bucket {#s3-bucket}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `minio:access_key` | `MINIO__ACCESS_KEY` | `ChangeMe` | string | Access key for the S3 Service. |
| `minio:bucket_name` | `MINIO__BUCKET_NAME` | `opencti-bucket` | string | S3 bucket name. Useful to change if you use AWS. |
| `minio:bucket_region` | `MINIO__BUCKET_REGION` | `us-east-1` | string | Region of the S3 bucket if you are using AWS. This parameter value can be omitted if you use Silo as an S3 Bucket Service. |
| `minio:disable_checksum_validation` | `MINIO__DISABLE_CHECKSUM_VALIDATION` | `false` | boolean | When `true`, the S3 client computes and validates checksums only when the operation requires them, instead of whenever supported. Enable it for S3-compatible storage that rejects the newer checksum headers of the AWS SDK. |
| `minio:endpoint` | `MINIO__ENDPOINT` | `localhost` | string | Hostname of the S3 Service. Example if you use AWS Bucket S3: __s3.us-east-1.amazonaws.com__ (if `minio:bucket_region` value is _us-east-1_). This parameter value can be omitted if you use Silo as an S3 Bucket Service. |
| `minio:excluded_files` | `MINIO__EXCLUDED_FILES` | `[".DS_Store"]` | list | File names (case-insensitive) hidden when the platform lists files from the bucket. |
| `minio:port` | `MINIO__PORT` | `9000` | number | Port of the S3 Service. For AWS Bucket S3 over HTTPS, this value can be changed (usually __443__). |
| `minio:secret_key` | `MINIO__SECRET_KEY` | `ChangeMe` | string | Secret key for the S3 Service. |
| `minio:session_token` | `MINIO__SESSION_TOKEN` |  | string | Session token sent with `minio:access_key` and `minio:secret_key`, for temporary credentials (AWS STS). Read by the code, not in default.json. |
| `minio:use_aws_logs` | `MINIO__USE_AWS_LOGS` | `false` | boolean | When `true`, the debug messages of the AWS S3 client are written to the application log at `info` level. Use it to diagnose bucket connection issues. Read by the code, not in default.json. |
| `minio:use_aws_role` | `MINIO__USE_AWS_ROLE` | `false` | boolean | Indicates whether to use AWS role auto credentials. When this parameter is configured, the `minio:access_key` and `minio:secret_key` parameters are not necessary. |
| `minio:use_ssl` | `MINIO__USE_SSL` | `false` | boolean | Indicates whether the S3 Service has TLS enabled. For AWS Bucket S3 over HTTPS, this value could be `true`. |

## SMTP Service {#smtp-service}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `smtp:auth_type` | `SMTP__AUTH_TYPE` |  | string | Authentication type: `basic` or `oauth2`. Read by the code, not in default.json. |
| `smtp:connection_timeout` | `SMTP__CONNECTION_TIMEOUT` | `10000` | number | Maximum time, in milliseconds, to wait for the TCP connection to the SMTP server. New after 7.260811.0-lts.1. |
| `smtp:email_max_cc_size` | `SMTP__EMAIL_MAX_CC_SIZE` | `500` | number | Maximum number of administrators put in blind copy of the email sent when the connectivity with XTM Hub is lost; beyond it, only the first ones receive it. |
| `smtp:enabled` | `SMTP__ENABLED` | `true` | boolean | Enable or disable SMTP email sending. Read by the code, not in default.json. |
| `smtp:forced_sender_email` | `SMTP__FORCED_SENDER_EMAIL` |  | string | When set, forces all emails to use this address as sender and disables the UI-based SMTP configuration. |
| `smtp:greeting_timeout` | `SMTP__GREETING_TIMEOUT` | `10000` | number | Maximum time, in milliseconds, to wait for the SMTP server greeting after the connection opens. New after 7.260811.0-lts.1. |
| `smtp:hostname` | `SMTP__HOSTNAME` | `localhost` | string | SMTP Server hostname. |
| `smtp:oauth_client_id` | `SMTP__OAUTH_CLIENT_ID` |  | string | OAuth2: client ID registered with the identity provider. Read by the code, not in default.json. |
| `smtp:oauth_client_secret` | `SMTP__OAUTH_CLIENT_SECRET` |  | string | OAuth2: client secret associated with the client ID. Read by the code, not in default.json. |
| `smtp:oauth_issuer` | `SMTP__OAUTH_ISSUER` |  | string | OAuth2: OIDC issuer URL of the identity provider (used for discovery and refresh token grant) Read by the code, not in default.json. |
| `smtp:oauth_refresh_token` | `SMTP__OAUTH_REFRESH_TOKEN` |  | string | OAuth2: long-lived refresh token used to obtain a fresh access token before each email is sent. Read by the code, not in default.json. |
| `smtp:oauth_user` | `SMTP__OAUTH_USER` |  | string | OAuth2: email address of the SMTP mailbox. Read by the code, not in default.json. |
| `smtp:password` | `SMTP__PASSWORD` |  | string | SMTP password (Basic Auth only) |
| `smtp:port` | `SMTP__PORT` | `25` | number | SMTP Port (25 or 465 for TLS) |
| `smtp:reject_unauthorized` | `SMTP__REJECT_UNAUTHORIZED` | `TLS_REJECT_UNAUTHORIZED` | boolean | Enable TLS certificate check of the SMTP server. Unset, it is `false`, and from 7.261109 it follows `tls:reject_unauthorized`. Read by the code, not in default.json. |
| `smtp:tls_ciphers` | `SMTP__TLS_CIPHERS` |  | string | TLS cipher suites allowed for the connection to the SMTP server, in OpenSSL format. Applies when SMTP is configured in the configuration file, not in the interface. Read by the code, not in default.json. |
| `smtp:tls_max_version` | `SMTP__TLS_MAX_VERSION` |  | string | Highest TLS version allowed for the connection to the SMTP server (for example `TLSv1.3`). Applies when SMTP is configured in the configuration file, not in the interface. Read by the code, not in default.json. |
| `smtp:tls_min_version` | `SMTP__TLS_MIN_VERSION` |  | string | Lowest TLS version allowed for the connection to the SMTP server (for example `TLSv1.2`). Set it to refuse older protocols, or lower it for a legacy server. Applies when SMTP is configured in the configuration file, not in the interface. Read by the code, not in default.json. |
| `smtp:use_ssl` | `SMTP__USE_SSL` | `false` | boolean | SMTP over TLS. |
| `smtp:username` | `SMTP__USERNAME` |  | string | SMTP username (Basic Auth only) |

## AI Service {#ai-service}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `ai:agents_refresh_timeout` | `AI__AGENTS_REFRESH_TIMEOUT` | `1440` | number | Time an AI Insights answer from an XTM One agent stays cached in Redis, in minutes (default 24 hours). Reopening the same insight within that time returns the cached answer; `0` disables the cache. |
| `ai:ai_azure_deployment` | `AI__AI_AZURE_DEPLOYMENT` |  | string | The Azure deployment (often equal to the model used) |
| `ai:ai_azure_instance` | `AI__AI_AZURE_INSTANCE` |  | string | The Azure instance name you use (https://<ai_azure_instance>.openai.azure.ai) |
| `ai:enabled` | `AI__ENABLED` |  | string | Enable AI capabilities. Read by the code, not in default.json. |
| `ai:endpoint` | `AI__ENDPOINT` |  | string | Endpoint URL (empty means default cloud service) |
| `ai:insights_refresh_timeout` | `AI__INSIGHTS_REFRESH_TIMEOUT` | `60` | number | Time an AI insight generated by the platform's LLM (activity, forecast, history, summary of an entity or container) stays cached in the memory of each node, in minutes. A user can still force a refresh. |
| `ai:max_tokens` | `AI__MAX_TOKENS` | `30000` | number | Maximum length of the prompt sent to the LLM; despite its name, the prompt is truncated to this number of characters, not tokens. |
| `ai:model` | `AI__MODEL` |  | string | Model to be used for text generation (depending on type) |
| `ai:model_images` | `AI__MODEL_IMAGES` |  | string | Declared in default.json; no code reads it in this version. |
| `ai:timeout` | `AI__TIMEOUT` | `60000` | number | Declared in default.json; no code reads it in this version. The natural language query timeout reads `app:ai:timeout`. |
| `ai:token` | `AI__TOKEN` |  | string | Token for endpoint credentials. |
| `ai:type` | `AI__TYPE` | `mistralai` | string | AI type (`openai`, `mistralai` or `azureopenai`) |
| `ai:version` | `AI__VERSION` |  | string | The version of the deployment server (used for AzureAI) |
| `app:ai:timeout` | `APP__AI__TIMEOUT` | `60000` | number | Time, in ms, the platform waits for the AI model to answer a natural language query (NLQ) before failing with an error. Raise it for a slow or remote model. Read by the code, not in default.json. |

## Protect Sensitive Configurations {#protect-sensitive-configurations}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `protected_sensitive_config:ce_ee_toggle:enabled` | `PROTECTED_SENSITIVE_CONFIG__CE_EE_TOGGLE__ENABLED` | `true` | boolean | Enabled Enterpise/Community Editon toggle protection. |
| `protected_sensitive_config:connector_reset:enabled` | `PROTECTED_SENSITIVE_CONFIG__CONNECTOR_RESET__ENABLED` | `true` | boolean | Protect the reset of a connector's state, which then requires the capability to manage sensitive configurations. |
| `protected_sensitive_config:enabled` | `PROTECTED_SENSITIVE_CONFIG__ENABLED` | `true` | boolean | Enable Protect Sensitive Configurations. |
| `protected_sensitive_config:file_indexing:enabled` | `PROTECTED_SENSITIVE_CONFIG__FILE_INDEXING__ENABLED` | `true` | boolean | Enabled File Indexing protection. |
| `protected_sensitive_config:groups:enabled` | `PROTECTED_SENSITIVE_CONFIG__GROUPS__ENABLED` | `true` | boolean | Enabled Groups protection. |
| `protected_sensitive_config:groups:protected_names` | `PROTECTED_SENSITIVE_CONFIG__GROUPS__PROTECTED_NAMES` | `["Administrators","Connectors","Default"]` | list | List of protected Groups. |
| `protected_sensitive_config:markings:enabled` | `PROTECTED_SENSITIVE_CONFIG__MARKINGS__ENABLED` | `true` | boolean | Protect Markings. |
| `protected_sensitive_config:markings:protected_definitions` | `PROTECTED_SENSITIVE_CONFIG__MARKINGS__PROTECTED_DEFINITIONS` | `["TLP:CLEAR","TLP:GREEN","TLP:AMBER","TLP:AMBER+STRICT","TLP:RED","PAP:CLEAR","PAP:GREEN","PAP:AMBER","PAP:RED"]` | list | List of protected Markings definitions. |
| `protected_sensitive_config:platform_organization:enabled` | `PROTECTED_SENSITIVE_CONFIG__PLATFORM_ORGANIZATION__ENABLED` | `true` | boolean | Enabled main Platform Organization protection. |
| `protected_sensitive_config:roles:enabled` | `PROTECTED_SENSITIVE_CONFIG__ROLES__ENABLED` | `true` | boolean | Enabled Roles protection. |
| `protected_sensitive_config:roles:protected_names` | `PROTECTED_SENSITIVE_CONFIG__ROLES__PROTECTED_NAMES` | `["Administrator","Connector","Default"]` | list | List of protected Roles. |
| `protected_sensitive_config:rules:enabled` | `PROTECTED_SENSITIVE_CONFIG__RULES__ENABLED` | `true` | boolean | Enabled Rules protection. |

## Engines, Schedules and Managers {#engines-schedules-and-managers}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `activity_manager:enabled` | `ACTIVITY_MANAGER__ENABLED` | `true` | boolean | Enable/disable the activity manager. |
| `activity_manager:lock_key` | `ACTIVITY_MANAGER__LOCK_KEY` | `activity_manager_lock` | string | Lock key for the manager in Redis. |
| `app:task_scheduler:max_queues_breakdown` | `APP__TASK_SCHEDULER__MAX_QUEUES_BREAKDOWN` | `4` | number | Number of RabbitMQ queues that background tasks are spread over for processing by the workers. Read by the code, not in default.json. |
| `app:uri_deny_list` | `APP__URI_DENY_LIST` | `[]` | list | JSON array of URI patterns to block for all ingestion feeds. See Advanced feed configuration. |
| `catalog_manager:catalog_sync_remote_timeout` | `CATALOG_MANAGER__CATALOG_SYNC_REMOTE_TIMEOUT` | `30000` | number | Timeout of the download of a remote connector catalog by the catalog manager, in ms. Unset or invalid, the manager uses `app:request_timeout`, then 30 seconds. New after 7.260811.0-lts.1. |
| `catalog_manager:custom_catalog_refresh_endpoint_uri` | `CATALOG_MANAGER__CUSTOM_CATALOG_REFRESH_ENDPOINT_URI` |  | string | URI (`http://`, `https://` or `file://`) of a connector catalog that replaces the Filigran remote catalog as the catalog manager's source. Read only when the `DECOUPLING_VERSIONS` feature flag is enabled. New after 7.260811.0-lts.1. |
| `catalog_manager:enabled` | `CATALOG_MANAGER__ENABLED` | `true` | boolean | Enable/disable the catalog manager, which synchronizes the connector catalogs into the platform and upgrades the managed connectors to their latest catalog version. New after 7.260811.0-lts.1. |
| `catalog_manager:interval` | `CATALOG_MANAGER__INTERVAL` | `60000` | number | Interval between two catalog synchronizations, in ms. Once the embedded catalogs are synchronized without error, the manager skips further runs until the next restart. New after 7.260811.0-lts.1. |
| `catalog_manager:lock_key` | `CATALOG_MANAGER__LOCK_KEY` | `catalog_manager_lock` | string | Lock key for the manager in Redis, so that only one platform node runs it at a time. An empty value disables the manager. New after 7.260811.0-lts.1. |
| `connector_manager:batch_size` | `CONNECTOR_MANAGER__BATCH_SIZE` | `10000` | number | Maximum number of works the connector manager processes per connector at each run, both when forcing stale works to complete and when deleting the completed works older than `connector_manager:works_day_range`. |
| `connector_manager:enabled` | `CONNECTOR_MANAGER__ENABLED` | `true` | boolean | Enable/disable the connector manager. |
| `connector_manager:interval` | `CONNECTOR_MANAGER__INTERVAL` | `60000` | number | Interval to check the state of the works. |
| `connector_manager:lock_key` | `CONNECTOR_MANAGER__LOCK_KEY` | `connector_manager_lock` | string | Lock key for the manager in Redis. |
| `connector_manager:works_day_range` | `CONNECTOR_MANAGER__WORKS_DAY_RANGE` | `7` | number | Days range before considering the works as too old. |
| `data_sanity_manager:enabled` | `DATA_SANITY_MANAGER__ENABLED` | `true` | boolean | Enable/disable the data sanity manager, which runs the platform's data repair operations (such as fixing case-sensitive duplicated ids), scheduled or requested on demand. |
| `data_sanity_manager:interval` | `DATA_SANITY_MANAGER__INTERVAL` | `600000` | number | Interval, in ms, between two runs of the data sanity manager, which also picks up the operations requested on demand. |
| `data_sanity_manager:lock_key` | `DATA_SANITY_MANAGER__LOCK_KEY` | `data_sanity_manager_lock` | string | Lock key for the manager in Redis. |
| `data_sanity_manager:stale_running_threshold` | `DATA_SANITY_MANAGER__STALE_RUNNING_THRESHOLD` |  | string | Time, in ms, after which a data sanity operation still marked as running is considered stale (its node crashed or restarted) and may run again. Defaults to 24 hours; an invalid value falls back to it. Read by the code, not in default.json. |
| `exclusion_list_cache_build_manager:enabled` | `EXCLUSION_LIST_CACHE_BUILD_MANAGER__ENABLED` | `true` | boolean | Enable/disable the exclusion list cache build manager, which rebuilds the cache of exclusion lists after they change. |
| `exclusion_list_cache_build_manager:interval` | `EXCLUSION_LIST_CACHE_BUILD_MANAGER__INTERVAL` | `10000` | number | Interval, in ms, at which the manager checks whether the exclusion list cache must be rebuilt. |
| `exclusion_list_cache_build_manager:lock_key` | `EXCLUSION_LIST_CACHE_BUILD_MANAGER__LOCK_KEY` | `exclusion_list_cache_build_manager_lock` | string | Lock key for the manager in Redis. |
| `exclusion_list_cache_sync_manager:interval` | `EXCLUSION_LIST_CACHE_SYNC_MANAGER__INTERVAL` | `10000` | number | Interval at which a node checks whether its local cache of the exclusion lists is outdated and rebuilds it, in ms. |
| `exclusion_list_cache_sync_manager:lock_key` | `EXCLUSION_LIST_CACHE_SYNC_MANAGER__LOCK_KEY` | `exclusion_list_cache_sync_manager_lock` | string | Lock key for the manager in Redis, taken during each run. |
| `expiration_scheduler:enabled` | `EXPIRATION_SCHEDULER__ENABLED` | `true` | boolean | Enable/disable the scheduler. |
| `expiration_scheduler:interval` | `EXPIRATION_SCHEDULER__INTERVAL` | `300000` | number | Interval to check expired indicators (in ms) |
| `expiration_scheduler:lock_key` | `EXPIRATION_SCHEDULER__LOCK_KEY` | `expired_manager_lock` | string | Lock key for the scheduler in Redis. |
| `file_index_manager:enabled` | `FILE_INDEX_MANAGER__ENABLED` | `true` | boolean | Enable/disable the file indexing manager. |
| `file_index_manager:interval` | `FILE_INDEX_MANAGER__INTERVAL` | `60000` | number | Interval to check for new files. |
| `file_index_manager:lock_key` | `FILE_INDEX_MANAGER__LOCK_KEY` | `file_index_manager_lock` | string | Lock key for the manager in Redis, so that only one platform node indexes the imported files at a time. |
| `file_index_manager:stream_lock_key` | `FILE_INDEX_MANAGER__STREAM_LOCK_KEY` | `file_index_manager_stream_lock` | string | Stream lock key for the manager in Redis. |
| `garbage_collection_manager:batch_size` | `GARBAGE_COLLECTION_MANAGER__BATCH_SIZE` | `10000` | number | Number of trash elements to delete at once. |
| `garbage_collection_manager:deleted_retention_days` | `GARBAGE_COLLECTION_MANAGER__DELETED_RETENTION_DAYS` | `7` | number | Days after which elements in trash are deleted. |
| `garbage_collection_manager:enabled` | `GARBAGE_COLLECTION_MANAGER__ENABLED` | `true` | boolean | Enable/disable the trash manager. |
| `garbage_collection_manager:interval` | `GARBAGE_COLLECTION_MANAGER__INTERVAL` | `60000` | number | Interval to check for trash elements to delete. |
| `garbage_collection_manager:lock_key` | `GARBAGE_COLLECTION_MANAGER__LOCK_KEY` | `garbage_collection_manager_lock` | string | Lock key for the manager in Redis. |
| `garbage_collection_manager:redis_stream_garbage_frequency` | `GARBAGE_COLLECTION_MANAGER__REDIS_STREAM_GARBAGE_FREQUENCY` | `86400000` | number | Interval, in ms, at which the garbage collection manager deletes from file storage the large stream events offloaded there (see `redis:max_event_length`) once they have left the Redis stream. Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `history_manager:enabled` | `HISTORY_MANAGER__ENABLED` | `true` | boolean | Enable/disable the history manager. |
| `history_manager:include_inferences` | `HISTORY_MANAGER__INCLUDE_INFERENCES` | `true` | boolean | When `true`, the history manager also records the events of inferred knowledge (created by the rule engine) in the history. |
| `history_manager:lock_key` | `HISTORY_MANAGER__LOCK_KEY` | `history_manager_lock` | string | Lock key for the manager in Redis. |
| `hub_registration_manager:enabled` | `HUB_REGISTRATION_MANAGER__ENABLED` | `true` | boolean | Enable/disable the XTM Hub registration manager, which checks the registration of the platform with XTM Hub, fetches the XTM Hub news feed and cleans old news feed items. |
| `hub_registration_manager:interval` | `HUB_REGISTRATION_MANAGER__INTERVAL` | `3600000` | number | Interval, in ms, between two runs of the XTM Hub registration manager (connectivity check, news feed fetch and cleanup). |
| `hub_registration_manager:lock_key` | `HUB_REGISTRATION_MANAGER__LOCK_KEY` | `hub_registration_manager_lock` | string | Lock key for the manager in Redis. |
| `hub_registration_manager:news_feed_cleanup_interval_unit` | `HUB_REGISTRATION_MANAGER__NEWS_FEED_CLEANUP_INTERVAL_UNIT` | `days` | string | Unit of `hub_registration_manager:news_feed_cleanup_interval_value`, one of `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` or `years`. Another value stops the platform at startup. |
| `hub_registration_manager:news_feed_cleanup_interval_value` | `HUB_REGISTRATION_MANAGER__NEWS_FEED_CLEANUP_INTERVAL_VALUE` | `180` | number | Age beyond which XTM Hub news feed items are deleted from the platform, in the unit of `hub_registration_manager:news_feed_cleanup_interval_unit`. Must be a positive number, or the platform stops at startup. |
| `import_csv_built_in_connector:bulk_creation_size` | `IMPORT_CSV_BUILT_IN_CONNECTOR__BULK_CREATION_SIZE` | `5000` | number | Number of CSV lines the built-in CSV import connector reads and converts per batch. Lower it to reduce memory use on large files. |
| `import_csv_built_in_connector:enabled` | `IMPORT_CSV_BUILT_IN_CONNECTOR__ENABLED` | `true` | boolean | Enable/disable the csv import connector. |
| `import_csv_built_in_connector:interval` | `IMPORT_CSV_BUILT_IN_CONNECTOR__INTERVAL` | `10000` | number | Declared in default.json; no code reads it in this version. |
| `import_csv_built_in_connector:validate_before_import` | `IMPORT_CSV_BUILT_IN_CONNECTOR__VALIDATE_BEFORE_IMPORT` | `false` | boolean | Validates the bundle before importing. |
| `indicator_decay_manager:batch_size` | `INDICATOR_DECAY_MANAGER__BATCH_SIZE` | `10000` | number | Number of indicators handled by the manager. |
| `indicator_decay_manager:enabled` | `INDICATOR_DECAY_MANAGER__ENABLED` | `true` | boolean | Enable/disable the indicator decay manager. |
| `indicator_decay_manager:interval` | `INDICATOR_DECAY_MANAGER__INTERVAL` | `60000` | number | Interval to check for indicators to update. |
| `indicator_decay_manager:lock_key` | `INDICATOR_DECAY_MANAGER__LOCK_KEY` | `indicator_decay_manager_lock` | string | Lock key for the manager in Redis. |
| `ingestion_health_manager:enabled` | `INGESTION_HEALTH_MANAGER__ENABLED` | `true` | boolean | Enable/disable the ingestion health manager, which evaluates the health of connectors, feeds (RSS, CSV, JSON, TAXII) and synchronizers and records an activity event when it changes. Until 7.261109, read only when the `INGESTION_HEALTH` feature flag is enabled; from 7.261117 the manager runs by default. New after 7.260811.0-lts.1. |
| `ingestion_health_manager:interval` | `INGESTION_HEALTH_MANAGER__INTERVAL` | `60000` | number | Interval between two evaluations of the ingestion health, in ms. New after 7.260811.0-lts.1. |
| `ingestion_health_manager:lock_key` | `INGESTION_HEALTH_MANAGER__LOCK_KEY` | `ingestion_health_manager_lock` | string | Lock key for the manager in Redis, so that only one platform node runs it at a time. New after 7.260811.0-lts.1. |
| `ingestion_manager:csv_feed:min_interval_minutes` | `INGESTION_MANAGER__CSV_FEED__MIN_INTERVAL_MINUTES` | `5` | number | Minimum interval before requesting again same CSV Feed. |
| `ingestion_manager:enabled` | `INGESTION_MANAGER__ENABLED` | `true` | boolean | Enable/disable the ingestion manager. |
| `ingestion_manager:feed:request_timeout` | `INGESTION_MANAGER__FEED__REQUEST_TIMEOUT` | `300000` | number | Timeout, in ms, of the HTTP requests sent to feed sources (RSS, TAXII, CSV and JSON feeds). Raise it for slow sources or very large responses. |
| `ingestion_manager:interval` | `INGESTION_MANAGER__INTERVAL` | `30000` | number | Interval to check for new data in remote feeds. |
| `ingestion_manager:lock_key` | `INGESTION_MANAGER__LOCK_KEY` | `ingestion_manager_lock` | string | Lock key for the manager in Redis. |
| `ingestion_manager:rss_feed:min_interval_minutes` | `INGESTION_MANAGER__RSS_FEED__MIN_INTERVAL_MINUTES` | `5` | number | Minimum interval before requesting again same RSS Feed. |
| `ingestion_manager:rss_feed:user_agent` | `INGESTION_MANAGER__RSS_FEED__USER_AGENT` | `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0` | string | User agent to use for RSS Feed requests. |
| `ingestion_manager:taxii_feed:limit_per_request` | `INGESTION_MANAGER__TAXII_FEED__LIMIT_PER_REQUEST` | `0` | number | Number of objects asked per request to a TAXII collection (`limit` parameter). `0` sends no limit and lets the server decide; set it when a server returns pages too large or too small. |
| `ingestion_manager:uri_deny_list` | `INGESTION_MANAGER__URI_DENY_LIST` |  | list | List of hosts that ingestion feeds (TAXII, JSON, CSV) may not target, added to `app:uri_deny_list`. Each entry is a hostname (`mydomain.com`), a wildcard (`*.mydomain.com`, which also matches `mydomain.com`) or a host and port (`localhost:4200`). Read by the code, not in default.json. |
| `notification_manager:enabled` | `NOTIFICATION_MANAGER__ENABLED` | `true` | boolean | Enable/disable the notification manager. |
| `notification_manager:interval` | `NOTIFICATION_MANAGER__INTERVAL` | `10000` | number | Interval to push notifications. |
| `notification_manager:lock_digest_key` | `NOTIFICATION_MANAGER__LOCK_DIGEST_KEY` | `notification_digest_manager_lock` | string | Lock digest key for the manager in Redis. |
| `notification_manager:lock_live_key` | `NOTIFICATION_MANAGER__LOCK_LIVE_KEY` | `notification_live_manager_lock` | string | Lock live key for the manager in Redis. |
| `notification_manager:max_digest_content_size` | `NOTIFICATION_MANAGER__MAX_DIGEST_CONTENT_SIZE` |  | string | Maximum total size, in bytes, of the events gathered into one notification digest (500 MB by default). Beyond it the digest is truncated and a warning is logged; lower it if digests exhaust the platform memory. Read by the code, not in default.json. |
| `pir_manager:enabled` | `PIR_MANAGER__ENABLED` | `true` | boolean | Enable/disable the PIR manager, which reads the event stream and flags the entities whose relationships match a Priority Intelligence Requirement. Requires an Enterprise Edition licence. |
| `pir_manager:interval` | `PIR_MANAGER__INTERVAL` | `30000` | number | Interval between two runs of the PIR manager over the new stream events, in ms. |
| `pir_manager:lock_key` | `PIR_MANAGER__LOCK_KEY` | `pir_manager_lock` | string | Lock key for the manager in Redis, so that only one platform node runs it at a time. An empty value disables the manager. |
| `pir_manager:max_concurrency` | `PIR_MANAGER__MAX_CONCURRENCY` | `5` | number | Number of PIRs the PIR manager processes in parallel at each run. |
| `pir_manager:stream_batch_size` | `PIR_MANAGER__STREAM_BATCH_SIZE` | `7500` | number | Number of stream events the PIR manager reads in one batch for each PIR. Lower it to reduce memory use, raise it to catch up faster on a busy stream. |
| `platform_usage_metrics_manager:enabled` | `PLATFORM_USAGE_METRICS_MANAGER__ENABLED` | `false` | boolean | Enable/disable the manager that collects storage and ingestion usage metrics. Disabled by default; while disabled, these metrics are reported as `null` by `/health` and not exported to Prometheus. Interval and TTL are shared with `app:health_monitoring:usage_metrics_interval`. New after 7.260811.0-lts.1. |
| `platform_usage_metrics_manager:lock_key` | `PLATFORM_USAGE_METRICS_MANAGER__LOCK_KEY` | `platform_usage_metrics_manager_lock` | string | Lock key for the manager in Redis. New after 7.260811.0-lts.1. |
| `playbook_manager:cron_max_size` | `PLAYBOOK_MANAGER__CRON_MAX_SIZE` | `500` | number | Maximum number of entities a scheduled playbook processes per run, one at a time, when its trigger does not send all results in a single bundle. Raise it if a scheduled playbook must cover more entities per run. |
| `playbook_manager:debug_id_list` | `PLAYBOOK_MANAGER__DEBUG_ID_LIST` |  | string | List of playbook ids for which the playbook manager logs, at info level, each event it processes and each step it runs. From 7.261117, the entry `*` logs every playbook. Set it to troubleshoot a playbook, then remove it. Read by the code, not in default.json. |
| `playbook_manager:enabled` | `PLAYBOOK_MANAGER__ENABLED` | `true` | boolean | Enable/disable the playbook manager. |
| `playbook_manager:interval` | `PLAYBOOK_MANAGER__INTERVAL` | `60000` | number | Interval to check new playbooks. |
| `playbook_manager:lock_cron_key` | `PLAYBOOK_MANAGER__LOCK_CRON_KEY` | `playbook_cron_manager_lock` | string | Lock key in Redis for the part of the playbook manager that runs scheduled playbooks. |
| `playbook_manager:lock_key` | `PLAYBOOK_MANAGER__LOCK_KEY` | `playbook_manager_lock` | string | Lock key for the manager in Redis. |
| `playbook_manager:log_max_size` | `PLAYBOOK_MANAGER__LOG_MAX_SIZE` | `10000` | number | Maximum number of characters of a step's bundle or patch shown in the execution logs of a playbook; longer content is truncated. |
| `playbook_manager:realtime_priority` | `PLAYBOOK_MANAGER__REALTIME_PRIORITY` | `false` | boolean | When `true`, the workers consume the playbook queues in the realtime priority group instead of the default group, like forms and drafts. |
| `publisher_manager:buffering_seconds` | `PUBLISHER_MANAGER__BUFFERING_SECONDS` | `60` | number | Buffering windows used (in seconds) |
| `publisher_manager:enable_buffering` | `PUBLISHER_MANAGER__ENABLE_BUFFERING` | `true` | boolean | Enable/disable buffering of messages. |
| `publisher_manager:enabled` | `PUBLISHER_MANAGER__ENABLED` | `true` | boolean | Enable/disable the publisher manager. |
| `publisher_manager:interval` | `PUBLISHER_MANAGER__INTERVAL` | `10000` | number | Interval to send notifications / digests (in ms) |
| `publisher_manager:lock_key` | `PUBLISHER_MANAGER__LOCK_KEY` | `publisher_manager_lock` | string | Lock key for the manager in Redis. |
| `publisher_manager:webhook_timeout` | `PUBLISHER_MANAGER__WEBHOOK_TIMEOUT` | `300000` | number | Timeout of an HTTP call to a webhook notifier, in ms. |
| `retention_manager:batch_size` | `RETENTION_MANAGER__BATCH_SIZE` | `1500` | number | Maximum number of elements a retention rule deletes at each run of the retention manager. The rest is deleted at the next runs. Read by the code, not in default.json. |
| `retention_manager:enabled` | `RETENTION_MANAGER__ENABLED` | `true` | boolean | Enable/disable the retention manager. |
| `retention_manager:interval` | `RETENTION_MANAGER__INTERVAL` | `30000` | number | Interval to check items to be deleted (in ms) |
| `retention_manager:lock_key` | `RETENTION_MANAGER__LOCK_KEY` | `retention_manager_lock` | string | Lock key for the manager in Redis. |
| `retention_manager:max_deletion_concurrency` | `RETENTION_MANAGER__MAX_DELETION_CONCURRENCY` | `2` | number | Number of elements the retention manager deletes in parallel. Read by the code, not in default.json. |
| `rule_engine:enabled` | `RULE_ENGINE__ENABLED` | `true` | boolean | Enable/disable the rule engine. |
| `rule_engine:lock_key` | `RULE_ENGINE__LOCK_KEY` | `rule_engine_lock` | string | Lock key of the engine in Redis. |
| `rule_engine:max_explanations_per_rule` | `RULE_ENGINE__MAX_EXPLANATIONS_PER_RULE` | `100` | number | Maximum number of explanations a rule records on one inferred entity or relationship; once reached, new explanations from that rule are not added. Limits the size of heavily inferred elements. Read by the code, not in default.json. |
| `sync_manager:enabled` | `SYNC_MANAGER__ENABLED` | `true` | boolean | Enable/disable the sync manager. |
| `sync_manager:file_fetch_timeout` | `SYNC_MANAGER__FILE_FETCH_TIMEOUT` | `300000` | number | Timeout, in ms, to download from the remote platform a file attached to a synchronized entity or an image embedded in its description. A file that takes longer is skipped. |
| `sync_manager:interval` | `SYNC_MANAGER__INTERVAL` | `10000` | number | Interval to check new sync feeds to consume (in ms) |
| `sync_manager:lock_key` | `SYNC_MANAGER__LOCK_KEY` | `sync_manager_lock` | string | Lock key for the manager in Redis. |
| `task_scheduler:enabled` | `TASK_SCHEDULER__ENABLED` | `true` | boolean | Enable/disable the task scheduler. |
| `task_scheduler:interval` | `TASK_SCHEDULER__INTERVAL` | `10000` | number | Interval to check new task to do (in ms) |
| `task_scheduler:lock_key` | `TASK_SCHEDULER__LOCK_KEY` | `task_manager_lock` | string | Lock key for the scheduler in Redis. |
| `task_scheduler:max_concurrency` | `TASK_SCHEDULER__MAX_CONCURRENCY` | `4` | number | Number of background tasks the task manager processes in parallel. Read by the code, not in default.json. |
| `telemetry_manager:console_debug` | `TELEMETRY_MANAGER__CONSOLE_DEBUG` | `false` | boolean | When `true`, the telemetry manager also prints each telemetry export to the console, so you can see what the platform collects. Read by the code, not in default.json. |
| `telemetry_manager:enabled` | `TELEMETRY_MANAGER__ENABLED` | `true` | boolean | Enable/disable the telemetry manager, which collects usage metrics of the platform and exports them to local files and to Filigran (`telemetry.filigran.io`). Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `telemetry_manager:interval` | `TELEMETRY_MANAGER__INTERVAL` | `60000` | number | Interval between two attempts of a node to take the telemetry lock and start the manager, in ms. Once started, the manager computes its metrics every 30 minutes and exports them every 6 hours, whatever this value. Read by the code, not in default.json. |
| `telemetry_manager:lock_key` | `TELEMETRY_MANAGER__LOCK_KEY` | `telemetry_manager_lock` | string | Lock key for the manager in Redis. |
| `telemetry_manager:tags` | `TELEMETRY_MANAGER__TAGS` |  | string | Comma-separated deployment tags (for example `saas,eu-west`) attached to every telemetry export as `filigran.telemetry.tags`, normalized to lowercase and sorted. |
| `workflow_status_cleanup_manager:enabled` | `WORKFLOW_STATUS_CLEANUP_MANAGER__ENABLED` | `true` | boolean | Enable/disable the workflow status cleanup manager, which deletes the statuses removed from a workflow once their grace period has passed and no entity uses them. Behind the `ENTITIES_WORKFLOW` feature flag. Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `workflow_status_cleanup_manager:interval` | `WORKFLOW_STATUS_CLEANUP_MANAGER__INTERVAL` | `86400000` | number | Interval, in ms, between two runs of the workflow status cleanup manager. Behind the `ENTITIES_WORKFLOW` feature flag. Read by the code, not in default.json. New after 7.260811.0-lts.1. |
| `workflow_status_cleanup_manager:lock_key` | `WORKFLOW_STATUS_CLEANUP_MANAGER__LOCK_KEY` | `workflow_status_cleanup_manager_lock` | string | Lock key for the manager in Redis. Behind the `ENTITIES_WORKFLOW` feature flag. Read by the code, not in default.json. New after 7.260811.0-lts.1. |

## Logging {#logging}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:event_loop_logs:enabled` | `APP__EVENT_LOOP_LOGS__ENABLED` | `false` | boolean | Declared in default.json; no code reads it in this version. |
| `app:event_loop_logs:max_time` | `APP__EVENT_LOOP_LOGS__MAX_TIME` | `1000` | number | Declared in default.json; no code reads it in this version. |
| `app:performance_logger` | `APP__PERFORMANCE_LOGGER` | `false` | boolean | Logs every API call, with its duration, size and memory usage, at info level. Use it to analyze performance; it produces a lot of logs. |
| `app:stream_full_debug_mode` | `APP__STREAM_FULL_DEBUG_MODE` | `false` | boolean | Logs every event pushed to the stream, with its full content, at info level. Use it only to debug; it produces a lot of logs. Read by the code, not in default.json. |

## Technical {#technical}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `migrations:reindex_targets_rel:bulk_timeout` | `MIGRATIONS__REINDEX_TARGETS_REL__BULK_TIMEOUT` | `30m` | string | Timeout of each bulk request of the migration that re-indexes the `targets` relationships of regions, countries and sectors (for example `30m`). Read only when that migration runs during an upgrade. Read by the code, not in default.json. |
| `migrations:reindex_targets_rel:max_bulk_operations` | `MIGRATIONS__REINDEX_TARGETS_REL__MAX_BULK_OPERATIONS` | `1000` | number | Number of operations per bulk request of the migration that re-indexes the `targets` relationships of regions, countries and sectors. Lower it if that migration fails on timeouts. Read by the code, not in default.json. |
| `migrations:reindex_targets_rel:max_concurrency` | `MIGRATIONS__REINDEX_TARGETS_REL__MAX_CONCURRENCY` | `2` | number | Number of bulk requests sent in parallel by the migration that re-indexes the `targets` relationships of regions, countries and sectors. Read by the code, not in default.json. |
| `node_env` | `NODE_ENV` |  | string | Execution environment of the platform. It selects the configuration file `config/<env>.json` loaded over default.json, and any value other than `production` turns on development mode. Keep `production`. Read by the code, not in default.json. |
| `platform_id` | `PLATFORM_ID` |  | string | Forces the identifier of the platform (a UUID). A new platform is created with it; on an existing platform, the identifier is switched to it at start if different. Read by the code, not in default.json. |

## Keys built at run time {#keys-built-at-run-time}

The code builds these names from another setting, such as the name of a secret or of a credentials provider: replace each `<name>` with yours.

- `<name>:credentials_provider:<name>:app_id`
- `<name>:credentials_provider:<name>:default_splitter`
- `<name>:credentials_provider:<name>:field_targets`
- `<name>:credentials_provider:<name>:object`
- `<name>:credentials_provider:<name>:safe`
- `<name>:credentials_provider:<name>:uri`
- `<name>:credentials_provider:field_targets`
- `<name>:credentials_provider:https_cert:ca`
- `<name>:credentials_provider:https_cert:crt`
- `<name>:credentials_provider:https_cert:key`
- `<name>:credentials_provider:https_cert:reject_unauthorized`
- `<name>:credentials_provider:selector`
- `<name>:value`
- `providers:<name>`
- `secrets:<name>:value`
