Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Newest AWS lambda runtime fails to decrypt #1750

Closed
kkayyali-magnet opened this issue Apr 24, 2024 · 1 comment
Closed

Newest AWS lambda runtime fails to decrypt #1750

kkayyali-magnet opened this issue Apr 24, 2024 · 1 comment

Comments

@kkayyali-magnet
Copy link

  • OpenPGP.js version: 5.0.0-3
  • Affected platform (Browser or Node.js version): AWS Lambda "Node18.x "v18.28 RuntimeARN: arn:aws:lambda:us-east-1::runtime:b475b23763329123d9e6f79f51886d0e1054f727f5b90ec945fcb2a3ec09afdd

Works fine on previous runtime (ARN: arn:aws:lambda:us-east-1::runtime:464db84005d4f68e67934a6df703e04e6e8782a50ec2882673a8e1c996ab814a) Node 18.21

Identical code base

Only error is

"stack": "Error: Error decrypting message: Decryption error\n at /opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:178290\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async go.decrypt (/opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:283085)\n at async /opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:335316\n at async Promise.all (index 0)\n at async /opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:335178\n at async Promise.all (index 0)\n at async /opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:334785\n at async Promise.all (index 0)\n at async oc.decryptSessionKeys (/opt/nodejs/node_modules/openpgp/dist/node/openpgp.min.js:2:334742)",

Wondering if there is a change to a dep, or perhaps crypto changed enough to cause an issue.

@larabr
Copy link
Collaborator

larabr commented Apr 25, 2024

You are on a pre-release version of the library.
Please upgrade to the latest version and see if the problem persists (v5.11.1).

@openpgpjs openpgpjs locked and limited conversation to collaborators Apr 29, 2024
@larabr larabr converted this issue into discussion #1753 Apr 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants