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

Removed custom SCRAM implementation in favor of library provided by... #260

Merged
merged 2 commits into from
Sep 16, 2020

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented Sep 13, 2020

…Ongres and used in official JDBC driver. No need to maintain the SCRAM crypto stuff this way and guaranteed we won't have any weird compatibility issues.

BTW, the use of SecureRandom.getInstanceStrong() in the original implementation led to some hanging issues on machines without enough entropy. See https://tersesystems.com/blog/2015/12/17/the-right-way-to-use-securerandom/ for details on this, but this led me to investigate what the official JDBC client does for nonce creation. That then led me to this SCRAM library from Ongres which is nicely decoupled from everything JDBC.

@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2020

Codecov Report

Merging #260 into master will decrease coverage by 0.25%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
- Coverage   84.77%   84.52%   -0.26%     
==========================================
  Files         111      110       -1     
  Lines        1327     1286      -41     
  Branches       27       25       -2     
==========================================
- Hits         1125     1087      -38     
+ Misses        202      199       -3     
Impacted Files Coverage Δ
...les/core/src/main/scala/net/protocol/Startup.scala 93.54% <90.90%> (+2.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8804dad...36da01c. Read the comment docs.

@mpilquist
Copy link
Member Author

Any chance for a release with this PR soon?

@tpolecat tpolecat merged commit 83799f1 into typelevel:master Sep 16, 2020
@tpolecat
Copy link
Member

tpolecat commented Sep 16, 2020

tagged v0.0.21, building now

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.

3 participants