Skip to content

v1.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 00:31
Immutable release. Only release title and notes can be modified.
927c3c8

For Open Integration Engine 4.7.0. For OIE 4.6.0, use rbac 1.1.4.

Thanks

New

  • Users holding the admin role get an Orphaned Permissions task on the Role-Based Access Control tab, in both the desktop Administrator and the web Administrator. It lists the permissions roles still hold that no installed plugin registers any more, usually because a plugin renamed one or was removed. The engine's own permissions are never listed. You pick which ones to remove. (#71, closes #64)
  • rbac logs a warning naming the role and the old permission the first time one of the role's users is refused for a missing permission while the role holds such a grant. (#69)
  • A role with View Channels can open the channel editor and its filter, transformer and response transformer editors. Saving still needs Manage Channels. (#65, closes #54)
  • When the server would refuse a role name or description, both role editors show the server's message and stay open. Before, the editor closed on Apply and the edits were lost. (#70)
  • Plugin authors: UserRoles is a supported way for a sign-in plugin to set a user's role by name. It runs the last-admin check, writes an audit event naming the plugin, and refreshes the user's permissions at once. It throws for a user id the engine doesn't have. See the README section Setting a user's role from another plugin and the wiki's Plugin Authors page. (#73, closes #56)

Security

  • Another user's Administrator preferences now need Manage Users. Every user still reads and changes their own. Before, any role could read and change any user's preferences, the admin's included. (#60, closes #55)
  • rbac now reads the permission an extension declares on its servlet operations and enforces it, when it is a permission a role can hold: one of the engine's, or one a plugin registers. Before, rbac couldn't see those declarations and allowed the calls. On OIE 4.7.0 the built-in connectors' test and lookup calls declare no permission, so nothing changes for them until the engine declares them (OpenIntegrationEngine/engine#588). (#63)
  • rbac escapes the role, permission, channel, user and plugin names in its log lines, so a name with a line break or a right-to-left override can't add a line to mirth.log or make one read reversed. New or renamed role names, new permissions and new descriptions can't hold control characters or characters XML can't carry; existing roles are left alone. (#68)
  • Role changes on one engine now run one at a time. If two changes at the same moment would each move one of the last two admins off the admin role, the second is refused. (#73)

Fixes

  • Import Roles can't be closed while a call runs, and a failed re-preview disables Import until a preview succeeds. An import that would overwrite a role deleted since the preview is refused; such an import used to be reported as written. A file that lists one channel id under two names is refused. In the desktop Administrator, a file over 5 MB or not in UTF-8 is refused before it's sent. (#53)
  • Export Roles in the web Administrator reads the roles from the server when you click it. (#53)
  • A failed role lookup in the assignments table shows "(unknown)". The role editor's note about channels outside your view now says how many it keeps. (#53)
  • When two plugins register a permission with the same name, rbac logs a warning naming both. (#59)
  • When the engine refuses a role or assignment change made in the desktop Administrator, such as removing the last admin's role, the error shows rbac's reason. (#75)
  • In the desktop Administrator, saving a role without editing its name or description keeps them as stored, even when they contain a line break the field can't show. In the web Administrator, an unedited name or description keeps its leading and trailing spaces and line breaks, and a carriage return is no longer stored as a line feed. (#75, #76)
  • Assigning a role over the REST API to a user id the engine doesn't have answers 404 and stores nothing. (#76)
  • An import refuses a new or changed role description containing a control character other than a tab or a line break, as saving a role does. (#75)

Deprecated

  • Other plugins calling rbac's RbacRepository and RbacAuthorizationController.invalidateCache directly should move to UserRoles. Those calls still work, but they're no longer a supported interface: a later release may change them, and its release notes will say so. (#72)

Upgrading

Install the zip through the Administrator's Extensions view and restart OIE. No database change since 1.3.0 (schema version 4). Tested with the OIE web Administrator (gibson9583/oie-web-client) 1.1.0 and 1.3.0.

The jars are signed with Diridium's renewed code-signing certificate. The certificate's subject gives the company's city as Lewisville, Texas; 1.3.0's said Addison.