Skip to content

feature: [174] Implement ACL DSL using Antlr#175

Open
crazyrokr wants to merge 4 commits into
developfrom
feature/174-implement-acl-engine-in-java
Open

feature: [174] Implement ACL DSL using Antlr#175
crazyrokr wants to merge 4 commits into
developfrom
feature/174-implement-acl-engine-in-java

Conversation

@crazyrokr

@crazyrokr crazyrokr commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Issue

#174

Description

This pull request implements an Access Control List (ACL) Domain-Specific Language (DSL) using Antlr and integrates it into the application configurations.

Changes

  • Implement ACL DSL with Antlr: Introduced the grammar and infrastructure for parsing ACLs using Antlr.
  • Integrate Antlr DSL into configs: Updated application configuration to utilize the new Antlr-based DSL for ACL definitions.

Impact

This change enables ability to use authorization service (ACL engine) in native image

@crazyrokr crazyrokr linked an issue Jun 8, 2026 that may be closed by this pull request
@crazyrokr crazyrokr added enhancement New feature or request security labels Jun 8, 2026
@crazyrokr crazyrokr requested a review from JavaSaBr June 8, 2026 09:37
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Test Coverage Report

Overall Project 84.65% -0.99% 🍏
Files changed 81.09% 🍏

File Coverage
UserIdentity.java 100% 🍏
AllowPublishAclRuleBuilder.java 100% 🍏
DenyPublishAclRuleBuilder.java 100% 🍏
AclRuleBuilder.java 100% 🍏
DenySubscribeAclRuleBuilder.java 100% 🍏
MultiUserConditionBuilder.java 100% 🍏
AllowSubscribeAclRuleBuilder.java 100% 🍏
AclConfigurationException.java 100% 🍏
AntlrDslBasedAclServiceSpringConfig.java 100% 🍏
MqttBrokerSpringConfig.java 98.78% 🍏
AclRulesBuilder.java 97.83% -2.17% 🍏
UsersBuilder.java 97.1% -2.9% 🍏
UserConditionBuilder.java 88.24% -11.76% 🍏
AclRulesLoader.java 83.65% -16.35% 🍏
UriLoaderAuthorizationService.java 83.22% 🍏
GaclVisitorImpl.java 77.62% -22.38% 🍏
TopicsBuilder.java 74.19% -25.81% 🍏
AllOfUserConditionBuilder.java 71.43% -28.57% 🍏
UserMatchersBuilder.java 52.11% -47.89%
AnyOfUserConditionBuilder.java 25% -75%
GroovyDslBasedAclServiceSpringConfig.java 0% -25%

@crazyrokr crazyrokr marked this pull request as ready for review June 8, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement ACL engine in Java

1 participant