-
Notifications
You must be signed in to change notification settings - Fork 440
TEZ-4419: Upgrade node and yarn version and fix npm security issues in Tez UI module #215
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
Conversation
…fix the vulnerability [TEZ-4423][CVE-2021-44906] Upgrade minimist version from 0.0.8 to 1.2.6 to fix the vulnerability [TEZ-4422][CVE-2021-43138] Upgrade async from 2.3.0 to 2.6.4 to fix the vulnerability
… 4.1.2 to fix vulnerability
….1.2. The cryptiles 4.1.2 version requires node version>=8.9.0
… cryptiles 4.1.2 version and upgrade lodash.merge version to 4.6.2 to fix vulnerability
|
💔 -1 overall
This message was automatically generated. |
|
@abstractdog @rbalamohan |
pom.xml
Outdated
| <protoc.path>${env.PROTOC_PATH}</protoc.path> | ||
| <scm.url>scm:git:https://gitbox.apache.org/repos/asf/tez.git</scm.url> | ||
| <frontend-maven-plugin.version>1.4</frontend-maven-plugin.version> | ||
| <frontend-maven-plugin.version>1.8.0</frontend-maven-plugin.version> |
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.
Please change this to 1.12.1
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.
When we change the version to anything more than 1.8.0, this is the error in the build pipeline. The plugin com.github.eirslett:frontend-maven-plugin:1.12.1 requires Maven version 3.6.0 @guptanikhil007
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.
Cool, then let's go with 1.8.0 only
| <configuration> | ||
| <nodeVersion>${nodeVersion}</nodeVersion> | ||
| <yarnVersion>v0.21.3</yarnVersion> | ||
| <yarnVersion>v1.6.0</yarnVersion> |
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.
Please mention the RFC which adds selective dependency resolution in the description.
|
💔 -1 overall
This message was automatically generated. |
| <webappDir>src/main/webapp</webappDir> | ||
|
|
||
| <nodeVersion>v5.12.0</nodeVersion> | ||
| <nodeVersion>v8.9.0</nodeVersion> |
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.
maybe we can try with v16 ?
https://nodejs.org/en/about/releases/
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.
@slachiewicz When I update the node version to 16.15.1, this is the error that I get :
yarn run v1.6.0
(node:2298) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use node --trace-deprecation ... to show where the warning was created)
$ TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod
exports.dir = path.resolve(os.tmpDir());
^
TypeError: os.tmpDir is not a function
at Object. (/home/tez-ui/src/main/webapp/node_modules/temp/lib/temp.js:273:45)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/amanraj2520/Repositories/wildfire-tez/tez-ui/src/main/webapp/node_modules/ember-cli/lib/tasks/install-blueprint.js:7:21)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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.
What I think this error means is that we need to replace all the places of occurrence of new Buffer() to either Buffer.alloc() or Buffer.from(). Let me know you thoughts
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.
Probably stack should be upgraded. I commented on Node's version because currently 16 is LTS version. I don't have experience with frontend tools.
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.
Yes thats true, but I think it will be another big change. I think we should make this change first and then work on upgrading the stack. Any thoughts ? @abstractdog @slachiewicz
|
thanks guys for taking care of security issues in Tez! |
|
TEZ-4419 is resolved, I think we can close this PR |
Upgrade node and yarn version and fix npm security issues in Tez UI module
Track this issue:
https://issues.apache.org/jira/browse/TEZ-4419
The RFC documentation which adds selective dependency resolution in the description : https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-selective-versions-resolutions.md