简体   繁体   English

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

[英]Restricting / Protecting Topics with MQTT and Solace

I'm working toward an event-driven simulation infrastructure using Solace's PubSub+ for MQTT as a broker.我正在使用 Solace 的 PubSub+ for MQTT 作为代理来开发事件驱动的模拟基础设施。 I have a type of control message topic prefixed by control/ .我有一种以control/为前缀的控制消息主题。

Is there anyway to protect/restrict publish access to this topic prefix (or specific topics in general) to one authenticated user (ie the controller node)?无论如何保护/限制对该主题前缀(或一般特定主题)的发布访问权限给一个经过身份验证的用户(即控制器节点)?

Thank you for your time!感谢您的时间!

yes indeed there is!是的,确实有! What you are inquiring about is configuring access control list under the Client Authorization.您查询的是在客户端授权下配置访问控制列表。 Check out more information about ACLs in the docs here .此处文档中查看有关 ACL 的更多信息。 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. ACL 在代理管理控制台上配置,因此无论您是使用本地代理(例如通过 docker)、云解决方案 (Solace Cloud) 还是设备,您都可以从“访问控制”选项卡访问您的 ACL 并配置您的用户和主题订阅。 You can also check out the Solace Community forum where you can see a bunch of people asking questions about Solace related concepts and messaging in general.您还可以查看Solace 社区论坛,在那里您可以看到一群人在询问有关 Solace 相关概念和一般消息的问题。

Note: if you are using MQTT to connect to the broker, you can create a username on the broker with predefined authentication.注意:如果您使用 MQTT 连接到代理,您可以使用预定义的身份验证在代理上创建用户名。 You will use this authentication during your mqtt client connection.您将在 mqtt 客户端连接期间使用此身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM