-
Notifications
You must be signed in to change notification settings - Fork 73
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
(security): update webpack-dev-server to address cves #1473
(security): update webpack-dev-server to address cves #1473
Conversation
Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
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.
How have we tested the impact of this change? Can we validate it doesn't have impact on generated artifacts?
CHANGELOG.md
Outdated
@@ -40,6 +40,7 @@ | |||
|
|||
### 🛡 Security | |||
- Update cross-spawn to address CVE ([#1469](https://github.com/opensearch-project/oui/pull/1469)) | |||
- Update webpack and webpack-dev-server to address CVEs ([#1473](https://github.com/opensearch-project/oui/pull/1473)) |
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.
We'd want to to move the existing unreleased items to 1.18 and then add this to the unreleased section
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.
Makes sense, I'll update this
I've done cursory testing with the integration tests and by running the dev server. I'm planning on also doing the following
@virajsanghvi Let me know if this doesn't properly address your comment. |
Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
I've updated with the |
--env filename=${outputFilename} \ | ||
--env library-target=commonjs`, |
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.
These are no longer directly configurable from the cli after the update. I've updated these to get passed into the webpack config.
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.
nit: Anything you see around /* OUI -> EUI Aliases */
was semi-automatically added when we were adding aliases and are meant to be semi-automatically removable. Pulling this into a util function, while the originals code blocks will be removed with the next major release, the util will be left over.
PS: noticed that it would still be used by the OUI version after the next major 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.
Gotcha. The util is also used for the non-aliased build.
Signed-off-by: Daniel Rowe <[email protected]>
* (security): update webpack & webpack-dev-server Signed-off-by: Daniel Rowe <[email protected]> * update changelog, fix types Signed-off-by: Daniel Rowe <[email protected]> * revert webpack-cli upgrade Signed-off-by: Daniel Rowe <[email protected]> * address breaking changes with webpack-cli upgrade Signed-off-by: Daniel Rowe <[email protected]> * update changelog Signed-off-by: Daniel Rowe <[email protected]> * revert change to main webpack release Signed-off-by: Daniel Rowe <[email protected]> --------- Signed-off-by: Daniel Rowe <[email protected]> (cherry picked from commit b2005bd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* (security): update webpack & webpack-dev-server Signed-off-by: Daniel Rowe <[email protected]> * update changelog, fix types Signed-off-by: Daniel Rowe <[email protected]> * revert webpack-cli upgrade Signed-off-by: Daniel Rowe <[email protected]> * address breaking changes with webpack-cli upgrade Signed-off-by: Daniel Rowe <[email protected]> * update changelog Signed-off-by: Daniel Rowe <[email protected]> * revert change to main webpack release Signed-off-by: Daniel Rowe <[email protected]> --------- Signed-off-by: Daniel Rowe <[email protected]> (cherry picked from commit b2005bd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This addresses 11 CVEs associated with webpack-dev-server v3.
Issues Resolved
fixes #389
Verification
I was able to diff the
dist
artifacts with and without these changes. The only change across all of the generated artifacts is in the charts_theme module.I've validated that the imported chart theme object is identical as is the type definition file.
I've also manually validated the docs pages.
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.