Skip to content
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

2792, 2821, 2901 Security issues #3003

Merged
merged 5 commits into from
Jul 3, 2019

Conversation

rfultz
Copy link
Contributor

@rfultz rfultz commented Jun 27, 2019

Summary

Impacted areas of the application

Screenshots

Nothing to see on the front end

Related PRs

None

How to test

  1. Switch to Node 10.16.0 if you can, nvm use 10.16.0 (If that fails, install it nvm install 10.16.0)
  2. Upgrade the global Node Package Manager (NPM) to 6.9.1 npm i -g npm@latest or npm i -g npm
  3. Because we may have changed Node and NPM versions, rebuild Node-Sass npm rebuild node-sass
  4. Probably not necessary but, just in case, let's reset our packages
    1. Dump the fec-cms/node_modules directory (rm –rf node_modules)
    2. Clear the cache npm cache clear --force
  5. Install all of the packages npm i (it'll take a bit)
  6. Run the audit npm audit or npm audit fix --force
    There should be only one vulnerability: one for braces (which is only used for dev, not prod)

To test for errors:

  1. Quick build: npm run build
  2. Full build: npm run build-production
  3. Tests: npm run test-single
  4. Browse the site, especially the more complicated parts. There should be zero changes to how the site behaves

NOTE

Because this update changes the version of Node and npm, and our dev, stg, and prd environments come with default versions as part of their images, we'll want to make sure the various servers update accordingly.

NOTE

This PR address these issues as they're seen in npm audit, which are the same issues that Snyk reported, but we still need to get the code to dev, etc., for Snyk to approve it.


@rfultz rfultz self-assigned this Jun 27, 2019
@lbeaufort lbeaufort requested review from lbeaufort and removed request for jason-upchurch June 28, 2019 14:04
@lbeaufort lbeaufort changed the title 2792, 2821, 2901 Security issues [Do not merge] 2792, 2821, 2901 Security issues Jun 28, 2019
@codecov-io
Copy link

codecov-io commented Jun 28, 2019

Codecov Report

Merging #3003 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3003   +/-   ##
========================================
  Coverage    74.85%   74.85%           
========================================
  Files          119      119           
  Lines         7130     7130           
  Branches       615      615           
========================================
  Hits          5337     5337           
  Misses        1793     1793

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 153f546...d524895. Read the comment docs.

@lbeaufort lbeaufort changed the title [Do not merge] 2792, 2821, 2901 Security issues 2792, 2821, 2901 Security issues Jul 1, 2019
@dorothyyeager dorothyyeager removed the request for review from lbeaufort July 2, 2019 14:04
Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

@rfultz This looks good to me, let's go ahead and remove the TODO that references file-loader since we are not going that direction anymore:

// // TODO - move these to their final home

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

LGTM

@dorothyyeager dorothyyeager removed the request for review from johnnyporkchops July 3, 2019 14:01
@dorothyyeager dorothyyeager merged commit c146cee into develop Jul 3, 2019
@dorothyyeager dorothyyeager deleted the feature/2792-2821-2901-security-updates branch July 3, 2019 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants