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

Restricting topics to username ? #3206

Open
Deadman69 opened this issue Jan 26, 2025 · 0 comments
Open

Restricting topics to username ? #3206

Deadman69 opened this issue Jan 26, 2025 · 0 comments
Labels
Status: Available No one has claimed responsibility for resolving this issue.

Comments

@Deadman69
Copy link

Hello,

I would like to limit my usergroup "user" to access only their specific topic using dynamic-security.json
I have tried something like this

{
  "rolename": "user",
  "acls": [
    {
      "acltype": "publishClientSend",
      "topic": "agents/${username}",
      "priority": 0,
      "allow": true
    },
    {
      "acltype": "publishClientReceive",
      "topic": "agents/${username}",
      "priority": 0,
      "allow": true
    },
    {
      "acltype": "subscribePattern",
      "topic": "agents/${username}",
      "priority": 0,
      "allow": true
    },
    {
      "acltype": "unsubscribePattern",
      "topic": "agents/${username}",
      "priority": 0,
      "allow": true
    }
  ]
}

But it seems this is not possible. I have tried to search for documentation on this subject but i couldn't find anything.

I could create a group for each user restricting to agents/xxxxxxxx but I don't think it would be a good strategy since I will need (at least) a few thousands clients.
Having a group being able to restrict users to their username would be better than creating a lot of groups for me.

Is it possible or should I just allow all my users to read everything and encrypt my messages ? (I am on a semi-public infrastructure).

Thanks

@github-actions github-actions bot added the Status: Available No one has claimed responsibility for resolving this issue. label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available No one has claimed responsibility for resolving this issue.
Projects
None yet
Development

No branches or pull requests

1 participant