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

grafana.init: is not handling ssl_mode when database is postgres #87874

Open
dverzolla opened this issue May 14, 2024 · 0 comments
Open

grafana.init: is not handling ssl_mode when database is postgres #87874

dverzolla opened this issue May 14, 2024 · 0 comments

Comments

@dverzolla
Copy link

dverzolla commented May 14, 2024

What happened?

I'm configuring grafana helm chart and added the config below. Grafana should consider to set ssl_mode when using postgres, that's not happening.

  grafana.ini:
    database:
      type: postgres
      host: host:5432
      name: grafana
      user: grafana
      password: xxx
      ssl_model: require

Maybe there is something related with:

// TODO: support all postgres connection options

case migrator.Postgres:

If I set the env var GF_DATABASE_SSL_MODE, grafana works as expected.

What did you expect to happen?

Grafana parses the ssl_mode and set into postgres sql connection.

Did this work before?

Is the first time I am configuring it.

How do we reproduce it?

Install using helm chart and configure ssl_mode.
I am using aws rds postgres v16.

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Helm Chart 58.5.2:

Grafana platform?

Kubernetes

Datasource(s)?

No response

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

1 participant