DashboardAccess Control
Policy Simulator
Test access control policies before deploying
The policy simulator lets you test whether a specific user would be allowed or denied access to a topic, without deploying the policy.
Using the Simulator
- Navigate to Dashboard → Access Control
- Click the Simulator button in the toolbar
- Enter test parameters:
- Username: The MQTT username to test (e.g.,
sensor-001) - Topic: The topic to test (e.g.,
data/sensor-001/temperature) - Action:
publishorsubscribe
- Username: The MQTT username to test (e.g.,
- Click Simulate
- The result shows Allowed or Denied with the matching rule
What Gets Tested
The simulator evaluates your current editor content, not the deployed policy. This means you can:
- Edit the policy in the editor
- Test it in the simulator
- Iterate until the rules are correct
- Then deploy
The simulator tests against the policy currently in the editor, not the live deployed policy. This lets you safely experiment before deploying.
Example
Testing with:
- Username:
sensor-001 - Topic:
data/sensor-001/temperature - Action:
publish
Against this policy:
{
"rules": [
{ "user": "sensor-*", "topic": "data/{username}/#", "permission": "publish" }
]
}Result: Allowed - matches rule 1 (sensor-* matches sensor-001, data/{username}/# resolves to data/sensor-001/# which matches data/sensor-001/temperature)