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

pass ssl settings to async driver #587

Merged
merged 1 commit into from
Oct 11, 2016
Merged

pass ssl settings to async driver #587

merged 1 commit into from
Oct 11, 2016

Conversation

liorhar
Copy link
Contributor

@liorhar liorhar commented Oct 9, 2016

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

  • Unit test all changes
  • Update README.md if applicable
  • Add [WIP] to the pull request title if it's work in progress
  • Squash commits that aren't meaningful changes
  • Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

@@ -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]
Copy link
Collaborator

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 =
Copy link
Collaborator

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?

@liorhar
Copy link
Contributor Author

liorhar commented Oct 10, 2016

sure, done

@fwbrasil
Copy link
Collaborator

@liorhar It seems that there are source files unformatted. Also, could you please rebase your branch? Github doesn't allow me to do it.

@liorhar liorhar force-pushed the ssl-conn branch 3 times, most recently from 1d2139d to 9528b45 Compare October 11, 2016 06:01
@liorhar
Copy link
Contributor Author

liorhar commented Oct 11, 2016

sure. done

@fwbrasil fwbrasil merged commit 7335f52 into zio:master Oct 11, 2016
@fwbrasil
Copy link
Collaborator

thanks @liorhar!

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

Successfully merging this pull request may close these issues.

2 participants