Repository navigation
Add an Orphaned Permissions dialog to both Administrators - #71
Merged
Merged
Conversation
A role keeps a plugin's permission after the plugin renames it or is removed, and such a grant does nothing. PR #69 logs it when one of the role's users is refused. An admin can now list and remove these grants with the Orphaned Permissions task in the RBAC tab, in the Swing and web Administrators. Granting a renamed permission's new name stays in the role editor. - GET /roles/_unregistered lists the permissions roles hold that neither the engine nor an installed plugin registers, and the names of the installed plugins that are disabled. POST /roles/_unregistered/_remove removes the picked ones, each checked again, in one transaction, with one audit event per role. Both are admin-only, in the controller and again in UnregisteredGrantService. - The engine's own permissions are never listed or removed. Nothing is listed when rbac can't read them, or before the plugins' permissions are registered. - The dialog names disabled plugins above the table. Measured on OIE 4.7.0: a disabled Data Pruner stays among the installed plugins, and its permissions leave rbac's list. Tests: server unit tests for the list, the refusals and the removal; the admin-only task in both task maps; web unit tests for the dialog's wording and the REST payload; a text file both clients' tests read, so the two dialogs show the same texts; browser tests for the dialog; an e2e check, run on all six databases. Closes #64 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #64. A role keeps a plugin's permission after the plugin renames it or is removed, and the grant does nothing. PR #69 logs such a grant when one of the role's users is refused. This adds a way to list and remove them.
An admin opens the Orphaned Permissions task in the RBAC tab, in the Swing or the web Administrator, and gets a table of roles and permissions with Remove Selected, Remove All and Close. Above the table: "These permissions are orphaned, usually because a plugin changed or was removed. Engine permissions are never listed here." Granting a renamed permission's new name stays in the role editor.
Tests:
Issue #64 also proposed a rename call that plugins could use. This PR doesn't add it.
Co-authored with Claude Code.