使用 MQTT 和 Solace 限制/保护主题

Restricting / Protecting Topics with MQTT and Solace

我正在使用 Solace 的 PubSub+ for MQTT 作为代理来开发事件驱动的模拟基础设施。我有一种以 control/.

为前缀的控制消息主题

是否可以 protect/restrict 向一个经过身份验证的用户(即控制器节点)发布对此主题前缀(或一般特定主题)的访问权限?

感谢您的宝贵时间!

是的,确实有!你问的是在Client Authorization下配置访问控制列表。在 docs here. ACLs are configured on the broker management console, so whether you are using a local broker (via docker for example), cloud solution (Solace Cloud) or an appliance, you access your ACLs from the "Access Control" tab and configure your users and topic subscriptions. You can also check out the Solace Community 论坛中查看有关 ACL 的更多信息,在那里您可以看到很多人在询问有关 Solace 相关概念和一般消息传递的问题。

注意:如果您使用 MQTT 连接到代理,您可以在具有预定义身份验证的代理上创建用户名。您将在 mqtt 客户端连接期间使用此身份验证。