Skip to content

Is there a need to specify dbPassword multiple times? #280

@svenakela

Description

@svenakela

In this doc and example for ha config, the dbPassword is specified in multiple places.

The first extra secret, why is it needed when the last two are specified?

Here:

lapi:
  replicas: 2
  extraSecrets:
    dbPassword: "secretpassword"

Here:

  env:
    - name: DB_PASSWORD
      valueFrom: 

And here

config:
  config.yaml.local: |
    db_config:
      type:     mysql
      user:     crowdsec
      password: ${DB_PASSWORD}

If the DB password is in a secret, wouldn't it be better to configure the extraSecrets.dbPassword as a proper secret too? Writing passwords in plain text hurts my brain.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions