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

Fixed a crash occurring for any encrypted communication when running NodeJs 17 on linux based machines #3046

Merged
merged 3 commits into from Dec 29, 2021

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Dec 28, 2021

♻️ Current situation

As reported in homebridge/HAP-NodeJS#916 (and #2999), nodejs v17 ships with OpenSSL 3 on linux machines which require 96 bits nonce length for chacha20-poly1305 (OpneSSL 1.x did automatically fill up with zeros).

This is the PR for release 1.3.9 and is available as a beta release already.

💡 Proposed solution

This PR upgrades the HAP-NodeJS library with an according fix in the crypto handling.

⚙️ Release Notes

  • Fixed a crash handling cipher texts when running node 17 on linux based machines.

➕ Additional Information

Testing

--

Reviewer Nudging

--

* Upgraded HAP-NodeJS to latest 0.9.8 beta line
@github-actions github-actions bot added the fix label Dec 28, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1628866388

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 24.918%

Totals Coverage Status
Change from base Build 1492292114: 0.0%
Covered Lines: 377
Relevant Lines: 1283

💛 - Coveralls

@coveralls
Copy link

coveralls commented Dec 28, 2021

Pull Request Test Coverage Report for Build 1632309433

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 24.918%

Totals Coverage Status
Change from base Build 1492292114: 0.0%
Covered Lines: 377
Relevant Lines: 1283

💛 - Coveralls

@Supereg Supereg changed the title Fixed a crash occurring for any encry when running NodeJs 17 on linux based machines Fixed a crash occurring for any encrypted communication when running NodeJs 17 on linux based machines Dec 29, 2021
@Supereg Supereg marked this pull request as ready for review December 29, 2021 00:32
@Supereg Supereg merged commit a9388a5 into master Dec 29, 2021
@Supereg Supereg deleted the beta-1.3.9 branch December 29, 2021 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants