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

PostgreSQL SSL connection #260

Closed
mts-dyt opened this issue Jun 30, 2022 · 2 comments
Closed

PostgreSQL SSL connection #260

mts-dyt opened this issue Jun 30, 2022 · 2 comments
Assignees

Comments

@mts-dyt
Copy link

mts-dyt commented Jun 30, 2022

Hello bentoml team 👋

I am trying to build a Yatai production ready platform on AZURE.
The database is hosted on an external Azure Postgres Single server but I am unable to configure the connection to the db because of the ssl mode.
In Production environment, our security policies only allow connection with SSL: sslmode=require but the Postgres connection string can only use non-ssl connection as it seems to be hard-coded here:

uri := fmt.Sprintf("postgres://%s:%s@%s:%d/%s?sslmode=disable",

Is it possible to have an option to select the SSL mode pour the PG connection?

@yubozhao
Copy link
Contributor

@mts-dyt Yep. We will try to get this issue resolved soon

@yetone
Copy link
Member

yetone commented Jul 1, 2022

@mts-dyt Thanks for your report again! I have added a helm chart value to set the sslmode of PostgreSQL, you can install v0.3.9 to use it. https://github.com/bentoml/yatai-chart/blob/main/values.yaml#L47

@yetone yetone closed this as completed Jul 1, 2022
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

3 participants