Im working on a HiveMQ CE extension. Im trying to implement a custom authorization approach using topic permissions within a ClientInitializer.
What I want to achieve is to
DENY activity whithin a restricted topic tree using a the wildcard but
ALLOW some specific activity wihtin this tree:
Builders.topicPermission() .topicFilter("restricted/#") .activity(TopicPermission.MqttActivity.ALL) .type(TopicPermission.PermissionType.DENY) .build(); Builders.topicPermission() .topicFilter("restricted/xyz/test") .activity(TopicPermission.MqttActivity.ALL) .type(TopicPermission.PermissionType.ALLOW) .build();
Is there a possibility that the specific permission is treated with higher priority than the wildcard permission? Actually as an exception to the wildcard permission…
Thanks for help!