Role Based Access Control (RBAC) plugin for Open Integration Engine 4.7.0. Enforces dynamic roles with per-permission grants and channel-level restrictions, replacing the engine's default always-allow authorization controller.
Running OIE 4.6.0? Use rbac 1.1.4.
Web admin ready: the same zip ships both UIs. Role management and role-based task gating work in the desktop (Swing) Administrator and in the OIE Web Administrator, with matching behavior in each. The web UI's permission gating is also more complete than Swing's, which cannot hide buttons inside panel bodies (an engine limitation that applies to all plugins); either way, denied operations always fail server-side. On servers where the Web Administrator isn't used, the web module is inert.
Data Pruner uses its own View Settings, Save Settings, and Start / Stop grants; channel Start/Stop permission does not grant pruning access. The web manifest marks RBAC as an authorization plugin so compatible web clients can stop startup if it cannot load. Failed permission loads stay closed until both permission APIs recover. Recovery restores the Roles tab when View Roles is granted. A page that showed Access denied while permissions were failing has to be opened again. Web client 1.1.0 or later is also required to hide Data Pruner actions and restricted navigation correctly; rbac 1.3.0 was tested against web client 1.1.0 and 1.3.0.
An unavailable permission snapshot gets at most three automatic retries, 15 seconds apart. Subsequent task checks retain the throttled lazy retry, and signing out cancels pending retries.
Full documentation is in the wiki.
Oracle: 1.1.2 does not work on an engine whose database is Oracle. The plugin fails to create its admin role on first startup, so after login the Administrator stops with 403 Missing permission: any (no role assigned), and creating a role fails with a NumberFormatException. Fixed in 1.1.3 (#10). Use 1.1.3 or later on an Oracle-backed engine.
Swing Administrator task buttons: In the desktop (Swing) Administrator, some task-pane buttons stay visible to users whose role doesn't allow them: the entries plugins add to the channel list and the channel editor, and the channel editor's own Debug Channel and Deploy Channel. The engine checks only a fixed set of buttons on those screens. Clicking one of these is refused by the server with a Missing permission message, and nothing runs. The web Administrator hides the channel editor's Debug Channel and Deploy Channel from those users (#8).
- JDK 17
- Maven 3.x
- Network access on the first build: the engine jar script below downloads the OIE distribution, and the packaging step downloads Node.js v24.21.0 (via frontend-maven-plugin) to build the web administrator UI in
webadmin/
The plugin compiles against engine jars that are not published to a public Maven repository. Install them into your local Maven repository once per engine version:
./scripts/install-engine-jars.shThe script downloads the OIE release matching the POM's mc.version, checks it against the SHA-256 pinned in the POM (oie.dist.sha256), and installs the five jars the build needs.
Then build the plugin:
mvn clean installThis runs the Java tests and the web UI's unit tests; -DskipTests skips both. mvn clean package works too, it just doesn't copy the jars into your local Maven repository.
The distributable zip lands at:
package/target/rbac-1.3.0.zip
mvn clean install runs the unit tests. CI also runs two end-to-end suites:
browser: the built web bundle loaded into the OIE web client, with the engine's REST API mocked (Playwright,webadmin/e2e).e2e: the zip installed into the released engine through its own installer and driven over the REST API as real signed-in users, on every database the engine supports (Derby, PostgreSQL, MySQL, SQL Server with the jTDS and the Microsoft driver, Oracle), on Java 17 and 21. It runs a fresh install, an upgrade from each earlier release, and an uninstall.
To run e2e locally you need Java 17 or later, Docker for every database but Derby, and the OIE distribution for the POM's mc.version (oie_unix_4_7_0.tar.gz from the engine's release):
python3 e2e/run.py --db postgres --zip package/target/rbac-1.3.0.zip \
--tarball oie_unix_4_7_0.tar.gz --work /tmp/rbac-e2e-1What it covers, and what it leaves out, is in docs/design-notes.md.
Install the zip through the Administrator's Extensions view and restart OIE. On first startup the plugin creates its four rbac_* tables and seeds an admin role assigned to every user the engine has at that moment (under the stock controller they were all admins). Users created later have no role until one is assigned.
Roles can be written to a file and read back, on the same engine or another one. Users holding the admin role get Export Roles and Import Roles on the Role-Based Access Control settings tab, in both the desktop and the web Administrator; other users don't see them. The same is available through GET /api/extensions/rbac/roles/_export and POST /api/extensions/rbac/roles/_import. Only users holding the admin role can export or import. An import is previewed first, showing each role as it is on this engine now and as the import would leave it, with how each of the file's channels was found here; it writes only the roles picked, in one transaction, and never changes the admin role. Applying the file's channel restrictions is a choice. A channel whose id isn't on the engine but whose name matches one there is used only if you choose to match channels by name. The file format and the import rules are in docs/role-export-format.md.
The engine's own backup doesn't include rbac's roles or role assignments, or the engine's users. To move to a new engine, export the roles as well. On the new engine, install rbac, restore the backup, create the users, import the roles file, then assign the roles.
Role names are compared exactly as typed, so "Lab" and "LAB" are two roles. MySQL and SQL Server compare names ignoring case by default, so on those databases only one of the two can exist, and an import holding both asks you to rename one.
RBAC checks each request against the permission declared for its operation. It reads three kinds of declaration at startup and, with the one exception below, keeps no list of its own:
- The engine's core API, through the permission on each operation.
- A plugin's own permissions, which the plugin registers with the engine.
- The permission on an operation of a servlet interface an extension registers with the engine, such as a connector's test calls. RBAC uses it when a role can be granted that permission, and a permission the plugin registers for the same operation comes first.
So when the engine or an extension declares a permission, RBAC enforces it with no plugin change. An operation that declares no permission is allowed for any logged-in user who has a role, and the server logs a warning each time (RBAC: allowing unknown operation ...). OIE 4.7.0 has dozens of these. Gating one belongs in the engine or the extension that owns it.
The exception is the engine's user preference calls (each user's Administrator settings), which declare no permission in OIE 4.7.0. RBAC requires Manage Users for another user's preferences and allows every user their own. Once the engine declares a permission on them, RBAC uses that instead.
The engine's plugin-settings calls (/api/extensions/{name}/properties) are allowed only under the exact name of an installed extension, and rbac's own settings only to the admin role.
MPL-2.0. See LICENSE.

