# OpenCTI feature flags

> Every feature flag of OpenCTI in this version, the feature it hides, what it gates and how to turn it on, generated from the OpenCTI source code.

- URL: https://filigran.io/docs/lts/7.260811-lts/reference/opencti/feature-flags/
- Products: OpenCTI 7.260811.0-lts.1
- OpenCTI line: 7.260811 LTS · 7.260811.0-lts.1
- For: developers, platform engineers, administrators
- Type: Reference
- Generated from the OpenCTI 7.260811.0-lts.1 source code

**Diagram: A flag listed in app:enabled_dev_features turns its feature in development on for the whole platform, in the back end and the front**

- Turned on by: app:enabled_dev_features (Or APP__ENABLED_DEV_FEATURES, read at start), Elasticsearch 7.12 or later (Sets RUNTIME_SORTING)
- OpenCTI: Back end (Checks each flag in the code), Front (Reads the list from the settings)
- Gated: Feature in development (Unsupported, leave off in production)

Connections:

- app:enabled_dev_features → Back end: list of flags
- Elasticsearch 7.12 or later → Back end: platform adds
- Back end → Front: platform settings
- Back end → Feature in development: gates
- Front → Feature in development: gates screens

The 5 feature flags of OpenCTI 7.260811.0-lts.1: features still in development, hidden until `app:enabled_dev_features` lists them (see the [configuration reference](https://filigran.io/docs/lts/7.260811-lts/reference/opencti/configuration/)). Reserved to development and not supported: a flagged feature can change or disappear in any release, so leave flags off in production; the guides describe the platform without them, and a feature is documented when a release removes its flag.

## Feature flags {#feature-flags}

| Flag | Hides | Checked in | Gates |
| --- | --- | --- | --- |
| `ACCESS_RESTRICTION_CAN_USE` | Adds a **Use** access right between view and edit on restricted entities and organizations, and limits the author and authorized-member pickers to the identities the user can use. | Back end (1 file), front (2 files) | Parts of `AuthorizedMembersField`, `CreatedByField` |
| `CUSTOM_FIELDS` | Custom fields, defined in **Settings > Taxonomies > Custom fields** and added to entity types, with their values in entity forms, overviews, filters and playbooks (7.260811; public from 7.261109). | Back end (6 files), front (3 files) | Queries `customFieldDefinition`, `customFieldDefinitions`, `customFieldDefinitionsForEntityType`<br>Mutations `customFieldDefinitionAdd`, `customFieldDefinitionAddEntityType`, `customFieldDefinitionDelete`, `customFieldDefinitionFieldPatch`, `customFieldDefinitionRemoveEntityType`, `customFieldDefinitionUpdateEntityType`<br>API fields `customFieldValues` of `CaseIncident`<br>Attributes `custom_field_values`<br>Screens `/dashboard/settings/vocabularies/custom_fields` |
| `DATA_SANITY_MANAGER` | The **Health** screen in **Data > Health**, listing the operations of the data sanity manager (the manager itself runs without the flag). | Front (2 files) | Screens `/dashboard/data/health`, `/dashboard/data/health/operations` |
| `ENGINE_MONITORING` | A background check of the search engine every minute that logs its cluster health, node and thread pool statistics. | Back end (1 file) | Back end behaviour in `engine-monitoring` |
| `INGESTION_FEED_LOGS` | A **Logs** tab on TAXII feeds, listing the entries of their ingestion runs. | Back end (1 file), front (1 file) | Queries `ingestionTaxiiLogs`<br>API fields `ingestionLogs` of `IngestionTaxii`<br>Parts of `FeedDetail` |

## Turn a flag on {#turn-a-flag-on}

A flag turns its feature on for the whole platform; no flag is set per user or per organization.

| Setting | Example | Effect |
| --- | --- | --- |
| `app:enabled_dev_features` | `[]` | The list of flags to turn on, in the platform configuration file. Read once when the platform starts: restart it after a change. The front reads the same list from the platform settings. |
| `APP__ENABLED_DEV_FEATURES` | `'["ACCESS_RESTRICTION_CAN_USE","CUSTOM_FIELDS"]'` | The same list as an environment variable, written as a JSON array. |
| `*` | `'["*"]'` | Turns every flag on, in the back end and the front, including the flags of features not listed here. |

## Flags the platform sets by itself {#flags-the-platform-sets-by-itself}

The platform adds these to the flags the front reads, from what it detects itself; listing one in `app:enabled_dev_features` also turns it on in the front, but not in the back end.

| Flag | Turns on | Checked in |
| --- | --- | --- |
| `RUNTIME_SORTING` | Sorting lists on fields computed at query time, turned on by the platform when the search engine is Elasticsearch 7.12 or later. The `*` value of `app:enabled_dev_features` also turns it on in the front. | Front |
