Skip to content

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.

2 participants