Configuration

OpenL Studio keeps every setting in a single property namespace. The same setting can be changed in two ways:

  • in the Administration area of the running application;
  • in an application.properties file, before or between restarts.

This page explains where configuration is read from, how the two ways interact, and which property backs each field of the Administration area. What each setting actually means is described once, in Using Administration Tools — this page links to it instead of repeating it.

[!Note] Prepare a new instance with an application.properties file, then refine the settings in the Administration area.

The following topics are included in this chapter:


Where Settings Come From

Configuration Sources

Sources are listed from the highest priority to the lowest. A value found in a higher source wins.

  1. Servlet context initialization parameters, for example, <context-param> in web.xml.
  2. JNDI attributes under java:comp/env.
  3. Java system properties, for example, -Dopenl.home=/srv/openl.
  4. Operating system environment variables.
  5. Settings saved in the Administration area.
  6. application.properties files.
  7. Built-in defaults shipped with the application.

[!Note] Java system properties and environment variables have a higher priority than the Administration area. A setting defined there is reapplied on every startup, and the corresponding field in the UI becomes read-only. Use these sources for values that must not be changed at runtime, such as credentials injected by a container. OpenL Studio refuses to save a changed value of a read-only setting, whether it comes from the UI or from the REST API.

Settings saved in the Administration area are not written back to application.properties. They are stored separately, in ${openl.home.shared}/<application-name>.properties — for example, webstudio.properties — so an application.properties file keeps only the values an administrator wrote by hand.

The two files are reset independently:

  • Restore Defaults and Restart clears the values of the System settings and the database settings saved in ${openl.home.shared}/<application-name>.properties and restarts the instance. The repository, security and other settings stay as they are. It never modifies application.properties.
  • Deleting application.properties discards only the values written there by hand. The instance then falls back to the settings saved in the Administration area and to the built-in defaults.

Environment Variables

An environment variable is recognized either as the exact property name or in upper case with dots and dashes replaced by underscores. A shell rejects a variable name that contains a dot, so export the upper-case form:

export OPENL_HOME=/srv/openl        # sets openl.home
export USER_MODE=multi              # sets user.mode

The exact property name still works where the environment can carry such a name, for example when it is passed by env or set by a container runtime.

File Locations

An application.properties file is searched in the following locations, from the lowest priority to the highest:

  1. classpath: and classpath:config/
  2. the working directory and its conf/ and config/ subdirectories
  3. the user home directory

A file in the user home directory therefore overrides a file in the working directory. Files for an active Spring profile, such as application-prod.properties, override all non-profile files.

To search other locations or file names, redefine openl.config.location and openl.config.name. Both must be passed as a Java system property or an environment variable, because they are resolved before any file is read.

The Generated Property Reference

A running instance publishes every known property with its effective default value at <context path>/application.properties, for example, http://localhost:8080/webstudio/application.properties. Most properties also carry a description. Use it as the authoritative list for the installed version — it also includes properties contributed by optional modules that this page does not cover.


The Home Directory

An instance keeps its data in the directory named by openl.home, which defaults to ${user.home}/.openl. On the first launch the directory is created and populated automatically. Point it at a dedicated location rather than a system drive:

openl.home = /srv/openl

Data that always belongs to this instance alone:

  • cache/ — compiled projects. Safe to delete; it is rebuilt on demand.
  • repositories/ — local repository data and clones of remote repositories.
  • users-db/ — the embedded H2 user database used by the default db.url.

Data that a cluster shares, written under openl.home.shared instead:

  • user-workspace/ — local copies of the projects opened by users, together with their project history.
  • locks/ — locks held on projects and settings.
  • repositories/settings/ — settings saved in the Administration area and the project index, openl-projects.yaml.
  • <application-name>.properties — the values saved in the Administration area, for example, webstudio.properties.
  • notification.txt — the message broadcast from Managing Notifications.

openl.home.shared defaults to openl.home, so on a standalone instance both groups sit in the same directory. See Cluster Mode Configuration.


Property Reference by Administration Section

System

Described in Managing System Settings.

