Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External database password not working as expected #28

Open
ngc4579 opened this issue Jun 20, 2023 · 1 comment
Open

External database password not working as expected #28

ngc4579 opened this issue Jun 20, 2023 · 1 comment

Comments

@ngc4579
Copy link

ngc4579 commented Jun 20, 2023

The configuration for an external database as explained in the README does not seem to work:

---
config:
  dbHost: postgres.example.com
  dbPort: 5432
  dbName: mydatabase
  dbUsername: myusername
  dbPassword: env:POSTGRES_DB_PASSWORD

server:
  env:
    - name: POSTGRES_DB_PASSWORD
      valueFrom:
        secretKeyRef:
          name: mysecret
          key: mypassword

Starting the server with an accordingly prepared secret does not work (bad credentials). This does not occur when inserting the password into the values.yaml directly:

config:
  ...
  dbPassword: <somePassword>

It seems the server does not evaluate the prefix env: in order to use the mentioned environment variable instead of a string literal.

@NumenDivinum
Copy link

I also have faced it
Seem unrelated to Helm Chart though, the string are passed correctly to the app via configmap, but are not parsed properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants