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

pgmoon.crypto better support for resty.openssl / resty.string libraries #117

Merged
merged 5 commits into from
Feb 4, 2022
Merged

pgmoon.crypto better support for resty.openssl / resty.string libraries #117

merged 5 commits into from
Feb 4, 2022

Conversation

bungle
Copy link
Contributor

@bungle bungle commented Jan 18, 2022

Summary

  • Adds random_bytes function to pgmoon.crypto compatibility layer and makes use of it in pgmoon.init
  • Adds x509_digest function to pgmoon.crypto compatibility layer and makes use of it in pgmoon.init
  • Adds resty.openssl support to hmac_sha256
  • Adds resty.openssl and resty.string support to digest_sha256

We don't anymore ship luaossl with Kong and this causes our users issues with scram-sha-256 authentication as reported in: Kong/kong#8259

This PR fixes it so that it works with resty.openssl library too (the one that is shipped with Kong).

@bungle
Copy link
Contributor Author

bungle commented Feb 2, 2022

Hi @leafo, if you have time, could you give some eye to this? I can make changes as requested.

@leafo leafo merged commit d384c40 into leafo:master Feb 4, 2022
@leafo
Copy link
Owner

leafo commented Feb 4, 2022

Thanks, looks good

@leafo
Copy link
Owner

leafo commented Feb 17, 2022

Sorry about the delay publishing, 1.14 is now out on luarocks and opm

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.

None yet

2 participants