Ensure password values are not logged

Make sure that all password options is defined with secret=True so that
the given values do not appear in debug logs.

Also remove the redundant default=None .

Change-Id: I989e825ef160a65a5a72c58d6fd4e8099044bcd5
This commit is contained in:
Takashi Kajinami 2024-04-22 15:35:50 +09:00
parent a30697d3e7
commit f8a53c037a
7 changed files with 5 additions and 3 deletions

View File

@ -30,6 +30,7 @@ EMC_NAS_OPTS = [
cfg.StrOpt('emc_nas_login',
help='User name for the EMC server.'),
cfg.StrOpt('emc_nas_password',
secret=True,
help='Password for the EMC server.'),
cfg.HostAddressOpt('emc_nas_server',
help='EMC server hostname or IP address.'),

View File

@ -55,6 +55,7 @@ hdfs_native_share_opts = [
cfg.StrOpt('hdfs_ssh_name',
help='HDFS namenode ssh login name.'),
cfg.StrOpt('hdfs_ssh_pw',
secret=True,
help='HDFS namenode SSH login password, '
'This parameter is not necessary, if '
'\'hdfs_ssh_private_key\' is configured.'),

View File

@ -31,13 +31,11 @@ infortrend_nas_opts = [
default='manila',
help='User for the Infortrend NAS server.'),
cfg.StrOpt('infortrend_nas_password',
default=None,
secret=True,
help='Password for the Infortrend NAS server. '
'This is not necessary '
'if infortrend_nas_ssh_key is set.'),
cfg.StrOpt('infortrend_nas_ssh_key',
default=None,
help='SSH key for the Infortrend NAS server. '
'This is not necessary '
'if infortrend_nas_password is set.'),

View File

@ -35,7 +35,6 @@ macrosan_opts = [
default='manila',
help='Username for the Macrosan NAS server.'),
cfg.StrOpt('macrosan_nas_password',
default=None,
secret=True,
help='Password for the Macrosan NAS server.'),
cfg.StrOpt('macrosan_nas_http_protocol',

View File

@ -45,6 +45,7 @@ maprfs_native_share_opts = [
default="mapr",
help='Cluster admin user ssh login name.'),
cfg.StrOpt('maprfs_ssh_pw',
secret=True,
help='Cluster node SSH login password, '
'This parameter is not necessary, if '
'\'maprfs_ssh_private_key\' is configured.'),

View File

@ -34,6 +34,7 @@ tegile_opts = [
cfg.StrOpt('tegile_nas_login',
help='User name for the Tegile NAS server.'),
cfg.StrOpt('tegile_nas_password',
secret=True,
help='Password for the Tegile NAS server.'),
cfg.StrOpt('tegile_default_project',
help='Create shares in this project')]

View File

@ -35,6 +35,7 @@ ZFSSA_OPTS = [
cfg.StrOpt('zfssa_auth_user',
help='ZFSSA management authorized username.'),
cfg.StrOpt('zfssa_auth_password',
secret=True,
help='ZFSSA management authorized user\'s password.'),
cfg.StrOpt('zfssa_pool',
help='ZFSSA storage pool name.'),