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

Groups with ACL #251

Open
black-ghost-off opened this issue Sep 9, 2024 · 0 comments
Open

Groups with ACL #251

black-ghost-off opened this issue Sep 9, 2024 · 0 comments

Comments

@black-ghost-off
Copy link

I have two groups of devices(temp sensors, pressure sensors(for example), two db mqtt_user

{
  "_id": {
    "$oid": "66dea59834e17968c96c5150"
  },
  "username": "root",
  "password": "test",
  "is_superuser": true
}

and mqtt_acl

{
  "_id": {
    "$oid": "66decb8a170ac49571e86773"
  },
  "group": "sensorList1",
  "permission": "allow",
  "action": "all",
  "topics": [
    "sensors/sensorList1/%devicename%"
  ]
}

{
  "_id": {
    "$oid": "66decb8a170ac49571e86773"
  },
  "group": "sensorList2",
  "permission": "allow",
  "action": "all",
  "topics": [
    "sensors/sensorList2/%devicename%"
  ]
}

How do I write a filter in authorization/detail/mongodb? The documentation does not answer these questions accurately.

Second question: how to configure to have the same username and deviceId(clientID).(or remove username altogether, only clientID)

Third question: How to implement ACL via tls (each device should have its own tls key)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant