Fix the password print in cinder-volume.log issue
In cinder.conf replication_device may contains replication remote device password,and in cinder.volume.driver secret is not set 'true' for replication_device, So when start cinder volume service,replication remote device sensitive information will print in cinder volume log, it will cause some security problems. This commit fixes that by setting secret=true for replication_device in cinder.volume.driver. Change-Id: I710b557768ca3df0303d70b43b3c74247eed6b24 Closes-Bug: #1617534
This commit is contained in:
parent
4eb2686854
commit
033284a419
|
@ -216,6 +216,7 @@ volume_opts = [
|
||||||
'developers. Valid values are method and api.'),
|
'developers. Valid values are method and api.'),
|
||||||
cfg.MultiOpt('replication_device',
|
cfg.MultiOpt('replication_device',
|
||||||
item_type=types.Dict(),
|
item_type=types.Dict(),
|
||||||
|
secret=True,
|
||||||
help="Multi opt of dictionaries to represent a replication "
|
help="Multi opt of dictionaries to represent a replication "
|
||||||
"target device. This option may be specified multiple "
|
"target device. This option may be specified multiple "
|
||||||
"times in a single config section to specify multiple "
|
"times in a single config section to specify multiple "
|
||||||
|
|
Loading…
Reference in New Issue