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

fix(postgres-driver): Clean-up deprecation warning #531

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

jcw-
Copy link
Contributor

@jcw- jcw- commented Mar 23, 2020

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made (if issue reference is not provided)

When the pg driver is used with ssl set to true (e.g. CUBEJS_DB_SSL=true), the following deprecation warning is logged:

(node:23) DeprecationWarning: Implicit disabling of certificate verification is deprecated and will be removed in pg 8. Specify `rejectUnauthorized: true` to require a valid CA or `rejectUnauthorized: false` to explicitly opt out of MITM protection.

This PR updates how the ssl configuration options for the pg driver are set to address the deprecation.

Reference:
GSG-G8/Books-store#26
brianc/node-postgres#2089

@paveltiunov
Copy link
Member

@jcw- Hey Jc! Thanks for providing this! Change looks good to me. 👍

@jcw-
Copy link
Contributor Author

jcw- commented Mar 25, 2020

Oh great, I haven't had a chance to verify fix but if you're able to do so then I shall submit it, thanks!

@jcw- jcw- marked this pull request as ready for review March 25, 2020 04:32
@paveltiunov paveltiunov merged commit ed1e8da into cube-js:master Mar 26, 2020
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