Mask database.event_connection details in logs
In notification and collector logs, database connection details are masked, but other connection strings are not. This fix masks the event_connection, metering_connection and alarm_connection strings. Change-Id: Ib1fdc02e0c0d9cca1201f8304db4584d14498de1 Closes-Bug: #1456263
This commit is contained in:
parent
273e9eaf37
commit
d05a8f0a37
@ -50,10 +50,12 @@ OPTS = [
|
|||||||
help=("Number of seconds that events are kept "
|
help=("Number of seconds that events are kept "
|
||||||
"in the database for (<= 0 means forever).")),
|
"in the database for (<= 0 means forever).")),
|
||||||
cfg.StrOpt('metering_connection',
|
cfg.StrOpt('metering_connection',
|
||||||
|
secret=True,
|
||||||
default=None,
|
default=None,
|
||||||
help='The connection string used to connect to the metering '
|
help='The connection string used to connect to the metering '
|
||||||
'database. (if unset, connection is used)'),
|
'database. (if unset, connection is used)'),
|
||||||
cfg.StrOpt('alarm_connection',
|
cfg.StrOpt('alarm_connection',
|
||||||
|
secret=True,
|
||||||
default=None,
|
default=None,
|
||||||
help='The connection string used to connect to the alarm '
|
help='The connection string used to connect to the alarm '
|
||||||
'database. (if unset, connection is used)'),
|
'database. (if unset, connection is used)'),
|
||||||
@ -62,6 +64,7 @@ OPTS = [
|
|||||||
help=("Number of seconds that alarm histories are kept "
|
help=("Number of seconds that alarm histories are kept "
|
||||||
"in the database for (<= 0 means forever).")),
|
"in the database for (<= 0 means forever).")),
|
||||||
cfg.StrOpt('event_connection',
|
cfg.StrOpt('event_connection',
|
||||||
|
secret=True,
|
||||||
default=None,
|
default=None,
|
||||||
help='The connection string used to connect to the event '
|
help='The connection string used to connect to the event '
|
||||||
'database. (if unset, connection is used)'),
|
'database. (if unset, connection is used)'),
|
||||||
|
Loading…
Reference in New Issue
Block a user