[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: Ib918532d82c4633add7fad9c8441868cfd84001b
This commit is contained in:
Takashi Kajinami 2023-03-20 18:22:05 +09:00
parent bb36bb618e
commit 1eb2a7ac86

View File

@ -28,6 +28,7 @@ LOG = log.getLogger(__name__)
OPTS = [
cfg.StrOpt('backend_url',
secret=True,
help='The backend URL to use for distributed coordination. If '
'left empty, alarm evaluation won\'t do workload '
'partitioning and will only function correctly if a '