Repository navigation
Skip creating ACEs on paths matching an authorizable's unmanagedAcePathsRegex - #924
Merged
Merged
Conversation
Co-authored-by: kwin <185025+kwin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix evaluation of unmanagedAcePathsRegex in group config
Skip creating ACEs on paths matching an authorizable's unmanagedAcePathsRegex
Oct 29, 2026
kwin
requested changes
Oct 29, 2026
| acConfiguration.getGlobalConfiguration().getDefaultUnmanagedAcePathsRegex())) { | ||
| orderedAceBeanSetFromConfig.add(aceBean); | ||
| } else { | ||
| history.addVerboseMessage(LOG, "Skipped ACE for path " + path + " and principal " + aceBean.getPrincipalName() |
Member
There was a problem hiding this comment.
@copilot Since this is probably not intended it should be logged even outside verbose.
Contributor
Author
There was a problem hiding this comment.
Done in d1b445f: the skip is now logged with addMessage instead of addVerboseMessage, so it appears outside verbose mode.
| ### Limiting where the AC Tool creates and removes ACEs | ||
|
|
||
| The property `unmanagedAcePathsRegex` for authorizable configurations (users or groups) can be used to ensure certain paths are not managed by the AC Tool. This property must contain a regular expression which is matched against all ACE paths bound to the authorizable found in the system. All ACEs with matching paths are not touched. By setting the global config `defaultUnmanagedAcePathsRegex` it is possible to exclude certain areas of the JCR totally from removing (and creating once #244 is fixed) at all. | ||
| The property `unmanagedAcePathsRegex` for authorizable configurations (users or groups) can be used to ensure certain paths are not managed by the AC Tool. This property must contain a regular expression which is matched against all ACE paths bound to the authorizable found in the system. All ACEs with matching paths are not touched. By setting the global config `defaultUnmanagedAcePathsRegex` it is possible to exclude certain areas of the JCR totally from removing and creating at all. |
Member
There was a problem hiding this comment.
Clarify that this never impacts repository wide permissions.
Co-authored-by: kwin <185025+kwin@users.noreply.github.com>
kwin
requested changes
Oct 29, 2026
| acConfiguration.getGlobalConfiguration().getDefaultUnmanagedAcePathsRegex())) { | ||
| orderedAceBeanSetFromConfig.add(aceBean); | ||
| } else { | ||
| history.addMessage(LOG, "Skipped ACE for path " + path + " and principal " + aceBean.getPrincipalName() |
Contributor
Author
There was a problem hiding this comment.
Done in 0786f01: the skip is now logged with addWarning.
Co-authored-by: kwin <185025+kwin@users.noreply.github.com>
kwin
marked this pull request as ready for review
October 29, 2026 15:43
|
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.



unmanagedAcePathsRegex(per authorizable) anddefaultUnmanagedAcePathsRegex(global) were only honoured when removing ACEs. ACEs from the config were still written to paths the regex marks as unmanaged. This contradicted the docs, which said creation would be covered once #244 was fixed.Installer (
BaseAceBeanInstaller)Config model (
AuthorizablesConfig)managesPathForPrincipal(path, principal, defaultRegex).migrateFromsources, are treated as managed. This matches the existingremoveUnmanagedPrincipalNamesAtPathbehaviour.Docs (
AdvancedFeatures.md)ACEs for
group-aunder/content/dam/**in the config are no longer created or removed.Review notes
AcInstallationServiceImpl(skip purging when the regex is non-blank) unchanged. Purging deletes the whole authorizable rather than individual ACEs, so a path-level regex can't be applied there.