ACL for general deny and specific allow produces inconsistent publishing behavior #205
Replies: 1 comment
-
|
Closing discussion to move to relevant location |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm currently working on a project where we are attempting to define an ACL that restricts publishing on a key to a single user. We want the 'auth' user to be exclusively allowed to publish to the 'myhome/kitchen/temp' key, with all other users able to subscribe to that key but not publish to it. We also want all other keys to have enabled behavior by default. This is our configuration file:
Our issue with this configuration is we seem to observe random allow/deny behavior, where our auth user is sometimes allowed to publish on that key, and other times, our auth user is blocked from publishing on that key. We observed this behavior on linux 20.04, using zenoh version 1.5, running zenohd in docker.
Whether the publish succeeded was consistent on a single instance of the zenohd broker, but changed between instances. So when we ran docker compose, whether the publisher would be allowed was entirely random best we can tell. It can take a few runs before the behavior occurs. As far as we can tell, there are no state changes we were able to find between runs that work and those that don't. We tested this on different systems and saw the same behavior. Could this be an issue with our configuration file? The inconsistent behavior between runs of the broker led us to believe it might be a bug, but we're also open to revising our config file.
Here's our publisher:
Here's our subscriber:
Here's our docker compose file:
Beta Was this translation helpful? Give feedback.
All reactions