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:
Michael J Fork 2013-02-04 15:27:37 +00:00
parent 5205ea1a1e
commit 664869d843
5 changed files with 12 additions and 6 deletions

View File

@ -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',

View File

@ -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):

View File

@ -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',

View File

@ -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,

View File

@ -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',