Configure Camunda 8 Run
Use this page to configure Camunda 8 Run beyond the default local quickstart.
Configuration options
The following options provide a convenient way to override settings for quick tests and interactions in Camunda 8 Run.
For more advanced or permanent configuration, modify the default configuration/application.yaml or supply a custom file using the --config flag.
| Argument | Description |
|---|---|
--config <path> | Applies the specified Zeebe application.yaml. |
--extra-driver <path> | Copies an external JDBC driver into camunda-zeebe-<version>/lib before startup. Use this when running against Oracle, MySQL, or other databases that require a driver that is not bundled with Camunda 8 Run. Repeat the flag to copy multiple JARs. |
--username <arg> | Configures the first user’s username as <arg>. |
--password <arg> | Configures the first user’s password as <arg>. |
--keystore <arg> | Configures the TLS certificate for HTTPS. If not specified, HTTP is used. For more information, see enable TLS. |
--keystorePassword <arg> | Provides the password for the JKS keystore file. |
--port <arg> | Sets the Camunda core port (default: 8080). |
--log-level <arg> | Sets the log level for the Camunda core. |
--startup-url | The URL to open after startup (for example, http://localhost:8080/operate). By default, Operate is opened. |
--no-browser | Skips opening a browser window after startup. Useful for headless or CI environments. |
--physical-tenants <ids> | Selects comma-separated Physical Tenants for this run only. Saved IDs retain their settings; unsaved IDs use startup defaults. |
Enable authentication and authorization
By default, Camunda 8 Run is optimized for local development. The web applications use local credentials, but the Orchestration Cluster API is unprotected and authorization checks are disabled. To protect API requests and enable authorization checks, update your application.yaml.
Example configuration:
camunda:
security:
initialization:
users:
- username: demo
password: demo
name: Demo
email: demo@example.com
authentication:
method: BASIC
unprotected-api: false
authorizations:
enabled: true
Start Camunda 8 Run with the configuration:
- Mac OS + Linux
- Windows
./start.sh --config application.yaml
.\c8run.exe start --config application.yaml
Once enabled, API requests must include valid credentials. For example:
curl --request GET 'http://localhost:8080/v2/topology' \
-u demo:demo \
--header 'Content-Type: application/json' \
--data-raw '{}'
To add additional users, extend the configuration:
camunda:
security:
initialization:
users:
- username: user
password: user
name: user
email: user@example.com
defaultRoles:
admin:
users:
- user
Use Camunda APIs
Camunda 8 Run exposes the Orchestration Cluster REST API locally by default at http://localhost:8080/v2.
- For local development, Camunda 8 Run exposes the API without requiring credentials unless you enable API protection.
- If you enable Basic authentication, include the configured username and password in your requests.
- For API concepts, endpoints, and examples, use the Orchestration Cluster REST API overview.
- For deployment-specific authentication details, use Orchestration Cluster REST API authentication.
Quick connectivity check:
curl http://localhost:8080/v2/topology
Use built-in and custom connectors
Camunda 8 Run includes Connectors for local development.
For custom connectors:
-
Place the connector JAR in the appropriate
custom_connectorsdirectory:# macOS/Linux
c8run/custom_connectors/your-connector.jar
# Windows
c8run\custom_connectors\your-connector.jar -
Ensure the corresponding element template is available in a valid Desktop Modeler search path.
-
Restart Camunda 8 Run after adding or updating connectors.
-
Check
c8run/logs/connectors.logif the connector fails to load.
For connector secrets, add the value to the local secret store and reference it with camunda.secrets.<name>. See manage local secrets.
For connector development and packaging details, see Connector SDK.
Manage local secrets
c8run stores local secret values in your platform's user data directory and configures the file secret store automatically.
| Platform | Default directory |
|---|---|
| Linux | ${XDG_DATA_HOME}/camunda/c8run/secrets, or ~/.local/share/camunda/c8run/secrets when XDG_DATA_HOME isn't set |
| macOS | ~/Library/Application Support/Camunda/C8Run/secrets |
| Windows | %LOCALAPPDATA%\Camunda\C8Run\secrets |
Run ./c8run secrets path to print the directory used by the current environment.
Set a secret without placing the value in your command history:
./c8run secrets set OPENAI_API_KEY
Enter the value at the hidden prompt. Then reference it in Process Models with:
=camunda.secrets.OPENAI_API_KEY
To set several secrets without creating a dotenv file, pass multiple names. Camunda 8 Run prompts for each value separately:
./c8run secrets set OPENAI_API_KEY SLACK_TOKEN
Secret names can contain letters, numbers, underscores, and dashes. In a FEEL expression, wrap a name containing dashes in backticks:
=camunda.secrets.`openai-api-key`
Use the following commands to manage values:
| Command | Purpose |
|---|---|
./c8run secrets set <name> [name...] | Prompt for and save one or more values. |
./c8run secrets set <name> --stdin | Read a value from standard input for automation. |
./c8run secrets list | List secret names without showing their values. |
./c8run secrets path | Show the active local secrets directory. |
./c8run secrets delete <name> | Delete one secret. |
./c8run secrets delete --all | Delete all local secrets after confirmation. |
./c8run secrets import [dotenv-file] | Import KEY=value entries from a dotenv file. |
./c8run secrets import - | Import dotenv entries from standard input. |
The commands have the following current safety boundaries:
- Import immediately replaces values with matching names. The cache warning appears after the values are written, without advance confirmation.
- Both
delete <name>anddelete --allprompt for confirmation. In noninteractive use, add--yes. - Secret names can contain dashes, but names beginning with
-can't currently be passed tosetordelete <name>.
For example, import a local dotenv file:
./c8run secrets import .env.secrets
Use a dedicated dotenv file for secret values. c8run secrets refuses to import the c8run .env file because it can contain runtime, download, and packaging credentials.
Configure local secret management with the following environment variables. Set them in your environment or the c8run .env file before running secret commands or starting Camunda 8 Run.
| Variable | Default | Valid values | Behavior |
|---|---|---|---|
C8RUN_SECRETS_MODE | local | local, env, or external | In local mode, c8run configures its file store. Set env to read secrets from prefixed environment variables. Set external whenever you configure another store. In external mode, local c8run secrets commands are disabled. In env mode, only c8run secrets list is available. |
C8RUN_SECRETS_ENV_PREFIX | - | A prefix matching [A-Za-z][A-Za-z0-9_]*_, such as C8_ | Required in env mode. Sets the prefix that every secret variable carries. c8run checks the format before any process starts and stops with a message naming the setting when it is missing or invalid. |
C8RUN_SECRETS_DIR | Platform-specific directory | An absolute or relative directory path | Sets the file-store path for local secret commands and startup. Relative paths resolve from the current working directory. |
C8RUN_SECRETS_CACHE_TTL | 20m | A duration expressed as a whole number of minutes, with a minimum of 1m | Sets how long Camunda caches resolved secret values. Has no effect in env mode, because the environment variable store isn't cached, but an invalid value still refuses startup. |
For example, set the cache duration to one minute:
C8RUN_SECRETS_CACHE_TTL=1m ./c8run start
To use another local directory for secret commands and startup, set the same path for both commands:
C8RUN_SECRETS_DIR=./temporary-secrets ./c8run secrets set API_KEY
C8RUN_SECRETS_DIR=./temporary-secrets ./c8run start
The default directory is shared across projects and c8run versions for the current operating-system user. Set a stable absolute C8RUN_SECRETS_DIR per project when the same secret name needs different values. c8run warns when the platform-default directory and the configured directory both contain entries. Run ./c8run secrets path to confirm the active local directory.
After rotating, importing, or deleting a value, existing cached resolutions can use the previous value until the cache entry expires. Restart Camunda 8 Run to clear the cache immediately.
On Windows, use PowerShell or Command Prompt for hidden interactive entry. In Git Bash, prefix the command with winpty, or use --stdin.
Local secret commands manage only the c8run file store. Set C8RUN_SECRETS_MODE=external whenever you configure another file path, an environment variable store, AWS Secrets Manager, or Google Secret Manager through --config, application.yaml, or Spring environment settings such as CAMUNDA_SECRETS_STORES_ENV_DEFAULT_PREFIX. c8run doesn't detect explicit store configuration and otherwise configures its local default store, so the physical tenant ends up with two stores and Camunda refuses to start. Use the external store's management tools instead of c8run secrets. To read secrets from environment variables, prefer C8RUN_SECRETS_MODE=env, which configures the store for you.
The local secrets directory is for development only. For production, configure a supported managed secret store instead of reusing Camunda 8 Run secrets.
Use secrets from environment variables
Set C8RUN_SECRETS_MODE=env with a prefix to read secrets from your shell environment instead of the local file store, so you can run processes with real credentials without setting up a vault. This mode configures the environment variable store and no file store.
Export the mode and prefix so ./c8run start and every later ./c8run secrets command use the same settings, then export each secret with the prefix and start Camunda 8 Run:
export C8RUN_SECRETS_MODE=env
export C8RUN_SECRETS_ENV_PREFIX=C8_
export C8_DEFAULT_OPENAI_API_KEY="<your-api-key>"
./c8run start
You can also set C8RUN_SECRETS_MODE and C8RUN_SECRETS_ENV_PREFIX in the c8run .env file. If you set them only for a single command, such as C8RUN_SECRETS_MODE=env ./c8run start, later ./c8run secrets commands run in the default local mode and show the file store instead.
c8run derives one environment store per tenant from the prefix:
| Tenant | Variable pattern | Example (prefix C8_, ID sales) |
|---|---|---|
| Default tenant | <prefix>DEFAULT_<NAME> | C8_DEFAULT_OPENAI_API_KEY |
Physical Tenant with ID <id> | <prefix><ID>_<NAME> | C8_SALES_OPENAI_API_KEY |
In the variable name, <ID> is the Physical Tenant ID in uppercase. Physical Tenant IDs are lowercase, but c8run uppercases them when it builds the prefix, and the store matches names exactly. For the Physical Tenant sales, set C8_SALES_OPENAI_API_KEY, not C8_sales_OPENAI_API_KEY.
Reference a secret from a process model the same way as in local mode:
=camunda.secrets.OPENAI_API_KEY
Environment mode has the following behavior:
- Before starting any processes,
c8runvalidatesC8RUN_SECRETS_ENV_PREFIXagainst the format[A-Za-z][A-Za-z0-9_]*_. If the setting is missing or invalid,c8runstops and reports its name. The server rejects reserved prefixes, such asCAMUNDA_orZEEBE_, at startup. - Each tenant's connector runtime sees only that tenant's secret variables.
c8runremoves variables prefixed for other tenants from its environment. - The environment is the source of truth.
./c8run secrets listreads the current shell environment and displays the default tenant's secret names without their values. Add--physical-tenant <id>to list a Physical Tenant's secret names. - Like the secrets API,
./c8run secrets listomits empty variables and names that don't match the reference character set. The list matches the secrets Camunda resolves only if you run the command in the same environment you used to start c8run. ./c8run secrets set,delete,import, andpatharen't available in environment mode. To change a value, update the corresponding environment variable, for exampleC8_DEFAULT_OPENAI_API_KEY, and restart c8run.- Physical Tenants managed by Camunda 8 Run require
C8RUN_SECRETS_MODEto be set tolocalorenv. Inenvmode,c8runrefuses to start if Physical Tenants are declared outsidec8runbecause it can't assign them a prefix.
Configure Physical Tenants
Use Camunda 8 Run to try Physical Tenants locally. Each Physical Tenant is an isolated engine inside one Camunda 8 Run instance, with its own data, users, secrets, and connector runtime.
Use Camunda 8 Run 8.10.5+ for the Physical Tenant selection and listing behavior described here. Run ./c8run physical-tenants help and ./c8run secrets help to inspect the available options.
Add a Physical Tenant, then start Camunda 8 Run:
./c8run physical-tenants add sales
./c8run start
./c8run physical-tenants list
./c8run stop
- The
defaultPhysical Tenant always exists and keeps the existing URLs, such ashttp://localhost:8080/operateandhttp://localhost:8080/v2/. - Each additional Physical Tenant is served under
http://localhost:8080/physical-tenants/<id>/, for example/physical-tenants/sales/operatefor the web applications and/physical-tenants/sales/v2/for the Orchestration Cluster REST API. - Saved Physical Tenants start with every subsequent
./c8run start. The startup summary lists each Physical Tenant's URLs and readiness. ./c8run physical-tenants listshows effective startup settings for active Physical Tenants and saved settings for stopped or pending Physical Tenants. Active IDs absent from the saved configuration appear asactive (not saved). Login and Connectors settings areunknownif legacy startup metadata doesn't record them.
To select Physical Tenants for one run without changing the saved configuration, for example in CI:
./c8run start --physical-tenants sales,hr
Selected saved Physical Tenants retain their dedicated credentials and --no-connectors setting. Unsaved IDs use the startup login (demo/demo unless changed) and Connectors defaults. --disable-connectors disables all connector runtimes.
Physical Tenant IDs follow these rules:
| Rule | Value |
|---|---|
| Allowed characters | Lowercase letters and digits only |
| Maximum length | 64 characters |
| Maximum length with RDBMS secondary storage, including the bundled H2 database | Eight characters |
| Reserved ID | default |
H2 is for local development and evaluation only.
Set Physical Tenant logins
By default, each Physical Tenant uses the same login as ./c8run start (demo/demo, unless you set --username and --password). To give a Physical Tenant its own user, add it with --username:
./c8run physical-tenants add hr --username alice
Camunda 8 Run prompts for the password without echoing it. For automation, pass the password on standard input with --password-stdin, which requires --username and accepts one Physical Tenant per command:
printf '%s' "$HR_PASSWORD" | ./c8run physical-tenants add hr --username alice --password-stdin
physical-tenants add doesn't accept --password, so the password never appears in your shell history. Camunda 8 Run stores the password in the Physical Tenants file, which only your operating-system user can read. Generated startup metadata records usernames, Connectors enablement, and the Camunda port, but excludes passwords.
Physical Tenant logins authenticate web application sessions. REST APIs remain unprotected by default, including Physical Tenant-prefixed endpoints; adding a Physical Tenant-specific login doesn't enable API protection.
Manage Physical Tenant secrets and connectors
Each Physical Tenant has its own local secrets and connector runtime. A Physical Tenant never resolves another Physical Tenant's camunda.secrets.* values. Use --physical-tenant with the local secret commands:
./c8run secrets --physical-tenant sales set OPENAI_API_KEY
The --physical-tenant=sales form is also supported.
Each Physical Tenant's connector runtime runs in a separate Java Virtual Machine (JVM) on the next free local port from 8087. To skip it for one Physical Tenant, add the Physical Tenant with --no-connectors. To skip all connector runtimes, start with --disable-connectors.
Remove Physical Tenants
Use these commands to remove saved Physical Tenants:
| Command | Purpose |
|---|---|
./c8run physical-tenants remove <id> [id...] | Remove Physical Tenants from the saved configuration. |
./c8run physical-tenants reset | Remove all saved Physical Tenants and their logins. |
./c8run physical-tenants path | Show where Camunda 8 Run saves Physical Tenants. |
Both remove and reset prompt for confirmation. In noninteractive use, add --yes.
Removing a Physical Tenant changes only the saved configuration. A running instance keeps serving the Physical Tenant until you restart Camunda 8 Run. The Physical Tenant's data remains in secondary storage, so adding the same ID again restores it, including its users.
Re-adding a Physical Tenant doesn't reset its existing users' passwords. Use the retained credentials when saving a login for an existing Physical Tenant ID.
Troubleshoot Physical Tenant startup failures
If the shared Camunda application starts but a Physical Tenant doesn't become ready, the startup summary shows NOT READY and ./c8run start exits with an error naming the failed Physical Tenants. Camunda and the healthy Physical Tenants keep running. Check log/camunda.log, fix the reported configuration or storage problem, then run ./c8run stop and ./c8run start. For common causes, see troubleshoot Physical Tenants.
Invalid shared configuration can prevent the entire Camunda application from starting. For example, mixing RDBMS and none secondary-storage types across Physical Tenants fails shared configuration validation. Correct the incompatible storage settings before restarting.
With API protection enabled, rejected readiness-probe credentials produce up (unverified) and a warning instead of a startup failure. The Physical Tenant is reachable, but Camunda 8 Run couldn't verify its storage readiness. If you reused a Physical Tenant ID, remove and re-add its saved configuration with the retained user's credentials, then stop and start Camunda 8 Run again. Removing and re-adding the saved configuration preserves the Physical Tenant's data.
Configure where Physical Tenants are stored
Two environment variables control where Camunda 8 Run saves Physical Tenants and whether it manages them:
| Variable | Default | Behavior |
|---|---|---|
C8RUN_TENANTS_FILE | physical-tenants.yaml in the per-user Camunda 8 Run data directory. Run ./c8run physical-tenants path to show it. | Sets the saved Physical Tenants file. Relative paths resolve from the current working directory. |
C8RUN_TENANTS_MODE | local | Set to external to disable the physical-tenants commands and saved Physical Tenants, so only your own configuration declares Physical Tenants. |
If your --config file, CAMUNDA_PHYSICALTENANTS_* environment variables, or JAVA_OPTS already declare camunda.physical-tenants, Camunda 8 Run uses that configuration as-is and ignores its saved Physical Tenants. In that case, --physical-tenants fails with an error, so use either --physical-tenants or your own configuration. Physical Tenants managed by Camunda 8 Run require C8RUN_SECRETS_MODE=local, the default, or C8RUN_SECRETS_MODE=env.
When Camunda 8 Run manages Physical Tenants locally, an unreadable or invalid saved configuration prevents startup, including with --physical-tenants. Correct the reported file or permissions error before retrying.
Manage Physical Tenants with c8ctl
c8ctl delegates Physical Tenant management through c8ctl cluster physical-tenants and scoped secret management through c8ctl cluster secrets --physical-tenant <id>. Use c8ctl cluster start --physical-tenants <ids> to select Physical Tenants for one run, with the same selection and listing behavior described above. These commands use the same Physical Tenants file and secrets as Camunda 8 Run. Relative C8RUN_TENANTS_FILE, C8RUN_SECRETS_DIR, and secret import paths resolve against the caller's working directory.
Physical Tenants are isolated engines; logical tenants provide tenancy within an engine.
Enable TLS
TLS can be enabled by providing a local keystore file using the --keystore and --keystorePassword configuration options at startup. Camunda 8 Run accepts .jks certificate files.
Although Camunda 8 Run supports TLS, this is intended only for testing.
If you use a proxy together with TLS, ensure internal Camunda services are excluded from proxy routing. JVM-level proxy settings apply to all internal HTTP clients and may block communication between components such as Zeebe, Operate, Admin, or the connector runtime. Add these services to your nonProxyHosts configuration.
For details, see HTTP proxy configuration.
Access metrics
Metrics are enabled in Camunda 8 Run by default and can be accessed at http://localhost:9600/actuator/prometheus.
For more information, see the metrics documentation.
Environment variables
The following advanced configuration options can be provided via environment variables:
| Variable | Description |
|---|---|
JAVA_OPTS | Allows you to override Java command line parameters for Camunda. |
Next steps
- Review configure secondary storage in Camunda 8 Run.
- Review install and start Camunda 8 Run.
- Identify and resolve common issues when starting, configuring, or using Camunda 8 Run.