Mark password config options with secret
Config object supports masking values when writing out if the secret flag is set on the option definition. This change flags all quantum options containing a password. Change-Id: I68d9bf80c673acc72db22dc2c6907ee180dcc605
This commit is contained in:
parent
b393aff794
commit
73320ce9f7
@ -410,7 +410,8 @@ class DeviceManager(object):
|
||||
cfg.StrOpt('admin_user',
|
||||
help=_("Admin username")),
|
||||
cfg.StrOpt('admin_password',
|
||||
help=_("Admin password")),
|
||||
help=_("Admin password"),
|
||||
secret=True),
|
||||
cfg.StrOpt('admin_tenant_name',
|
||||
help=_("Admin tenant name")),
|
||||
cfg.StrOpt('auth_url',
|
||||
|
@ -42,7 +42,8 @@ class MetadataProxyHandler(object):
|
||||
cfg.StrOpt('admin_user',
|
||||
help=_("Admin user")),
|
||||
cfg.StrOpt('admin_password',
|
||||
help=_("Admin password")),
|
||||
help=_("Admin password"),
|
||||
secret=True),
|
||||
cfg.StrOpt('admin_tenant_name',
|
||||
help=_("Admin tenant name")),
|
||||
cfg.StrOpt('auth_url',
|
||||
@ -58,7 +59,8 @@ class MetadataProxyHandler(object):
|
||||
help=_("TCP Port used by Nova metadata server.")),
|
||||
cfg.StrOpt('metadata_proxy_shared_secret',
|
||||
default='',
|
||||
help=_('Shared secret to sign instance-id request'))
|
||||
help=_('Shared secret to sign instance-id request'),
|
||||
secret=True)
|
||||
]
|
||||
|
||||
def __init__(self, conf):
|
||||
|
@ -40,7 +40,8 @@ class QuantumDebugAgent():
|
||||
cfg.StrOpt('admin_user',
|
||||
help=_("Admin user")),
|
||||
cfg.StrOpt('admin_password',
|
||||
help=_("Admin password")),
|
||||
help=_("Admin password"),
|
||||
secret=True),
|
||||
cfg.StrOpt('admin_tenant_name',
|
||||
help=_("Admin tenant name")),
|
||||
cfg.StrOpt('auth_url',
|
||||
|
@ -70,7 +70,8 @@ restproxy_opts = [
|
||||
help=_("A comma separated list of servers and port numbers "
|
||||
"to proxy request to.")),
|
||||
cfg.StrOpt('serverauth', default='username:password',
|
||||
help=_("Server authentication")),
|
||||
help=_("Server authentication"),
|
||||
secret=True),
|
||||
cfg.BoolOpt('serverssl', default=False,
|
||||
help=_("Use SSL to connect")),
|
||||
cfg.BoolOpt('syncdata', default=False,
|
||||
|
@ -37,7 +37,8 @@ proxy_plugin_opts = [
|
||||
cfg.StrOpt('admin_user',
|
||||
help=_("Admin user")),
|
||||
cfg.StrOpt('admin_password',
|
||||
help=_("Admin password")),
|
||||
help=_("Admin password"),
|
||||
secret=True),
|
||||
cfg.StrOpt('admin_tenant_name',
|
||||
help=_("Admin tenant name")),
|
||||
cfg.StrOpt('auth_url',
|
||||
|
Loading…
Reference in New Issue
Block a user