# 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/lts/7.260309-lts/reference/opencti/configuration/
- Products: OpenCTI 7.260309.0-lts.8
- OpenCTI line: 7.260309 LTS · 7.260309.0-lts.8
- For: developers, platform engineers, administrators
- Type: Reference
- Generated from the OpenCTI 7.260309.0-lts.8 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/lts/7.260309-lts/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.

356 keys in OpenCTI 7.260309.0-lts.8. Generated from OpenCTI-Platform/opencti@22c7908.

## 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: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: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` | `3000000` | number | GraphQL armor protection cost limit. |
| `app:graphql:armor_protection:disabled` | `APP__GRAPHQL__ARMOR_PROTECTION__DISABLED` | `true` | 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`. |
| `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: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:max_payload_body_size` | `APP__MAX_PAYLOAD_BODY_SIZE` | `50mb` | 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: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:max_requests` | `APP__RATE_PROTECTION__MAX_REQUESTS` | `10000` | number | 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`. |
| `app:rate_protection:time_window` | `APP__RATE_PROTECTION__TIME_WINDOW` | `1` | number | Time window for rate protection in seconds. Unset, `1`, and from 7.261119 `60` with `app:http:secure_by_default`. |
| `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` | `false` | 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`. |
| `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. |

## 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: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: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_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: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` | `workbench` | 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` | `true` | 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. |
| `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: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. |

## 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:openaev_reject_unauthorized` | `XTM__OPENAEV_REJECT_UNAUTHORIZED` | `false` | boolean | Declared in default.json; no code reads it in this version. |
| `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_check` | `ELASTICSEARCH__ENGINE_CHECK` | `true` | boolean | Disable Search Engine compatibility matrix verification. __Caution__: OpenCTI was developed in compliance with the compatibility matrix. Setting the parameter to `false` may result in negative impacts. Until 7.261030 only: from 7.261109 the platform ignores it and logs a warning. |
| `elasticsearch:engine_selector` | `ELASTICSEARCH__ENGINE_SELECTOR` | `auto` | string | `elk` or `opensearch`, default is `auto`, please put `elk` if you use token auth. Until 7.261030 only: from 7.261109 the platform ignores it, logs a warning, and reads `elasticsearch:engine_client` instead. |
| `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_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:search_fuzzy` | `ELASTICSEARCH__SEARCH_FUZZY` | `false` | boolean | Search will include words not starting with the search keyword. |
| `elasticsearch:search_wildcard_prefix` | `ELASTICSEARCH__SEARCH_WILDCARD_PREFIX` | `false` | boolean | Search includes words with automatic fuzzy comparison. |
| `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: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_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: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` | `false` | 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` | `false` | 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: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:hostname` | `SMTP__HOSTNAME` | `localhost` | string | SMTP Server hostname. |
| `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` | `false` | boolean | Enable TLS certificate check of the SMTP server. Unset, it is `false`, and from 7.261109 it follows `tls:reject_unauthorized`. |
| `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: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. |
| `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. |
| `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. |
| `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. |
| `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_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: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. |
| `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. |
| `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. |
| `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: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. |
| `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: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: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. |

## 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. |

## 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. |

## Other app settings {#other-app-settings}

| Key | Environment variable | Default | Type | Description |
| --- | --- | --- | --- | --- |
| `app:map_tile_server_dark` | `APP__MAP_TILE_SERVER_DARK` | `https://map.opencti.io/styles/filigran-dark3/{z}/{x}/{y}.png` | string |  |
| `app:map_tile_server_light` | `APP__MAP_TILE_SERVER_LIGHT` | `https://map.opencti.io/styles/filigran-light3/{z}/{x}/{y}.png` | string |  |
| `app:session_secret` | `APP__SESSION_SECRET` |  | string | 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`
