---
url: https://docs.sysreptor.com/setup/configuration.md
---
# Configuration

`app.env` (located in `deploy` directory) controls the behaviour of your SysReptor installation.
[Server settings](#server-settings) are defined in `app.env` and passed as environment variables to the SysReptor docker container.
[Application settings](#application-settings) can be configured in `app.env` or via the settings page in the web interface.

After making changes, go to `sysreptor/deploy` and restart the containers:

```shell
docker compose up -d
```

## Server Settings

### Django Secret Key

Django server secret key (see https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-SECRET\_KEY).
Make sure this key remains secret.

```shell title="Generate random secret key:"
printf "SECRET_KEY=$(openssl rand -base64 64 | tr -d '\r\n=')\n"
```

```dotenv title="Example (regenerate this value!):"
SECRET_KEY="TODO-change-me-Z6cuMithzO0fMn3ZqJ7nTg0YJznoHiJXoJCNngQM4Kqzzd3fiYKdVx9ZidvTzqsm"
```

If you renew the Django secret key, all existing sessions terminate and links for setting new passwords (e.g., from password reset emails) are invalidated.

### Data Encryption at Rest

Encrypt data at rest by configuring an encryption key. This will encrypt sensitive data in your database and files uploaded in your notes (~~except images~~, images are also encrypted).

Database and file storage administrators cannot access encrypted data. The key is held in the web application. Data encryption at rest does not help against malicious actors with access to the web server.

You have to define one `DEFAULT_ENCRYPTION_KEY_ID` which will be used for data encryption. However, you can rotate your keys by defining multiple keys in `ENCRYPTION_KEYS`.\
All specified keys are used for decrypting stored data.

Note that the `DEFAULT_ENCRYPTION_KEY_ID` must be part of `ENCRYPTION_KEYS`.

```shell title="Generate random encryption keys:"
KEY_ID=$(uuidgen | tr -d '\r\n') && printf "ENCRYPTION_KEYS=[{\"id\": \"${KEY_ID}\", \"key\": \"$(openssl rand -base64 32 | tr -d '\r\n')\", \"cipher\": \"AES-GCM\", \"revoked\": false}]\nDEFAULT_ENCRYPTION_KEY_ID=\"${KEY_ID}\"\n"
```

```dotenv title="Example (regenerate these values!):"
ENCRYPTION_KEYS='[{"id": "TODO-change-me-unique-key-id-5cdda4c0-a16c-4ae2-8a16-aa2ff258530d", "key": "256 bit (32 byte) base64 encoded AES key", "cipher": "AES-GCM", "revoked": false}]'
DEFAULT_ENCRYPTION_KEY_ID="TODO-change-me-unique-key-id-5cdda4c0-a16c-4ae2-8a16-aa2ff258530d"
```

### Debug mode

Debug mode enables Django's debug toolbar and stack traces. Do not use debug mode in production environments.

```dotenv title="Example:"
DEBUG=off
```

### Browsable API

Enable the Django REST Framework browsable API interface for debugging and development purposes. The browsable API is enabled by default in debug mode.

```dotenv title="Example:"
ENABLE_BROWSABLE_API=off
```

### Allowed Hosts

Comma-separated allowed hostnames/domain names for this installation. This setting might resolve issues with failing WebSocket connections.

In production environments, `ALLOWED_HOSTS` must be set to your domain name(s). If left unset, any host header is accepted, which may expose your installation to security vulnerabilities.

```dotenv title="Example:"
ALLOWED_HOSTS="sysreptor.example.com,sysreptor.example.local"
```

::: warning Avoid wildcards
A value with a leading dot (e.g. `.example.com`) is a wildcard that matches the domain and all its subdomains.
Every host header matching the wildcard is accepted, including subdomains you do not control.

Some links are built from the host header of the incoming request, most notably the confirmation link in password reset emails.
An attacker who can send a request with a host header matching your wildcard can therefore trigger a password reset email that contains a link (including the valid reset token) pointing to a host they control.
If the user clicks it, the token is leaked and their account can be taken over.

List your exact hostnames instead of using a wildcard.
:::

### FIDO2/WebAuthn

If you want to use FIDO2/WebAuthn for MFA, you have to define the hostname ([WebAuthn Relying Party ID](https://www.w3.org/TR/webauthn-2/#relying-party-identifier)) of your installation.

```dotenv title="Example:"
MFA_FIDO2_RP_ID="sysreptor.example.com"
```

### License Key

License key for SysReptor Professional.

```dotenv title="Example:"
LICENSE="your-license-key"
```

### S3 Storage

Uploaded files and images can be stored in an S3 bucket. Files are stored on the filesystem in a docker volume by default. If data at rest encryption is configured, all uploaded files (incl. images) are encrypted.

`DEFAULT_S3_*` settings to apply to all file storages. It is possible to configure different settings per storage.

```dotenv title="Global storage configuration: store everything in S3 bucket"
DEFAULT_STORAGE="s3"  # Default: "filesystem"
DEFAULT_S3_ACCESS_KEY="access-key"
DEFAULT_S3_SECRET_KEY="secret-key"
DEFAULT_S3_SESSION_TOKEN="session-token"  # optional
DEFAULT_S3_BUCKET_NAME="bucket-name"
DEFAULT_S3_ENDPOINT_URL="endpoint-url"
```

```dotenv title="Uploaded file storage configuration"
UPLOADED_FILE_STORAGE="s3"  # Default: "filesystem"
UPLOADED_FILE_S3_ACCESS_KEY="access-key"
UPLOADED_FILE_S3_SECRET_KEY="secret-key"
UPLOADED_FILE_S3_SESSION_TOKEN="session-token"  # optional
UPLOADED_FILE_S3_BUCKET_NAME="bucket-name"
UPLOADED_FILE_S3_ENDPOINT_URL="endpoint-url"
UPLOADED_FILE_LOCATION="uploadedfiles"
```

```dotenv title="Uploaded image storage configuration"
UPLOADED_IMAGE_STORAGE="s3"  # Default: "filesystem"
UPLOADED_IMAGE_S3_ACCESS_KEY="access-key"
UPLOADED_IMAGE_S3_SECRET_KEY="secret-key"
UPLOADED_IMAGE_S3_SESSION_TOKEN="session-token"  # optional
UPLOADED_IMAGE_S3_BUCKET_NAME="bucket-name"
UPLOADED_IMAGE_S3_ENDPOINT_URL="endpoint-url"
UPLOADED_IMAGE_LOCATION="uploadedimages"
```

```dotenv title="Uploaded asset storage configuration"
UPLOADED_ASSET_STORAGE="s3"  # Default: "filesystem"
UPLOADED_ASSET_S3_ACCESS_KEY="access-key"
UPLOADED_ASSET_S3_SECRET_KEY="secret-key"
UPLOADED_ASSET_S3_SESSION_TOKEN="session-token"  # optional
UPLOADED_ASSET_S3_BUCKET_NAME="bucket-name"
UPLOADED_ASSET_S3_ENDPOINT_URL="endpoint-url"
UPLOADED_ASSET_LOCATION="uploadedasset"
```

Archived project files can also be uploaded to an S3 bucket. Archives are stored on the filesystem in a docker volume by default.

```dotenv title="Archived file storage configuratio"
ARCHIVED_FILE_STORAGE="s3"  # Default: "filesystem"
ARCHIVED_FILE_S3_ACCESS_KEY="access-key"
ARCHIVED_FILE_S3_SECRET_KEY="secret-key"
ARCHIVED_FILE_S3_SESSION_TOKEN="session-token"  # optional
ARCHIVED_FILE_S3_BUCKET_NAME="bucket-name"
ARCHIVED_FILE_S3_ENDPOINT_URL="endpoint-url"
ARCHIVED_FILE_LOCATION="archivedfiles"
```

### Emails

SysReptor sends emails for password resets. Configure the SMTP server to use for sending emails.
See https://docs.djangoproject.com/en/stable/ref/settings/#email-host

```dotenv title="Email settings"
EMAIL_HOST=mail.example.com
EMAIL_PORT=587
EMAIL_USE_TLS=on
EMAIL_HOST_USER=username
EMAIL_HOST_PASSWORD=password
DEFAULT_FROM_EMAIL=sysreptor@example.com
```

To test your email settings, you can run the following command:

```shell title="Send test email"
docker compose run --rm --no-TTY app python3 manage.py sendtestemail <your-email@example.com>
```

### Backup Key

The backup key is used for creating backups via the [web interface](/setup/backups#create-backups-via-web-interface) or the [REST API](/setup/backups#create-backups-via-api). The key should be random and must have 20 or more characters.\
Make sure this key remains secret.

```shell title="Generate random backup key:"
printf "BACKUP_KEY=$(openssl rand -base64 25 | tr -d '\r\n=')\n"
```

```dotenv title="Example (do not use this value!):"
BACKUP_KEY="WfyqYzRVZAOFbCtltYEFN36XBzRz6Ys6ZA"
```

Backup requests via the web interface or the REST API are long running requests that need to download a large backup file. These requests might be aborted when `gunicorn` server worker processes are restarted and the backup request exceeds the restart timeout. This timeout can be increased by setting the following value.

```dotenv title="Example:"
SERVER_WORKER_RESTART_TIMEOUT=3600  # 1 hour
```

### Reverse Proxy

Interpret `X-Forwarded-*` headers when SysReptor is behind a reverse proxy.
See also https://docs.djangoproject.com/en/stable/ref/settings/#use-x-forwarded-host

```dotenv
USE_X_FORWARDED_HOST=on
USE_X_FORWARDED_PORT=on
```

When SysReptor is accessible via HTTPS (recommended), use following setting to redirect all HTTP requests to HTTPS.
This flag also enables setting the `Secure` flag for cookies.

```dotenv
SECURE_SSL_REDIRECT=on
```

### Proxy Server

Set the proxy variables `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` to allow outbound connections using a proxy server.

```dotenv title="Example:"
HTTP_PROXY="http://192.168.0.111:8080"
HTTPS_PROXY="http://192.168.0.111:8080"
```

::: info The proxy server must be reachable from container

Make sure that the proxy server is reachable from inside your docker container.
Loopback addresses (e. g. `127.0.0.1`) or `localhost` will not work.

:::

### Custom CA Certificates

If your SysReptor is behind a proxy with a custom certificate, you can use this setting to specify your custom CA certificates.

```dotenv
CA_CERTIFICATES="-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgAwIBAgIFAMjv7sswDQYJKoZIhv..."
```

### WebSockets

Disable WebSockets and always use HTTP fallback for collaborative editing.
This is not recommended because some features are only available with WebSockets and HTTP fallback has higher latency.
This setting sould only be activated if WebSockets are blocked by a firewall or not supported by a reverse proxy.

```dotenv title="Example:"
DISABLE_WEBSOCKETS=true
```

## Application Settings

&#x20;

Application settings can be configured in `app.env` or via the settings page in the web interface (stored in the database).
When a setting is configured both in `app.env` (environment varaible) and via the settings page (database), the value from `app.env` takes precedence.
Settings configured in `app.env` cannot be changed or overwridden via the web interface.

### Private Designs

Users without Designer permission can create and edit private designs that cannot be read or used by other users. If a pentest project is created using a private design, a copy of the private design becomes accessible by project members. Use this setting to enable private designs.

```dotenv title="Example:"
ENABLE_PRIVATE_DESIGNS=true
```

### Compress Images

Uploaded images are compressed to reduce file size, but to retain quality suitable for PDF files. Disable image compression using this setting.

```dotenv title="Example:"
COMPRESS_IMAGES=false
```

### PDF Rendering

It is possible to generate accessible PDFs in PDF/UA format.
Accessible PDFs can be read by screen readers and are compliant with accessibility standards.
Generating accessible PDFs is incompatible with PDF compression. If you enable accessible PDFs, PDF compression is automatically disabled.

```dotenv title="Example:"
GENERATE_ACCESSIBLE_PDFS=true
```

SysReptor limits the rendering time a PDF can take. If the rendering time exceeds the limit, the PDF render task is aborted. The default limit is 300 seconds (5 minutes).
If you experience slow PDF rendering, try to [optimize your design](/designer/debugging#slow-pdf-rendering) before increasing the limit.

```dotenv title="Example:"
PDF_RENDERING_TIME_LIMIT=300
```

### Sharing Settings

Notes can be shared with people who do not have a SysReptor account via public links. See [Notes](/reporting/notes) for how to create and manage share links.

These settings apply to the whole instance: you can turn off sharing completely, or require a password or read-only access on every shared link.

```dotenv title="Example:"
DISABLE_SHARING=false
SHARING_PASSWORD_REQUIRED=false
SHARING_READONLY_REQUIRED=false
```

### Languages

Configure which languages are available in the language selection.
By default all languages are shown.
When this setting is configured, only selected languages are shown.
All other languages are hidden.

This setting also defines the order of languages in the selection.
The first language is used as default.

```dotenv title="Example:"
PREFERRED_LANGUAGES="de-DE,en-US"
```

### Spell Check

You can add words to the spell check dictionary in the markdown editor (see https://docs.sysreptor.com/reporting/spell-check/).

Words are added to a global spell check dictionary by default, which is available to all users. If words should be added to user's personal spell check dictionaries, set this setting to `true`.

Using both global and personal dictionaries at the same time is not possible. Words of personal dictionaries are not shared between users. If one user adds an unknown word to their personal dictionary, the spell checker will still detect an error for other users, even when they are working in the same project or finding.

```dotenv title="Spell check dictionary configuration"
SPELLCHECK_DICTIONARY_PER_USER=false
```

The picky mode enables additional spell check rules.

It is also possible to selectively enable and disable rules or rule-categories by passing a LanguageTool configuration as JSON.
See https://languagetool.org/http-api/ for available options on the `/check` request.
See https://community.languagetool.org/rule/list for available rules (note: rule IDs might differ for languages).

```dotenv title="Spell check rule configuration"
SPELLCHECK_MODE_PICKY=true
SPELLCHECK_LANGUAGETOOL_CONFIG='{"disabledRules": "TODO,TO_DO_HYPHEN,PASSIVE_VOICE,PASSIVE_SENTENCE_DE"}'
```

### Archiving

Archived projects require at least `ARCHIVING_THRESHOLD` number of users to restore the archive (see https://docs.sysreptor.com/reporting/archiving/).
By default two users are required, enforcing a 4-eye principle.
If `ARCHIVING_THRESHOLD=1` every user is able to restore archived projects on their own, disabling the 4-eye principle.
Changing this setting does not affect previously archived projects.

```dotenv title="Example:"
ARCHIVING_THRESHOLD=2
```

If `PROJECT_MEMBERS_CAN_ARCHIVE_PROJECTS` is set to `true` (default), every project member can archive/restore a project.
Otherwise, only users with global archiver permission can archive/restore projects.
This means that encryption happens with fewer encryption keys and it will be more difficult to keep up the quorum (`ARCHIVING_THRESHOLD`) for restoring projects (this could lead to availability problems).

```dotenv title="Example:"
PROJECT_MEMBERS_CAN_ARCHIVE_PROJECTS=false
```

The process of archiving finished projects and deleting old projects can be automated by following settings. The values are time spans in days.

* `AUTOMATICALLY_ARCHIVE_PROJECTS_AFTER`: Finished projects are automatically archived X days after the project was finished (if possible). Re-activating the project resets the timer.
* `AUTOMATICALLY_DELETE_PROJECTS_AFTER`: Finished (and archived) projects are automatically assigned a delete date X days after the project was finished. The delete date can be customized per project or set to never delete. Re-activating or restoring preserved the delete date. Active projects are never deleted.

```dotenv title="Example:"
# Automatically archive finished projects after 3 months
AUTOMATICALLY_ARCHIVE_PROJECTS_AFTER=90
# Automatically delete finished (and archived) projects after 2 years
AUTOMATICALLY_DELETE_PROJECTS_AFTER=730
```

### Single Sign-On (SSO)

Configuration for SSO via OIDC. Superusers can set this in **Settings → Authentication Settings** in the web interface, or in `app.env`. Find [detailed instructions](/users/oidc-setup).

```dotenv title="OIDC example:"
OIDC_AUTHLIB_OAUTH_CLIENTS='{
    "keycloak": {
        "label": "Keycloak",
        "client_id": "<client-id>",
        "client_secret": "<client-secret>",
        "server_metadata_url": "https://keycloak.example.com/realms/dev/.well-known/openid-configuration",
        "client_kwargs": {
            "scope": "openid email",
            "code_challenge_method": "S256"
        },
        "reauth_supported": false,
        "user_identifier_claim": "email",
        "require_email_verified": true
    }
}'
```

We recommend SSO via OIDC. Use Remote-User authentication only if OIDC is not an option for your setup.

If your reverse proxy enforces authentication and provides the username via a HTTP header, use the following settings to enable SSO.

```dotenv title="Remote-User example"
REMOTE_USER_AUTH_ENABLED=true
REMOTE_USER_AUTH_HEADER="Remote-User"
```

::: danger The reverse proxy is the trust boundary
With Remote-User authentication enabled, SysReptor trusts the configured header unconditionally.
Anyone who can send this header to SysReptor can log in as any user, including superusers.

* The SysReptor backend must not be reachable except through the authenticating reverse proxy.
  Bind it to localhost or an internal network and make sure no other route (container port mapping, load balancer, service mesh, VPN, host firewall rule) reaches it directly.
* The reverse proxy must **overwrite** the authentication header on every inbound request, regardless of what the client sent.
  Removing the header only when it is present is not enough - it has to be set unconditionally from the authenticated identity.
* Overwriting the canonical header name is not enough.
  HTTP headers reach the application as WSGI variables, where the header name is uppercased and `-` is replaced by `_`.
  `Remote-User`, `Remote_User`, `remote-user`, `remote_user` and any other case variant therefore all map to the same variable and are all accepted by SysReptor.
  Your proxy configuration must cover every spelling that normalizes to the configured header name, not just the canonical one.
  :::

By default users can decide whether they want to log in via SSO or username/password. It is possible to globally disable login via username/password via this setting.
Make sure all users have SSO identities configured before enabling this option. Else they will not be able to log in anymore.
It is also possible to disable username/password login for specific users via the user management.

```dotenv title="Disable username/password authentication example"
LOCAL_USER_AUTH_ENABLED=false
```

Configuration of the default authentication provider when multiple authentication providers are enabled (e.g. OIDC via Microsoft Entra ID and username/password).
This setting will redirect users to the default authentication provider, skipping the selection. Other authentication providers can still be used if login via the default provider fails.

Possible values: `azure`, `google`, `remoteuser`, `local` (username/password authentication)

```dotenv title="Default authentication provider example"
DEFAULT_AUTH_PROVIDER="azure"
DEFAULT_REAUTH_PROVIDER="local"
```

### Local User Authentication

Local user authentication via username/password is enabled by default. Disable local user authentication to force users to use SSO.

```dotenv title="Example:"
LOCAL_USER_AUTH_ENABLED=true
FORGOT_PASSWORD_ENABLED=false
```

By enabling the `FORGOT_PASSWORD_ENABLED` option, users can reset their passwords via password-forgotten emails. This setting only takes effect if `ALLOWED_HOSTS` is set to a non-wildcard (`*`) value, `LOCAL_USER_AUTH_ENABLED=true` and email settings are configured.

### Guest User Permissions

Restrict capabilities of guest users.

```dotenv title="Example:"
GUEST_USERS_CAN_CREATE_PROJECTS=True
GUEST_USERS_CAN_IMPORT_PROJECTS=False
GUEST_USERS_CAN_EDIT_PROJECTS=True
GUEST_USERS_CAN_UPDATE_PROJECT_SETTINGS=True
GUEST_USERS_CAN_DELETE_PROJECTS=True
GUEST_USERS_CAN_SEE_ALL_USERS=False
GUEST_USERS_CAN_SHARE_NOTES=False
```

### AI Agent

Enable the AI Agent feature to assist with report writing and analysis.

The AI Agent can be enabled or disabled globally. When disabled, the AI Agent feature is not available to any users.
LLM models must be configured via `AI_AGENT_MODELS` before the feature can be used (see [LLM models](#llm-provider) below).

```dotenv title="Example:"
AI_AGENT_ENABLED=true
```

Customize the disclaimer text shown to users when they use the AI Agent feature.

```dotenv title="Example:"
AI_AGENT_DISCLAIMER="AI can make mistakes. Do not use without manual review."
```

Provide a custom system prompt to prime the AI Agent with specific instructions or context. This can be used to customize the behavior of the AI Agent for your organization's needs. This system prompt is appended to the default system prompt used by SysReptor.

```dotenv title="Example:"
AI_AGENT_SYSTEM_PROMPT='Customized system prompt.'
```

#### LLM models {#llm-models}

Configure LLM models for AI-assisted report writing and analysis.

SysReptor uses [LangChain](https://docs.langchain.com/) to interface with different LLM providers.
It is possible to use cloud-based LLM providers (e.g. OpenAI, Anthropic) as well as self-hosted LLMs (e.g. via VLLM).
The quality of the output strongly depends on the chosen LLM model. Smaller (e.g. self-hosted) models might perform worse than larger (cloud-based) models.

```json
AI_AGENT_MODELS='[
  {
    "id": "gpt-oss-120b",
    "model": "gpt-oss-120b",
    "api_key": "...",
    "base_url": "https://llm.example.com/"
  }
]'
```

Each entry describes one model. The first entry is the default model.
When multiple models are configured, users can select the model in the AI chat.
Model IDs and labels are exposed to all authenticated users; API keys and other secrets are not.

| Field | Description |
| --- | --- |
| `id` | Unique identifier used for model selection in SysReptor |
| `model` | Model name passed to LangChain (e.g. `gpt-5`, `claude-opus-4-8`) |
| `provider` | LangChain provider (e.g. `openai`, `anthropic`, `deepseek`, `mistralai`, `ollama`). Defaults to OpenAI-compatible provider (`deepseek`) |
| `api_key` | API key for the provider |
| `base_url` | API base URL (for OpenAI-compatible or custom endpoints) |
| `label` | Display name in the UI (defaults to `id`) |
| *other* | Additional model-specific LangChain parameters (e.g. `temperature`, `reasoning_effort`, etc.) |

Many LLM providers offer OpenAI-compatible APIs.
You can use the `openai` or `deepseek` provider to connect to OpenAI-compatible APIs by setting `base_url`.
The provider name refers to API format capability, not the specific LLM vendor.
LangChain's `deepseek` provider supports OpenAI-compatible APIs and parses reasoning outputs.
This enables displaying reasoning steps in the web interface.
The standard `openai` provider also works but omits reasoning content.
The `deepseek` provider has nothing to do with the Deepseek LLM vendor.

::: details LLM provider examples

**OpenAI-compatible** APIs with reasoning (e.g. LiteLLM, VLLM, OpenRouter, TogetherAI, DeepSeek, etc.)

```json
{
  "id": "gpt-oss-120b",
  "label": "GPT OSS 120B",
  "provider": "deepseek",
  "model": "gpt-oss-120b",
  "api_key": "...",
  "base_url": "https://llm.example.com:4000/"
}
```

**OpenAI**

```json
{
  "id": "gpt-5",
  "label": "GPT 5",
  "provider": "openai",
  "model": "gpt-5",
  "api_key": "..."
}
```

**Anthropic**

```json title="Anthropic"
{
  "id": "claude-opus-4-8",
  "label": "Claude Opus 4.8",
  "provider": "anthropic",
  "model": "claude-opus-4-8",
  "api_key": "..."
}
```

**Mistral AI**

```json
{
  "id": "mistral-large",
  "label": "Mistral Large",
  "provider": "mistralai",
  "model": "mistral-large-2512",
  "api_key": "..."
}
```

**Ollama**

```json
{
  "id": "llama3.1",
  "label": "Llama 3.1",
  "provider": "ollama",
  "model": "llama3.1",
  "api_key": "...",
  "base_url": "https://llm.example.com/"
}
```

If your LLM provider is not listed above, you can use an LLM proxy like [LiteLLM](https://docs.litellm.ai/) or [OpenRouter](https://openrouter.ai/) that provides an OpenAI-compatible API.
Configure the proxy to connect to your LLM provider, then use the `deepseek` provider (as shown above) to connect SysReptor to the proxy.
This approach works with any LLM that your proxy supports and enables reasoning output display when available.

:::

To test your LLM settings, run:

```shell
docker compose run --rm app python3 manage.py aichat --agent=project_ask --user=<username> --project=<project-id>
```

### Custom Statuses

It is possible to define custom statuses for findings and sections.
In addition to the custom statuses the statuses `in-progress` and `finished` are always available.
By default, the statuses `ready-for-review` and `needs-improvement` are also available.

```dotenv title="Example:"
STATUS_DEFINITIONS='[
  {"id": "ready-for-review", "label": "Ready for review", "icon": "mdi-check"},
  {"id": "needs-improvement", "label": "Needs improvement", "icon": "mdi-exclamation-thick"},
]'
```

It is possible to enforce specific status transition workflows by defining which statuses can follow each status.
This is useful for implementing review processes where certain steps must be followed in order.

Use the `allowed_next_statuses` field to specify which statuses can be set after the current status.
When `allowed_next_statuses` is not defined or an empty list, any status transition is allowed.
To define a terminal status where no further transitions are allowed, set `allowed_next_statuses` to the current status.
Status transitions for built-in statuses (`in-progress`, `finished`) can also be restricted by defining them in `STATUS_DEFINITIONS`.
Please note that `in-progress` is always the initial status and `finished` should be the last status.

```dotenv title="Example: Linear workflow"
STATUS_DEFINITIONS='[
  {"id": "in-progress", "label": "In progress", "icon": "mdi-pencil", "allowed_next_statuses": ["ready-for-review"]},  
  {"id": "ready-for-review", "label": "Ready for review", "icon": "mdi-check", "allowed_next_statuses": ["needs-improvement", "finished"]},
  {"id": "needs-improvement", "label": "Needs improvement", "icon": "mdi-exclamation-thick", "allowed_next_statuses": ["ready-for-review"]},
  {"id": "finished", "label": "Finished", "icon": "mdi-check-all", "allowed_next_statuses": ["finished"]}
]'
```

Note: `allowed_next_statuses` is not enforced for [superusers with enabled admin permissions](/users/user-permissions#superuser). This is to allow administrators to fix incorrect status assignments if necessary.

### Plugins

Extend the functionality of SysReptor by enabling plugins. The plugins `cyberchef`, `renderfindings`, and `scanimport` are enabled by default. All other plugins need to be explicitly enabled.

Enable plugins in the application settings page in the web interface by ticking plugin enabled checkboxes.

You can also manage plugins via the environment variable `ENABLED_PLUGINS` in `app.env`.
`ENABLED_PLUGINS` is a comma separated list of plugin names or plugin IDs.
If `ENABLED_PLUGINS` is set in `app.env`, it takes precedence and the Settings UI will be read-only for plugin enable/disable.

```dotenv title="Example:"
ENABLED_PLUGINS="cyberchef,graphqlvoyager,checkthehash"
```

Some plugins require additional configuration. These plugin settings are configured as separate entries in `app.env` or via the settings page in the web interface.
Please refer to the plugin documentation for more information on available plugin setting.
