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:
huananhuawei 2016-08-29 19:29:04 +08:00
parent 4eb2686854
commit 033284a419
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ volume_opts = [
'developers. Valid values are method and api.'),
cfg.MultiOpt('replication_device',
item_type=types.Dict(),
secret=True,
help="Multi opt of dictionaries to represent a replication "
"target device. This option may be specified multiple "
"times in a single config section to specify multiple "