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

SSL connection support for DB's #106

Open
ziadkiwan opened this issue Feb 28, 2022 · 2 comments
Open

SSL connection support for DB's #106

ziadkiwan opened this issue Feb 28, 2022 · 2 comments

Comments

@ziadkiwan
Copy link

Hello,
we are trying to setup mainflux on a managed Database service and we are wondering if there is SSL support for database connection if yes, then how to enable and path the SSL certificate for the database connection ?

  ## If you want to use an external database, set this to false and change postgresqlHost
  enabled: false
  name: postgresql-users
  postgresqlHost: localhost
  postgresqlUsername: postgres
  postgresqlPassword: mainflux
  postgresqlDatabase: users
  resources:
    requests:
      cpu: 25m
  persistence:
    size: 1Gi```
@blokovi
Copy link
Contributor

blokovi commented Mar 1, 2022

Hello @ziadkiwan
The short answer is currently this chart doesn't support SSL connection to DB
But, if you look at core services, for example users, you will see that this is supported with environment variables MF_USERS_DB_SSL_MODE, MF_USERS_DB_SSL_CERT, MF_USERS_DB_SSL_KEY and MF_USERS_DB_SSL_ROOT_CERT
I haven't tried SSL connection to external db, but with some modification of this chart maybe you can try. You can try adding this env vars into users deployment template and test it

@ziadkiwan
Copy link
Author

Hello @blokovi,

Thank you for the informative answer, i will edit the template and the helm chart and provide a PR request.

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

No branches or pull requests

2 participants