-
Notifications
You must be signed in to change notification settings - Fork 346
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
pass ssl settings to async driver #587
Conversation
@@ -1285,6 +1286,7 @@ ctx.poolMaxQueueSize=4 | |||
ctx.poolMaxObjects=4 | |||
ctx.poolMaxIdle=999999999 | |||
ctx.poolValidationInterval=100 | |||
ctx.sslmode=disable # optional, one of [disable|prefer|require|verify-ca|verify-full] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add an example of sslrootcert
as well?
def sslProps = Map( | ||
"sslmode " -> Try(config.getString("sslmode")).toOption, | ||
"sslrootcert" -> Try(config.getString("sslrootcert")).toOption | ||
).collect { case (key, Some(value)) => key -> value } | ||
|
||
def configuration = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a new unit test AsyncContextConfigSpec.scala
and test this method?
sure, done |
@liorhar It seems that there are source files unformatted. Also, could you please rebase your branch? Github doesn't allow me to do it. |
1d2139d
to
9528b45
Compare
sure. done |
thanks @liorhar! |
Fixes #586
Problem
It's impossible to use the async driver with postgresql or mysql that require secure connection
Solution
Pass ssl properties to async conext config
Notes
I am not sure how can this change be unit tested
Checklist
README.md
if applicable[WIP]
to the pull request title if it's work in progresssbt scalariformFormat test:scalariformFormat
to make sure that the source files are formatted@getquill/maintainers