CIB seven License Keys
Some CIB seven features require a license key. The license will be provided as a string by the CIB seven support team. The following section explains the various methods by which a CIB seven license can be added to the Process Engine.
Deployment Scenarios and the License Key
Starting from CIB seven version 2.2.0, a license key should be applied per database.
In a clustered scenario, where multiple engines on multiple nodes access a single database, the license only needs to be activated once. When activated, a license is valid until the expiration date or until you have deleted your database. The license key is valid for an unlimited amount of engines.
In a multi tenancy scenario, the license check will be performed for each engine with an own database. Thus, you will be prompted to enter the license key separately for each engine.
Note In the versions before CIB seven 2.2.0, a license key was stored on the file system, and therefore it should be applied to each node of the cluster.
Storing the License Key in the Database
The license key is stored in the database and read from it only under two conditions:
- the engine is version
2.2.0or later; - the engine uses the same JWT secret as the webclient (
cibseven.webclient.authentication.jwtSecret). In CIB seven Run, this is the case by default. If the webclient and the engine run separately, set this secret for the engine through the JVM system propertycibseven.webclient.authentication.jwtSecret, the environment variableCIBSEVEN_WEBCLIENT_AUTHENTICATION_JWTSECRETor the filecibseven-webclient.propertieson its classpath. For an additional engine (multi-engine) with its ownjwtSecret: starting with3.0.0, the webclient stores and reads the key with this engine’s own secret. Up to2.2.x, the condition is the same as for the other engines: this engine’s ownjwtSecretdoes not help if it differs fromcibseven.webclient.authentication.jwtSecret; keep the license file with the webclient.
If the condition is not met:
- the webclient uses only the license file; if there is no file, licensed features show “License Required”;
- a key entered on the license page in the Admin webapp is not stored; starting with
3.0.0, the license page says why (the engine is older than2.2.0, or the JWT secret is missing or differs); up to2.2.x, no error is shown; - a key already stored in the database is not read.
Change the secret on the webclient and the engine at the same time: the stored key stays valid.
With the Direct Provider, the key is stored and read without a JWT secret.
License Key Pickup Methods
Through the Admin Webapp UI
Any setup that uses the enterprise CIB seven Admin webapp can enter a valid license key on its license key page. See the Admin webapp section for details.
Through a License File
The webclient can also read the license key from a file:
- By default, it reads the file
${user.home}/.cibseven/cibseven-license.txt. - If the property
cibseven.webclient.license.file.pathis set, it reads the file at this path instead. The property takes a file path, not a URL. Set it in theapplication.yamlof CIB seven Run or your Spring Boot application, or incibseven-webclient.yamlif the webclient is deployed as a web application, for example on Tomcat.
Note: The license file is read only by the EE edition: use CIB seven Run EE, or the EE version of the starter, with the -ee suffix, in your Spring Boot application.
<dependency>
<groupId>org.cibseven.bpm.springboot</groupId>
<artifactId>cibseven-bpm-spring-boot-starter-webapp</artifactId>
<version>${project-version}-ee</version>
</dependency>
When the Key from the File Is Saved in the Database
The webclient reads the file whenever the engine returns no license key it can use: when the database holds no key, when the stored key cannot be decrypted because the JWT secret of the webclient and the engine differ (see Storing the License Key in the Database), or with an engine older than 2.2.0. If the engine returns a key, the file is ignored, even if the stored key has expired; to replace a stored key, enter the new key in the Admin webapp.
A valid key from the file is saved in the database when a user who is allowed to set the license opens the webclient:
- with authorization enabled: a user with the permission
SETorALLon theSystemresource, for example an administrator; - with authorization disabled: any user.
Until then, the webclient reads the key from the file, so the licensed features are already available. The key is saved only if the conditions in Storing the License Key in the Database are met; otherwise the webclient keeps reading it from the file.
Authenticating Licensed Frontend Chunks
Many enterprise features are loaded by the browser as separate, license-gated JavaScript chunks — among them process instance search, the audit log and user operations, process restart and modification, batch operations, human task search, decision instance search, reports, cleanup and the engine metrics charts. Every request for one of these chunks is checked against the license on the server, and refused with 403 if no valid license can be resolved.
To let that check identify the user, the webclient registers a service worker that attaches the current user’s auth token to each chunk request as an Authorization header — a dynamic import() issued by the browser cannot carry a custom header on its own, which is why the service worker exists at all.
This breaks down when the user is already authenticated before the webclient starts. A custom integration — SAML, or a session established by a reverse proxy or API gateway — never passes through the standard login form, the SSO callback, or the ?token= bootstrap, so nothing ever writes the token to sessionStorage/localStorage. The service worker then has no token to attach, the webclient does not issue the chunk request at all, and the feature shows a “License Required” message even though the license itself is perfectly valid.
Leaving chunk authentication to the server
For these setups, set cibseven.webclient.license.chunk.trustServerAuthentication to true:
cibseven:
webclient:
license:
chunk:
# Set true when the deployment authenticates requests itself, without an
# Authorization header (gateway, SAML, mTLS).
trustServerAuthentication: true
This tells the webclient that your deployment can authenticate a chunk request without help from the browser. The request is then sent rather than cancelled, and your IUserProvider.authenticateUser(HttpServletRequest) gets to authenticate it from the session, proxy header, or cookie it already relies on.
Note what the property does not do. It does not disable the license check, and it does not weaken server-side authentication: a request your user provider cannot authenticate is still refused with 403, and the feature still shows “License Required”. It only stops the browser from giving up before the server has been asked.
Deployments that use the standard login flows need no configuration here — the token is in browser storage, the service worker attaches it, and the default (false) is correct.
HTTPS and Service Workers
Browsers run a service worker only in a secure context: over HTTPS or on localhost. If the webclient is opened over plain HTTP or the browser has service workers turned off, licensed features show “License Required” although the license is valid. This also applies to the Direct Provider. Open the webclient over HTTPS.
Without HTTPS, these features work only in these cases:
- On
localhost, for example through an SSH tunnel, or in a browser started with a flag that treats the webclient’s HTTP address as secure (in Chrome,--unsafely-treat-insecure-origin-as-secure). Both are meant for tests. - In deployments where a gateway or proxy authenticates the users: starting with
2.2.3, the user provider can authenticate the chunk requests without the token of the service worker, for example from a session cookie (a SAML or reverse proxy session) or from an identity header that the gateway or proxy adds, see Leaving chunk authentication to the server.
With the standard login, trustServerAuthentication does not help: without a service worker the token is not sent, and the request is refused with 403.
Over plain HTTP, session cookies and tokens travel unencrypted. A user provider that trusts an identity header is safe only if the webclient can be reached through the gateway or proxy alone; otherwise anyone can forge the header.
License content
This section defines what is a valid license key that will be accepted by the CIB seven webclient. This description is valid for all License pickup methods.
A valid license key content is stored in a JSON format with the following items:
{
"customer":"Test Solutions GmbH",
"signature":"XXXXXX...",
"expires":"2025-12-31"
}
Note that omitting any part of the content will result in an error, and you will have to re-enter your license key in the correct format.