Use "secret=True" for password-related options
This makes sure the value of the option is not leaked in the logs. Found using bandit. Change-Id: I6db2eea1d3f1ad3cacb749dbb9766c5d32cf047f
This commit is contained in:
parent
07c328255b
commit
52e624891f
@ -64,6 +64,7 @@ amqp1_opts = [
|
||||
cfg.StrOpt('ssl_key_password',
|
||||
default=None,
|
||||
deprecated_group='amqp1',
|
||||
secret=True,
|
||||
help='Password for decrypting ssl_key_file (if encrypted)'),
|
||||
|
||||
cfg.BoolOpt('allow_insecure_clients',
|
||||
@ -94,5 +95,6 @@ amqp1_opts = [
|
||||
cfg.StrOpt('password',
|
||||
default='',
|
||||
deprecated_group='amqp1',
|
||||
secret=True,
|
||||
help='Password for message broker authentication')
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user