From cbaf71edfa757f13c729126777d8170fd6734e3e Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Wed, 30 Mar 2016 09:07:59 +0300 Subject: [PATCH] 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 --- oslo_messaging/notify/notifier.py | 1 + oslo_messaging/transport.py | 1 + 2 files changed, 2 insertions(+) diff --git a/oslo_messaging/notify/notifier.py b/oslo_messaging/notify/notifier.py index 54658c0b3..2d13e0329 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 144d1a7f3..859c91393 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.'),