Storage URIs should be secret
... because these can contain password as its element. Change-Id: Id570941ee3b02e7b60ca3330c36edb8f0f9f56fc
This commit is contained in:
parent
51350eabbe
commit
389bd83aaf
@ -67,6 +67,7 @@ ssl_ca_certs = cfg.StrOpt(
|
|||||||
|
|
||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
'uri',
|
'uri',
|
||||||
|
secret=True,
|
||||||
deprecated_opts=[cfg.DeprecatedOpt(
|
deprecated_opts=[cfg.DeprecatedOpt(
|
||||||
'uri',
|
'uri',
|
||||||
group=_deprecated_group), ],
|
group=_deprecated_group), ],
|
||||||
|
@ -18,6 +18,7 @@ _deprecated_group = 'drivers:storage:redis'
|
|||||||
|
|
||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
'uri', default="redis://127.0.0.1:6379",
|
'uri', default="redis://127.0.0.1:6379",
|
||||||
|
secret=True,
|
||||||
deprecated_opts=[cfg.DeprecatedOpt(
|
deprecated_opts=[cfg.DeprecatedOpt(
|
||||||
'uri',
|
'uri',
|
||||||
group=_deprecated_group), ],
|
group=_deprecated_group), ],
|
||||||
|
@ -17,7 +17,9 @@ from oslo_config import cfg
|
|||||||
_deprecated_group = 'drivers:storage:sqlalchemy'
|
_deprecated_group = 'drivers:storage:sqlalchemy'
|
||||||
|
|
||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
'uri', default='sqlite:///:memory:',
|
'uri',
|
||||||
|
default='sqlite:///:memory:',
|
||||||
|
secret=True,
|
||||||
deprecated_opts=[cfg.DeprecatedOpt(
|
deprecated_opts=[cfg.DeprecatedOpt(
|
||||||
'uri',
|
'uri',
|
||||||
group=_deprecated_group), ],
|
group=_deprecated_group), ],
|
||||||
|
@ -67,6 +67,7 @@ ssl_ca_certs = cfg.StrOpt(
|
|||||||
|
|
||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
'uri',
|
'uri',
|
||||||
|
secret=True,
|
||||||
deprecated_opts=[cfg.DeprecatedOpt(
|
deprecated_opts=[cfg.DeprecatedOpt(
|
||||||
'uri',
|
'uri',
|
||||||
group=_deprecated_group), ],
|
group=_deprecated_group), ],
|
||||||
|
@ -17,7 +17,9 @@ _deprecated_group = 'drivers:storage:redis'
|
|||||||
|
|
||||||
|
|
||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
'uri', default="redis://127.0.0.1:6379",
|
'uri',
|
||||||
|
default="redis://127.0.0.1:6379",
|
||||||
|
secret=True,
|
||||||
deprecated_opts=[cfg.DeprecatedOpt(
|
deprecated_opts=[cfg.DeprecatedOpt(
|
||||||
'uri',
|
'uri',
|
||||||
group=_deprecated_group), ],
|
group=_deprecated_group), ],
|
||||||
|
@ -21,6 +21,7 @@ auth_url = cfg.StrOpt(
|
|||||||
uri = cfg.StrOpt(
|
uri = cfg.StrOpt(
|
||||||
"uri",
|
"uri",
|
||||||
default="swift://demo:nomoresecrete@/demo",
|
default="swift://demo:nomoresecrete@/demo",
|
||||||
|
secret=True,
|
||||||
help="Custom URI describing the swift connection.")
|
help="Custom URI describing the swift connection.")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user