Marking rabbitmq password config property as secret

Set `secret=True` so that its value will not be printed in logs to avoid
some security problems [1].

[1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L767

Change-Id: I9f41f334e0f32ee31c40c27c977ed801a68830e7
This commit is contained in:
Jeremy Liu 2017-01-18 17:08:44 +08:00
parent 1e60635123
commit 2c7131337f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ rabbit_opts = [
cfg.StrOpt('login', default='guest',
help='The RabbitMQ login.'),
cfg.StrOpt('password', default='guest',
cfg.StrOpt('password', default='guest', secret=True,
help='The RabbitMQ password.'),
cfg.StrOpt('virtual_host', default='/',