-
Notifications
You must be signed in to change notification settings - Fork 169
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
fix: validate downloaded node #20821
Conversation
Validate downloaded node against the provided sha256 hash. Fixes #20661
flow-server/src/main/java/com/vaadin/flow/internal/MessageDigestUtil.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/internal/MessageDigestUtil.java
Show resolved
Hide resolved
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 proposed some additional minor changes.
The only potential "blocker" is the missing Javadoc in MessageDigestUtil
.
Other than that, tested locally and it works great!
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/VerificationException.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/VerificationException.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/NodeInstaller.java
Outdated
Show resolved
Hide resolved
Update log messages
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.7.0.alpha4 and is also targeting the upcoming stable 24.7.0 version. |
Validate downloaded node
against the provided
sha256 hash.
Fixes #20661