[英]How to hide/encrypt password in Sensu configuration?
I have following configuration to connect with RabbitMQ server. 我有以下配置要与RabbitMQ服务器连接。 While configuring Sensu , rabbitmq password given in plain text. 配置Sensu时,rabbitmq密码以纯文本形式给出。 For security issue, I need to hide or encrypted this password. 出于安全问题,我需要隐藏或加密此密码。 How can we do it? 我们该怎么做?
File content : /etc/sensu/rabbitmq.json
文件内容: /etc/sensu/rabbitmq.json
{
"rabbitmq": {
"host": "127.0.0.1",
"port": 5672,
"vhost": "/sensu",
"user": "sensu",
"password": "**secret**"
}
}
Thanks in advance!! 提前致谢!!
If your goal is to have encryption in-flight with TLS, you'll want to look into enabling TLS listeners for RabbitMQ . 如果您的目标是使用TLS进行加密,则需要考虑为RabbitMQ启用TLS侦听器 。
Sensu's official documentation also shows how to configure Sensu to communicate with a TLS-enabled RabbitMQ. Sensu的官方文档还显示了如何配置Sensu与启用TLS的RabbitMQ通信。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.