Skip to main content

Securing Your Broker

Rules define who can do what in your Coreflux broker. They control access to system operations, topic publishing/subscribing, and administrative functions—ensuring only authorized users can perform sensitive actions.
Think of Rules like a security guard at a building entrance. The guard checks your badge (permissions or group) and decides if you’re allowed through the door (the operation). Rules do the same for every broker operation.

When to Use Rules

For groups, precedence (lower priority number wins), default rules, and Visu panel access, see RBAC with LoT Rules.

In This Section


How to Deploy a Rule

Rules can be deployed in two ways: through a LoT Notebook (recommended) or via MQTT commands.
Custom topic and management ACL rules (-addRule) require a Growth or Enterprise license. Shipped default rules always apply.
Write your rule definition in a code cell and run it—the extension detects DEFINE RULE and sends the proper command to the broker.
Click the Run button. The notebook recognizes the LoT code and deploys it instantly.
This approach is ideal for:
  • Developing and testing rules interactively
  • Documenting your security configuration alongside the code
  • Sharing rule sets with your team as .lotnb files

Removing Rules

Remove a rule by name using the -removeRule command. Publish to $SYS/Coreflux/Command:
You can also use the Coreflux Entities panel in VS Code to view and remove deployed rules. Locked built-in system rules cannot be removed.

Updating Rules

To update an existing rule, deploy a new rule with the same name. The new definition replaces the existing one.

Viewing Active Rules

To see all deployed rules, subscribe to the rules system topic:
Or use the Coreflux Entities panel in VS Code if you have the LoT Notebooks extension installed.

Default Rules Reference

Coreflux ships two tiers of defaults: Custom rules use priorities from 100 to 1 000 000. Lower priority number wins; ties deny-wins; no match means deny. Details: RBAC with LoT Rules.

Next Steps

RBAC with LoT Rules

Groups, precedence, cookbook, and Visu panel access.

Rules Syntax

Conditions, scopes, and complete rule patterns.
Last modified on August 28, 2026