Make transport_url config option secret

The transport_url may contain credentials to the message queue; For
this reason, this option should be secret for it to not leak into the
logs.

Closes-Bug: #1567233

Change-Id: I49c641a2662976d7220e4222e3c4a4d2586b1336
This commit is contained in:
Juan Antonio Osorio Robles 2016-03-30 09:07:59 +03:00
parent 3728ccc831
commit cbaf71edfa
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ _notifier_opts = [
cfg.StrOpt('transport_url',
deprecated_name='notification_transport_url',
deprecated_group='DEFAULT',
secret=True,
help='A URL representing the messaging driver to use for '
'notifications. If not set, we fall back to the same '
'configuration used for RPC.'),

View File

@ -37,6 +37,7 @@ from oslo_messaging import exceptions
_transport_opts = [
cfg.StrOpt('transport_url',
secret=True,
help='A URL representing the messaging driver to use and its '
'full configuration. If not set, we fall back to the '
'rpc_backend option and driver specific configuration.'),