[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: I0ee95fc56130e51bf5c799d252e79a469492b7db
(cherry picked from commit 541395c424)
This commit is contained in:
Takashi Kajinami 2023-03-20 18:26:17 +09:00
parent 766cfd8d63
commit bda31ec62c
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ COORDINATION_GROUP = cfg.OptGroup(
COORDINATION_OPTS = [
cfg.StrOpt(
'backend_url',
secret=True,
help=(
'The backend URL to use for distributed coordination. If '
'unset services that need coordination will function as '