# 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.260309-lts/reference/opencti/feature-flags/
- 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: 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 3 feature flags of OpenCTI 7.260309.0-lts.8: features still in development, hidden until `app:enabled_dev_features` lists them (see the [configuration reference](https://filigran.io/docs/lts/7.260309-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` |
| `DRAFT_METADATA` | Description and other metadata fields on drafts, in the draft creation forms, the import dialogs and the list of drafts. | Front (6 files) | Parts of `DraftCreation`, `DraftWorkspaceDialogCreation`, `Drafts`, `ImportFilesOptions`, `LaunchImportDialog`, `StixCoreObjectFilesAndHistory` |
| `DRAFT_WORKFLOW` | A workflow for drafts, set in the **Workflow** tab of the Draft entity type in **Settings > Customization > Entity types**. | Back end (1 file), front (5 files) | Screens `/dashboard/settings/customization/entity_types/:subTypeId/workflow` |

## 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","DRAFT_METADATA"]'` | 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 |
