Skip to main content
Version: 8.8 (unreleased)

Initial setup

Identity is included by default with the deployment of any Orchestration cluster. Within an Orchestration cluster, Identity provides unified, cluster-level identity management and authorizations.

Identity for Orchestration clusters is available via Helm install, and for local development via Camunda 8 Run.

Initial configuration

Following the default installation for Camunda 8 Run will result in a cluster with the following:

  1. Basic authentication enabled
  2. API authentication disabled
  3. Authorizations disabled
  4. An initial user with the username/password demo/demo
  5. An admin role with read, create, update, and delete permissions for all roles and all resources, which is applied to the initial demo user

To make changes to the initial configuration, add the desired values to your application.yaml, and provide this file to Camunda 8 Run using the --config flag at startup.

note

Helm installations have API authentication and authorizations enabled by default. To adjust your Helm configuration, add the desired values to your application.yaml or via environment variables.

Configure an initial user

The initial user created by the application will be assigned the admin role, and can be used for authentication to the web applications and additional role management.

To create a unique initial user, the following is required in your application.yaml or environment variables:

CAMUNDA_SECURITY_INITIALIZATION_USERS[0]_USERNAME=<Your chosen username>
CAMUNDA_SECURITY_INITIALIZATION_USERS[0]_PASSWORD=<Your chosen password>
CAMUNDA_SECURITY_INITIALIZATION_USERS[0]_NAME=<The name of the first user>
CAMUNDA_SECURITY_INITIALIZATION_USERS[0]_EMAIL=<The email address of the first user>
note

Any other users included in the initialization user list will also be granted the admin role.

Enable API authentication and authorizations

In Camunda 8 Run installations, basic authentication is enabled on the Camunda web applications, but the API is unprotected, and authorizations are disabled. API protection and authorizations can both be enabled by modifying your application.yaml or environment variables:

CAMUNDA_SECURITY_AUTHENTICATION_UNPROTECTED-API=false
CAMUNDA_SECURITY_AUTHORIZATIONS_ENABLED=true
note

To enable authorizations, API protection must also be enabled.

Basic authentication credentials are then required when making API requests, as in the following:

curl --request POST 'http://localhost:8080/v1/process-definitions/search'  \
-u demo:demo \
--header 'Content-Type: application/json' \
--data-raw '{}'