Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listening on ANY interface, Link.interfaces contains all the interfaces rather than the source one #1093

Closed
JEnoch opened this issue Jun 6, 2024 · 1 comment · Fixed by #1123
Assignees
Labels
bug Something isn't working

Comments

@JEnoch
Copy link
Member

JEnoch commented Jun 6, 2024

Describe the bug

This leads access control to misbehave, the interceptor being called for a wrong interface.

To reproduce

  1. Run zenohd with this conf file that denies put on WiFi interface:
{
  access_control:{
    enabled:true,
    default_permission:"allow",
    rules:[
      {
        permission:"deny", actions:["put"],
        flows:["ingress"], interfaces: ["wlp1s0"],
        key_exprs:["demo/**"]
      },
    ]
  },
}
  1. Run z_sub -m client -e tcp/localhost:7447
  2. Run z_pub -m client -e tcp/localhost:7447

The subscriber doesn't receive the publications. It should receive because the traffic only goes via lo interface, and the deny rule is only for WiFi interface.

System info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants