Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[security] minimist >= 1.2.2 #2267

Merged
merged 2 commits into from
Mar 18, 2020
Merged

Conversation

sirugh
Copy link
Contributor

@sirugh sirugh commented Mar 18, 2020

Description

  1. Migrated pwa-devdocs to yarn from npm.
  2. Used resolutions to resolve security vulnerability in pwa-devdocs and docker packages.

Related Issue

Closes PWA-449.

Acceptance

Verification Stakeholders

Specification

Verification Steps

  1. Verify docker did not break.
  2. Verify pwa-devdocs did not break.
  3. Verify that vulnerable versions of minimist are no longer included.

Screenshots / Screen Captures (if appropriate)

Checklist

  • I have updated the documentation accordingly, if necessary.
  • I have added tests to cover my changes, if necessary.

sirugh added 2 commits March 18, 2020 11:53
Signed-off-by: sirugh <rugh@adobe.com>
@sirugh sirugh changed the title Rugh/pwa 449 security fix [security] minimist >= 1.2.2 Mar 18, 2020
@@ -6,5 +6,8 @@
"license": "ISC",
"dependencies": {
"devcert": "~1.1.0"
},
"resolutions": {
"minimist": "^1.2.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using resolutions effectively "steps over" any transitive dependency requirements on older versions. This may cause issues, especially in this case where the resolution has a major bump.

The only other alternative to fixing this would be to update down the chain of transitive deps, but each of those packages also needs to get fixed/published. So this is the fastest way to resolve the security issues but it may cause a bug/break in the app.

@PWAStudioBot
Copy link
Contributor

Fails
🚫 A version label is required. A maintainer must add one.
Messages
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).
📖

Associated JIRA tickets: PWA-449.

Generated by 🚫 dangerJS against dd7e085

@dpatil-magento
Copy link
Contributor

Below tests pass.
bash docker/run-docker
npm run develop (pwa-devdocs)
yarn develop (pwa-devdocs)

@dpatil-magento dpatil-magento merged commit 3d576f3 into develop Mar 18, 2020
@dpatil-magento dpatil-magento deleted the rugh/pwa-449-security-fix branch March 18, 2020 18:38
dpatil-magento pushed a commit that referenced this pull request Mar 18, 2020
* Requires at least minimist 1.2.2 due to security vuln

Signed-off-by: sirugh <rugh@adobe.com>

* Switches to yarn and requires minimist 1.2.2 for security vuln

Signed-off-by: sirugh <rugh@adobe.com>
dpatil-magento added a commit that referenced this pull request Apr 28, 2020
* Removed cart and checkout routes from 6.0 branch. (#2255)

* - Mock version in test so snaps dont fail during releases (#2266)

- Fixup regex to handle line breaks

* [security] minimist >= 1.2.2 (#2267)

* Requires at least minimist 1.2.2 due to security vuln

Signed-off-by: sirugh <rugh@adobe.com>

* Switches to yarn and requires minimist 1.2.2 for security vuln

Signed-off-by: sirugh <rugh@adobe.com>

* v6.0.0-alpha.1

* v6.0.0-beta.1

* Jimothy/6.0 release notes (#2279)

* Add unsorted PR list

* Add items to separate lists

* Finish organizing PRs in sections

* Finish highlights

* Remove entries that were part of previous releases

* Update PageBuilder to Page Builder

Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>

* fix(pagebuilder): Html content type unescapes content when GraphQL does not (#2283)

Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>

* [PWA-479] Extension Files Missing From Packages (#2305)

* Add extensible files and directories to published packages

* Revert version bumps

Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>

* v6.0.0-beta.2

* [bug]: Fix (remove) OOTB tests from scaffold (#2321)

* Ignores buildpack and test directories during create-pwa

Signed-off-by: sirugh <rugh@adobe.com>

* Fix glob pattern to match sub directories AND contents

Signed-off-by: sirugh <rugh@adobe.com>

* Fixes tests and makes ignore pattern easier to construct

Signed-off-by: sirugh <rugh@adobe.com>

* [Doc] 6.0 release notes updates (#2323)

* Add new PRs to changelog and update compatibility table

* Fix wrong entry placement

* v6.0.0-beta.3

* v6.0.0-rc.1

* v6.0.0

* Enable cart and checkout routes

Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Tommy Wiebell <twiebell@adobe.com>
Co-authored-by: Stephen <sirugh@users.noreply.github.com>
Co-authored-by: devops-pwa-codebuild <magento-devops-github-pwa-int@adobe.com>
Co-authored-by: James Calcaben <jcalcaben@users.noreply.github.com>
Co-authored-by: James Zetlen <jzetlen@adobe.com>
@dpatil-magento dpatil-magento mentioned this pull request Jul 14, 2020
1 task
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants