-
Notifications
You must be signed in to change notification settings - Fork 26
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
Chore: Update to Node.js 20 #425
Conversation
6443b30
to
09a79e7
Compare
961d1ac
to
45ea265
Compare
@@ -59,9 +63,9 @@ | |||
"scripts": { | |||
"build-css": "sass --no-source-map src/index.scss src/index.css", | |||
"watch-css": "npm run build-css && sass --no-source-map -w src/index.scss src/index.css", | |||
"start-js": "react-scripts start", | |||
"start-js": "react-scripts --openssl-legacy-provider start", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should map which dependencies need this --openssl-legacy-provider
. So we know when we can remove this flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As described on the updated PR, the most relevant dependency for removing this flag is being discussed on #441
Superseded by #501 |
Acceptance Criteria
Notes on SSL usage
Starting with NodeJS 17, a security fix with breaking changes was implemented and dropped support to older versions of OpenSSL ( official announcement ). So, every dependency used has to be compatible with OpenSSL 3.0 from now on.
By inserting the
--openssl-legacy-provider
flag on ourstart
andbuild
scripts we can avoid this temporarily. Adding this flag does not decrease our security, but only keeps it in the same level as it was on the last version.A future PR will deal exclusively with upgrading this security point and removing this flag.
Notes on lockfile
NodeJS 20 could handle an upgrade of the lockfile version to
v3
. However, this forces an update of all the patches and minor versions of all the indirect dependencies. Until the React Router is updated, this approach is not feasible, as it breaks thenpm install
.A dedicated PR will be opened later to upgrade the lockfile.
Notes on building
The development environment runs correctly, and both the build script and the packaging was tested on linux
AppImage
.Security Checklist