Skip to content

Fix ACL glob matching to support multi-wildcard patterns#50

Merged
avelino merged 3 commits intomainfrom
avelino/issue-49
Apr 7, 2026
Merged

Fix ACL glob matching to support multi-wildcard patterns#50
avelino merged 3 commits intomainfrom
avelino/issue-49

Conversation

@avelino
Copy link
Copy Markdown
Owner

@avelino avelino commented Apr 7, 2026

Patterns like *admin* or sentry__*_admin__* silently failed because glob_match only handled single prefix/suffix wildcards. The ACL would match nothing for these patterns, effectively making them useless.

Rewrite glob_match to split on * and match segments sequentially, supporting any number of wildcards anywhere in the pattern. Update docs to cover the full glob syntax and fix the outdated "Output: JSON everywhere" section in architecture.md.

fixed: #49

avelino added 3 commits April 7, 2026 20:28
Patterns like `*admin*` or `sentry__*_admin__*` silently failed because
glob_match only handled single prefix/suffix wildcards. The ACL would
match nothing for these patterns, effectively making them useless.

Rewrite glob_match to split on `*` and match segments sequentially,
supporting any number of wildcards anywhere in the pattern. Update docs
to cover the full glob syntax and fix the outdated "Output: JSON
everywhere" section in architecture.md.

fixed: #49

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
@avelino avelino merged commit 992e8fa into main Apr 7, 2026
4 checks passed
@avelino avelino deleted the avelino/issue-49 branch April 7, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACL glob_match only handles * at start OR end, not both - patterns like *admin* silently fail

1 participant