Section Field Property
Core Dispatching Validation dispatching.validation
Core Verify on Edit compile.auto
Testing Thread Number for Tests test.run.thread.count
Projects The maximum count of saved changes for each project per user project.history.count
Projects Detect projects by Excel files project.detect-by-excel-files
Projects Ignored Paths repository.ignored-paths
Other Format tables on save table.format-on-save
Other Update table properties update.system.properties
Audit Log Keep events for audit.retention
Audit Log Copy events to the server log audit.outputs.console
Database Configuration Database URL db.url
Database Configuration Login db.user
Database Configuration Password db.password
Database Configuration Maximum Pool Size db.maximumPoolSize

The following related properties have no field in the UI:

  • openl.home — working directory of the instance. The default value is ${user.home}/.openl.
  • openl.home.shared — directory shared between instances of a cluster. See Cluster Mode Configuration.
  • user.workspace.home — directory that stores local copies of the projects opened by users.
  • admin.notification-file — file that stores the message sent from Managing Notifications.
  • repository.default-ignored-paths — the paths repository.ignored-paths ignores by default: the files of version control systems and CI pipelines, the build output target, and the system and temporary files of operating systems and editors, such as .DS_Store, Thumbs.db and the ~$ lock files of Microsoft Office. Refer to it to add paths of your own without repeating the defaults: repository.ignored-paths = ${repository.default-ignored-paths}, **/build/**, or the environment variable REPOSITORY_IGNORED-PATHS with the same value. Docker Compose reads ${...} in a value as a variable of its own, so a compose file doubles the dollar sign: REPOSITORY_IGNORED-PATHS: "$${repository.default-ignored-paths}, **/build/**".
  • project.protected-files — the protected files of every project, pom.xml, META-INF/MANIFEST.MF by default: Ant-style patterns relative to the project root, separated by commas, the letter case ignored. A protected file is listed, opened, edited and merged like any other file, but the export of a project and its deployment leave it out, and an import of a project, such as a ZIP archive uploaded over it, neither writes it nor deletes the one the project holds. A deployment writes a manifest of its own, so it never carries the one of a project. In a Git repository, a revision that changes only protected and ignored files is a technical revision. The screens of OpenL Studio hide a protected file unless Show Hidden Files is on in My Settings.
  • project.hidden-files — the files of every project hidden from business users, rules.xml, rules-deploy.xml, tags.properties by default: patterns relative to the project root, as above. The screens of OpenL Studio leave a hidden file out of the trees of files unless Show Hidden Files is on in My Settings. Nothing else changes: the REST API and the MCP server list, read and write it as any other file.

Audit Log

OpenL Studio keeps the audit log in its database in every user mode but Single-User. Two settings control it, set in the Audit Log section of the System page or as properties:

  • audit.retention — how long an event is kept: a number with its unit, 90d (days), 2w (weeks), 6m (months) or 1y (years), or a period in ISO 8601, such as P1Y6M. Empty, the default, keeps the events forever.
  • audit.outputs.console — true also writes every event to the console, by the OpenL.audit logger. Off by default. The database keeps the events either way.

A number without its unit, such as 90, is not read as days: it is refused, as a period of zero or less, such as 0d, is. The System page names the error under the field and saves nothing, and OpenL Studio does not start with such a value in a property or an environment variable, so a typo never removes the events it was meant to keep. A value set by the environment, such as AUDIT_RETENTION of a Helm chart, makes the field read-only, as described in Configuration Sources.

With a retention period, the events older than it are removed a few minutes after the start, or after Apply on the System page, and then once a day; in a cluster, one node removes them. The log records each removal, and a run that finds no event to remove records none. The console receives a line per event at the INFO level, ready for a log collector:

audit.retention = 1y
audit.outputs.console = true

A line of the server log names the action and the outcome of an event, then its other fields but the time and the category, as the columns of an export name them, such as signIn failure id=7 actor=jdoe authentication=form clientAddress=10.0.0.7 details={"reason":"badCredentials"}. A JSON layout, such as the ecs format of the OpenL Studio Docker image, also writes each field of its own: audit.id, audit.action, audit.actor and the others. A copy of the events a log collector keeps elsewhere stays as it was recorded, whatever happens to the database of OpenL Studio.

A setting the environment sets — an environment variable, a system property or a properties file, as the values of a Helm chart are — is compared at every start with the one of the last start. The settings added, changed and removed are recorded by their names, never by their values: the home folder of the instance keeps only fingerprints of the values, in settings-snapshot.properties.

The events themselves are described in Reviewing the Audit Log.

Security

Described in Managing Security Settings.

The authentication mode is selected by user.mode:

UI mode user.mode value
Single-User single
Multi-User multi
Active Directory / LDAP ad
SSO: SAML saml
SSO: OIDC (OAuth2) oauth2

Single-User

Applies when user.mode is single. See Configuring Single-User Mode.

Field Property
Username security.single.username
Email security.single.email
First Name security.single.first-name
Last Name security.single.last-name
Display Name security.single.display-name

Initial Users

Applies to all modes except single. See Configuring Initial Users.

Field Property
Administrators security.administrators
Default Group security.default-group
Permit creating and deleting projects security.allow-project-create-delete
Allow Managers to bypass protected branches security.allow-bypass-protected-branches

Active Directory / LDAP

See Configuring Active Directory / LDAP Mode.

Field Property
Active Directory Domain security.ad.domain
Active Directory URL security.ad.server-url
User Filter security.ad.search-filter
Group Filter security.ad.group-filter

SSO: SAML

See Configuring SSO: SAML Mode.

Field Property
Entity ID security.saml.entity-id
SAML Server Metadata URL security.saml.saml-server-metadata-url
SAML Remote Server X509 Certificate security.saml.server-certificate
Attribute for Username security.saml.attribute.username
Attribute for First Name security.saml.attribute.first-name
Attribute for Last Name security.saml.attribute.last-name
Attribute for Display Name security.saml.attribute.display-name
Attribute for Email security.saml.attribute.email
Attribute for Groups security.saml.attribute.groups

The security.saml.forceAuthN property additionally controls whether the identity provider must force a user to reauthenticate. All SAML attribute names are case-sensitive.

SSO: OIDC (OAuth2)

See Configuring SSO: OIDC (OAuth2) Mode.

Field Property
Client ID security.oauth2.client-id
Client Secret security.oauth2.client-secret
Issuer URI security.oauth2.issuer-uri
Scope security.oauth2.scope
Attribute for Username security.oauth2.attribute.username
Attribute for First Name security.oauth2.attribute.first-name
Attribute for Last Name security.oauth2.attribute.last-name
Attribute for Display Name security.oauth2.attribute.display-name
Attribute for Email security.oauth2.attribute.email
Attribute for Groups security.oauth2.attribute.groups

All OAuth2 claim names are case-sensitive.

Repositories

Described in Managing Repository Settings.

Each repository has an identifier that is used as a property prefix:

  • design-repository-configs — comma-separated identifiers of the repositories on the Design Repositories tab.
  • production-repository-configs — comma-separated identifiers of the repositories on the Deployment Repositories tab.

When a Java system property or an environment variable sets one of these lists, the repositories of that tab can be neither added nor removed.

Settings of a repository are then defined as repository.<id>.*. Identifiers are arbitrary; design and production are the conventional defaults.

The Type field is set by repository.<id>.$ref, which points at the block of defaults for that type:

Type repository.<id>.$ref value
Git repo-git
Database JDBC repo-jdbc
Database JNDI repo-jndi
AWS S3 repo-aws-s3
Azure Blob Storage repo-azure-blob
Local repo-file

The Local type keeps the deployments in a folder of the file system and is offered for deployment repositories only. A Design repository of this type is set in the properties alone, such as by a tool that runs OpenL Studio on a developer’s machine; in single-user mode its projects are then edited where the folder keeps them, as described in Projects Edited in Place. OpenL Studio replaces a file it writes there with a new one: the file keeps its permissions but belongs to the user OpenL Studio runs as. A file that cannot be replaced, such as one in a folder OpenL Studio cannot create files in or one mounted into the container on its own, is written over in place and keeps its owner. When OpenL Studio runs in a container on a folder of the host, run it as the user that owns the folder, so that the files stay editable on the host.

A $ref sets up inheritance: any repository.<id>.<suffix> left undefined falls back to <ref>.<suffix>. Defining repository.design.$ref = repo-git and then only repository.design.uri is enough — the remaining Git settings come from the repo-git.* defaults. The same mechanism lets repo-git.* and repo-default.* set values shared by every repository of a kind.

When a Java system property or an environment variable sets the $ref, such as REPOSITORY_DESIGN__REF_=repo-git, the Type field and every setting the repository inherits through that $ref are read-only. A $ref from the property files keeps the inherited settings editable, even when the environment sets the value it points at: with REPO_GIT_CONNECTION_TIMEOUT=120, every Git repository shares the timeout of 120 seconds, and a repository may still change it. The changed value is saved for that repository alone; its $ref stays, and the rest of its settings remain inherited.

Settings Common to All Types

Field Property suffix
Name .name
Path .base.path
Deployment branch .deploy-from-branch

The Deployment branch field applies to deployment repositories only: an empty value means Any branch, and MAIN_BRANCH means Main branch only.

Git

See Managing Git Repository Settings.

Field Property suffix
URL .uri
Login .login
Password .password
Branch .branch
Protected branches .protected-branches
Changes check interval .listener-timer-period
Connection timeout .connection-timeout
Default branch name .new-branch.pattern
Branch name pattern .new-branch.regex
Invalid branch name message hint .new-branch.regex-error

Retry behavior after a failed authentication is controlled by .failed-authentication-seconds and .max-authentication-attempts. The location of cloned remote repositories is controlled by repo-git.local-repositories-folder, which has no field in the UI.

Database JDBC and Database JNDI

Field Property suffix
URL .uri
Login .login
Password .password

For Database JNDI, the URL is the datasource name in the JNDI context, such as java:comp/env/jdbc/DB.

The Secure connection check box has no property of its own. It is derived from Login: the check box appears selected whenever a login is defined, and clearing it erases the stored .login and .password.

Despite its name the check box selects database authentication, not transport security. With a login the repository opens its connections through the credentialed call — getConnection(uri, login, password) for Database JDBC and getConnection(login, password) on the datasource for Database JNDI — and without one through the plain call that takes no credentials. Encrypting the connection itself is configured elsewhere: in the JDBC URL through a driver-specific parameter such as sslmode for PostgreSQL, in the driver, or in the JNDI datasource definition.

AWS S3

Field Property suffix
Service endpoint .service-endpoint
Bucket name .bucket-name
Region name .region-name
Access key .access-key
Secret key .secret-key
Listener timer period (sec) .listener-timer-period
SSE algorithm .sse-algorithm
KMS key ID .sse-kms-key-id
Server-Side Encryption

The SSE algorithm field sets the server-side encryption that OpenL requests for every object it writes to the bucket: when it saves or deploys a project, when it restores a revision, and when it updates the service object .openl-settings/.modification that signals a change of the repository. Objects that are already in the bucket keep their encryption. An empty value, shown as None, requests no encryption, so the default encryption of the bucket applies.

The value is one of the algorithms that the AWS S3 API defines:

  • AES256 — Amazon S3 managed keys (SSE-S3).
  • aws:kms — AWS Key Management Service (AWS KMS) keys (SSE-KMS).
  • aws:kms:dsse — dual-layer encryption with AWS KMS keys (DSSE-KMS).
  • aws:fsx and aws:backup — values of other AWS services that the S3 API accepts. OpenL sends them as they are, and S3 decides whether the bucket accepts them.

The names are case-sensitive. A value that is not listed, such as AES-256, is refused: OpenL Studio does not save the settings and shows the reason, and OpenL Rule Services does not start.

The KMS key ID field is available for aws:kms and aws:kms:dsse and takes the ID, the ARN, or the alias of a symmetric encryption key of AWS KMS from the Region of the bucket. Without a key, AWS uses its managed key aws/s3. A key set for any other algorithm is refused in the same way.

  • Prefer the full ARN of a customer managed key. AWS KMS resolves an alias in the account of the requester, and a key of another account must be given as an ARN.
  • A bucket policy that denies an upload without the x-amz-server-side-encryption-aws-kms-key-id header accepts the objects of OpenL only when the key is set.
  • The identity that OpenL uses to access the bucket needs the kms:GenerateDataKey permission on the key to write objects and the kms:Decrypt permission on it to read them.

Azure Blob Storage

Field Property suffix
URL .uri
Listener timer period (sec) .listener-timer-period

The credentials of the storage account have no fields in the UI, so a repository that authenticates with a shared key is configured in application.properties. See Azure Blob Storage Credentials.

Commit Comments

Applies to Git design repositories. See Customizing Git Commit Comments.

Field Property suffix
User message pattern .comment-template.comment-validation-pattern
Invalid user message hint .comment-template.invalid-comment-message

A Git repository stores the comment directly as the commit message. The comments OpenL Studio suggests are not configured.

Maven Repository

Described in Managing the Maven Repository.

Field Property
URL maven.repository.url
Username maven.repository.username
Password maven.repository.password
Cleanup Period (Days) maven.repository.cleanup.period
Cleanup Threshold (MB) maven.repository.cleanup.threshold

OpenL Studio downloads nothing while the URL is empty. The folder that keeps the downloaded files has no UI field: see Maven Local Repository.

Every hour, OpenL Studio removes from that folder the dependencies no project has used for the cleanup period, 30 days by default, then, while the dependencies it downloaded take more than the cleanup threshold, 1024 MB by default, the ones used longest ago. A 0 turns either rule off. A dependency a project compiled at the moment reads is never removed. In a cluster, each instance cleans its own folder.

Email Server

Described in Managing Email Server Configuration.

Field Property
URL mail.url
Username mail.username
Password mail.password

Email address verification is active while these three properties hold valid values.


Settings With No UI Field

These are set in application.properties only.

Azure Blob Storage Credentials

An Azure Blob Storage repository authenticates with the access key of a storage account. Both settings take the repository identifier as a prefix, like every other repository.<id>.* setting:

  • .account-name — name of the storage account.
  • .account-key — access key of that account. Store it encrypted, as described in Encrypting Passwords.

The key is used only when the account name has a value. With both left empty, the repository connects with whatever authorization the URL itself carries, such as an appended shared access signature, and anonymously when the URL carries none:

production-repository-configs = production
repository.production.name = Deployment
repository.production.$ref = repo-azure-blob
repository.production.uri = https://openlrules.blob.core.windows.net/deploy
repository.production.account-name = openlrules
repository.production.account-key = ENC(yZaBcDeFgHiJkLmNoPqR==)
repository.production.listener-timer-period = 10

Maven Local Repository

maven.repository.local is the folder that keeps the files OpenL Studio downloads from the Maven repository, laid out as a local Maven repository, and the downloaded projects unpacked beside their archives:

maven.repository.local = ${openl.home}/maven-repository

A file is downloaded once and read from this folder afterwards; a snapshot version is checked in the Maven repository again. The cleanup of the Maven repository settings removes what the projects stopped using, and Delete Cache in the Maven section of the administration empties the folder. OpenL Studio then downloads again what a project still names, when it compiles it. Each use is recorded in a .openl-last-used file beside the downloaded files of a version, and only a version holding that file is ever removed, so a folder shared with Maven keeps the rest. In a cluster each instance keeps a folder of its own: do not point several instances to one folder.

Cross-Origin Requests

Needed when a browser application served from another origin calls the OpenL Studio REST API or its MCP server. No value for cors.allowed.origins means neither can be called cross-origin at all. The default allowed and exposed headers include the ones of the MCP protocol.

Property Description
cors.allowed.origins Comma-separated allowed origins. An asterisk allows any origin.
cors.allowed.methods Comma-separated allowed HTTP methods.
cors.allowed.headers Comma-separated allowed request headers.
cors.exposed.headers Comma-separated response headers a page of an allowed origin may read.
cors.preflight.maxage Pre-flight cache time in seconds. A negative value leaves the header out.
cors.allowed.origins = https://apps.example.com
cors.allowed.methods = GET,OPTIONS,HEAD,PUT,POST
cors.allowed.headers = Content-Type,Accept,api_key,Authorization,Mcp-Session-Id,MCP-Protocol-Version,Mcp-Method,Mcp-Name,Last-Event-ID
cors.exposed.headers = Mcp-Session-Id
cors.preflight.maxage = 7200

OpenL Studio never answers a cross-origin request with Access-Control-Allow-Credentials. A browser may still send the session cookie with a request a page of another origin makes, when the cookie’s attributes allow it, but it does not let that page read the answer, and it does not send a request that needs a pre-flight with the cookie at all. A browser application on another origin therefore authenticates its calls with the Authorization header, either HTTP Basic or a personal access token. Besides the response headers CORS always exposes, such as Content-Type, it reads only the ones cors.exposed.headers lists.

This list also governs cross-site request protection. A state-changing request — any method other than GET, HEAD, OPTIONS or TRACE — that a browser page on another origin makes to the REST API or to the built-in MCP server is rejected with 403 unless that origin is listed here, so another site cannot act through a signed-in user’s session (a cross-site request forgery). The sign-in form is covered as well, so another site cannot sign a browser into an account of its choosing; single sign-on callbacks from the identity provider are not affected. An asterisk trusts every origin and turns this protection off. The requests of OpenL Studio’s own pages pass, and so does a request that carries neither an Origin nor a Sec-Fetch-Site header, as scripts and integrations usually send it; a client that sends either header itself is checked like a browser.

A browser tells the protection where a request comes from only when OpenL Studio is opened over HTTPS or at localhost. Over plain HTTP, the protection compares the Origin of the request with the address the request was made to, so a reverse proxy in front of OpenL Studio must pass the public host on in the Host or the X-Forwarded-Host header. Otherwise the requests of OpenL Studio’s own pages are rejected as cross-site.

Password Hashing

OpenL Studio keeps only hashes of two kinds of secrets: internal users’ passwords in Multi-User mode, and personal access token secrets in every mode except Single-User. security.password.encoder selects the algorithm:

  • bcrypt — the default. webstudio.bcrypt.strength sets its cost: permitted values are 4 to 31, and the default is 10. Each increment doubles the hashing work, so raise it in small steps and measure login time.
  • noop — keeps passwords and secrets in plain text, and OpenL Studio logs a warning at startup. Use it only for testing.

Any other value stops OpenL Studio at startup.

security.password.encoder = bcrypt
webstudio.bcrypt.strength = 10

Each algorithm verifies only its own hashes: bcrypt rejects plain-text values, and noop rejects bcrypt hashes. Passwords and tokens stored under one value therefore stop working after a switch to the other.

Built-in MCP Server

OpenL Studio runs an MCP server, through which AI agents and IDEs work with OpenL projects, and serves it at /mcp of its own address, behind its own security. The server is a Node.js program: OpenL Studio starts it on the loopback interface when Node.js is installed, and starts it again whenever the settings change. Without Node.js, OpenL Studio runs without the server and logs a warning. For connecting and using AI agents, see the OpenL Studio MCP Server Guide.

Property Description
mcp.enabled Starts the server. The default is true.
mcp.node Node.js executable: a name on the PATH, the default node, or an absolute path.
mcp.enabled = true
mcp.node = node

A web page of another origin calls the server from a browser only when cors.allowed.origins lists its origin, as for the REST API; see Cross-Origin Requests. An MCP client picks which of the tools of the server its agent uses.

The server calls OpenL Studio back over HTTP at the local address and port a request to /mcp comes in through. For OpenL Studio that accepts only HTTPS, end TLS in front of it, at a reverse proxy or a load balancer.

An AI agent moves a large or a binary project file outside its conversation: the MCP server hands it a short-lived link, and a script of the agent downloads or uploads the file at /transfers/<id> of the address of OpenL Studio, with no credential in the request. Single-user mode needs no links: the server hands out the addresses of the REST API.

Property Description
transfer.link.ttl How long a link works after it is issued, as an ISO-8601 duration. The default is PT15M.
transfer.max-pending How many links one client holds at a time, one at least; a new link ends the oldest one. The default is 20.
transfer.link.ttl = PT15M
transfer.max-pending = 20

A reverse proxy in front of OpenL Studio passes /transfers as it passes /rest, and lets an upload be as large as the largest file an agent writes: the limit of the proxy on the size of a request applies to an upload through a link.

Migration Attribution

When an upgrade requires OpenL Studio to change project files in a repository, the commits are attributed to this identity:

migration.user.name = Studio Migration
migration.user.email = openltablets@eisgroup.com

Set them to a recognizable service identity so that such commits are distinguishable from users’ commits in the repository history.

UI Extension

webstudio.javascript.url loads an external JavaScript file together with OpenL Studio, which is the extension point for integrating an external tool:

webstudio.javascript.url = https://example.com/extension.js

Configuration Examples

Single-User Development Setup

A local instance with no login and a Git repository in the file system:

openl.home = /srv/openl

user.mode = single
security.single.username = developer
security.single.email = developer@example.com
security.single.display-name = Local Developer

design-repository-configs = design
repository.design.name = Design
repository.design.$ref = repo-git
repository.design.uri = ${openl.home}/repositories/design

Team Setup with a Remote Git Repository

Database-backed accounts, an administrator, a read-only baseline group, and a remote Git design repository:

user.mode = multi
db.url = jdbc:postgresql://db.example.com:5432/openl_studio
db.user = openl
db.password = ENC(9J0k1LmNoPqRsTuVwXyZ==)
security.administrators = jsmith
security.default-group = Viewers

design-repository-configs = design
repository.design.name = Design
repository.design.$ref = repo-git
repository.design.uri = https://git.example.com/rules/design.git
repository.design.login = openl-service
repository.design.password = ENC(aBcDeFgHiJkLmNoPqRsT==)
repository.design.branch = main
repository.design.protected-branches = main, release/*
repository.design.base.path = rules/
repository.design.connection-timeout = 60
repository.design.listener-timer-period = 10

Deployment Repository in AWS S3

production-repository-configs = production
repository.production.name = Deployment
repository.production.$ref = repo-aws-s3
repository.production.bucket-name = openl-rules-prod
repository.production.region-name = eu-central-1
repository.production.access-key = AKIAIOSFODNN7EXAMPLE
repository.production.secret-key = ENC(uVwXyZaBcDeFgHiJkLmN==)
repository.production.sse-algorithm = aws:kms
repository.production.sse-kms-key-id = arn:aws:kms:eu-central-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
repository.production.base.path = deploy/
repository.production.deploy-from-branch = MAIN_BRANCH

Leave the access and secret keys empty to let the AWS SDK resolve credentials from the environment, an instance profile, or another standard location. For the SSE algorithm and the KMS key, see Server-Side Encryption.

Two Design Repositories

Identifiers are arbitrary, so several repositories of different types can coexist:

design-repository-configs = design, archive

repository.design.name = Design
repository.design.$ref = repo-git
repository.design.uri = https://git.example.com/rules/design.git

repository.archive.name = Archive
repository.archive.$ref = repo-jdbc
repository.archive.uri = jdbc:postgresql://db.example.com:5432/openl_archive
repository.archive.login = openl
repository.archive.password = ENC(kLmNoPqRsTuVwXyZaBcD==)

Active Directory Authentication

user.mode = ad
security.ad.domain = example.com
security.ad.server-url = ldaps://ad.example.com:3269
security.ad.search-filter = (&(objectClass=user)(userPrincipalName={0}))
security.ad.group-filter = (&(objectClass=group)(member:1.2.840.113556.1.4.1941:={2}))
security.administrators = jsmith
security.default-group = Viewers

A login sends the user’s password to the server named by security.ad.server-url, so use the ldaps:// scheme — over plain ldap:// the password crosses the network unencrypted. The ports differ as well: 3269 for the encrypted global catalog against 3268 for the plain one, or 636 against 389 for a single domain controller.

An ldaps:// connection is only as good as the certificate check behind it, and that check is the JVM’s: the certificate of the domain controller, or the CA that issued it, has to be present in the truststore of the JVM that runs OpenL Studio. Without it every login fails with PKIX path building failed. Import the certificate with keytool -import -trustcacerts, or point the instance at a prepared truststore through javax.net.ssl.trustStore.

OIDC Authentication

user.mode = oauth2
security.oauth2.client-id = openl-studio
security.oauth2.client-secret = ENC(oPqRsTuVwXyZaBcDeFgH==)
security.oauth2.issuer-uri = https://login.example.com/realms/openl
security.oauth2.scope = openid,profile,email
security.oauth2.attribute.username = preferred_username
security.oauth2.attribute.groups = groups
security.administrators = jsmith

Encrypting Passwords

Any property value, not only a password, can be stored encrypted. Define a master password in secret.key and wrap the encrypted value in ENC(...):

secret.key = MyMasterPassword
db.password = ENC(AP7hs0n88JJMcFlV/7VQTg==)

The value inside ENC(...) is Base64, so it cannot be invented — the example above is the password MyDbPassword encrypted with the secret.key shown next to it. Produce your own value as described at the end of this section.

Keep secret.key out of application.properties in a shared environment — pass it as a Java system property or an environment variable instead. Quote the value if it contains spaces or shell metacharacters, so that -Dsecret.key=... reaches the application intact.

secret.key also protects the secrets that the Administration area saves. A repository, database, or mail password, the client secret of OAuth2, the access and secret keys of an AWS S3 repository, and the account key of an Azure Blob Storage repository are stored as ENC(...) in the settings file, encrypted with the current secret.key, and so is the private key OpenL Studio generates for SAML. At the first start after the upgrade to 7.1.0, when secret.key is set, OpenL Studio encrypts the secrets that an earlier version stored in plain text.

A secret stored as ENC(...) can be read only with the secret.key it was encrypted with. When secret.key changes or is removed, the application logs a warning naming each setting it cannot decrypt and reads it as an empty value — a wrong key may rarely give unreadable text instead. The affected connections, such as a repository, the mail server or the OAuth2 sign-in, then fail to authenticate until their secrets are entered again in the Administration area. The SAML key pair is generated anew instead, at the next start or when the SAML settings are saved, with a warning, and the identity provider needs the new service provider metadata. Setting the previous secret.key back makes the other secrets readable again.

[!Note] Define secret.key before creating any connection that stores a secret. Secrets saved while secret.key was blank are stored as plain text and stay so until their values are changed, since saving the same value again stores nothing.

To produce an encrypted value on Linux, substituting the secret.key value for MyMasterPassword:

echo -n "plain password" \
  | openssl aes-128-cbc \
    -K $(echo -n "MyMasterPassword" | sha1sum | awk '{ print substr($1, 1, 32) }') \
    -e \
    -iv 00000000000000000000000000000000 \
    -base64 \
  | awk '{ print "ENC("$1")" }'

The value passed to -K is the first 32 characters of the SHA-1 hash of secret.key. On macOS, use shasum instead of sha1sum. The encoding cipher is configurable through secret.cipher.


Cluster Mode Configuration

Several OpenL Studio instances can share a workload. Each instance keeps its own openl.home for local data and reads shared state from openl.home.shared, which must resolve to the same mounted directory on every instance:

openl.home = /srv/openl
openl.home.shared = /mnt/openl-shared

openl.home.shared defaults to openl.home, which is why a standalone instance needs no extra configuration.

Configure it before the first launch. Setting it on an instance that already holds data leaves that data behind in the old location and requires moving it manually.

What Moves to the Shared Directory

  • Administration settings — every instance reads the same <application-name>.properties, so a change applied in one instance’s Administration area takes effect everywhere. The secrets in that file are stored as ENC(...), so every instance needs the same secret.key: an instance configured with a different key cannot read such a secret. Changing the key therefore means changing it on all instances together and re-entering the affected secrets afterwards, which saves them encrypted with the new key. With SAML, start the instances one at a time after the change: the first one generates the new key pair and saves it, and the next ones read it. Give the identity provider the new service provider metadata once they all have started.
  • User workspace and project history — users see the same open projects and history on whichever instance serves them.
  • Locks — an instance sees projects locked by users on other instances.
  • Project index and the broadcast notification.

What Stays Local

The compiled-projects cache, the repository clones and the Maven local repository stay under openl.home on each instance.

[!Note] The defaults for the user database (db.url) and for repositories also point inside openl.home, not inside openl.home.shared. Setting openl.home.shared alone therefore leaves every instance with its own users and its own project storage. A cluster must additionally point db.url at an external database and configure the design and deployment repositories to remote storage such as Git, a database, AWS S3, or Azure Blob Storage.

Put a load balancer in front of the instances and enable sticky sessions.