summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-03-30 09:07:59 +0300
committerBrant Knudson <bknudson@us.ibm.com>2016-04-07 13:29:18 +0000
commit8aa90975566343b0bd10164e11b9f0072e74d6c3 (patch)
treeb765981973f9060fe7a7e8982ff96a4888e86764
parentceda1f653630071c121d8c137f834be22a156fa3 (diff)
downloadoslo-messaging-8aa90975566343b0bd10164e11b9f0072e74d6c3.tar.gz
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
-rw-r--r--oslo_messaging/notify/notifier.py1
-rw-r--r--oslo_messaging/transport.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/oslo_messaging/notify/notifier.py b/oslo_messaging/notify/notifier.py
index 54658c0..2d13e03 100644
--- a/oslo_messaging/notify/notifier.py
+++ b/oslo_messaging/notify/notifier.py
@@ -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.'),
diff --git a/oslo_messaging/transport.py b/oslo_messaging/transport.py
index 144d1a7..859c913 100644
--- a/oslo_messaging/transport.py
+++ b/oslo_messaging/transport.py
@@ -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.'),