[coordination] backend_url should be secret

The backend_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[coordination]
backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: If0f142a742d407e5e91e422ef3109002b37c475d
This commit is contained in:
Takashi Kajinami 2023-12-14 15:41:54 +09:00
parent 8cf0b3a9f8
commit 969cccb0c5
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ from ironic_inspector.common.i18n import _
_OPTS = [
cfg.StrOpt('backend_url',
default='memcached://localhost:11211',
secret=True,
help=_('The backend URL to use for distributed coordination. '
'EXPERIMENTAL.')),
]