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

EDSC-3925: Snyk Vulnerabilities, Earthdata Search #1695

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Conversation

eudoroolivares2016
Copy link
Contributor

@eudoroolivares2016 eudoroolivares2016 commented Nov 22, 2023

Overview

What is the feature?

Fixes a few Snyk vulnerabilities being reported on upstream dependencies

What is the Solution?

  1. npm upgrade browserify-sign as suggested by the maintainers on`crypto-browsify'
    (see PR)

  2. update serverless with the newest version

  3. Remove the googlemaps/google-maps-services-js dependency from EDSC (spatial-autocompletes) and its associated source code mainly undoing SC added in this PR this use-case was never being utilized

What areas of the application does this impact?

List impacted areas.

Testing

Reproduction steps

Pull down latest and run npm i run the snyk test cli tool. Ensure that the reported dependencies in this ticket are not reported. Regression test EDSC to ensure application continues to function as expected

Attachments

Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.

Checklist

  • [N/A] I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • [N/A] I have commented my code, particularly in hard-to-understand areas
  • [N/A] I have made corresponding changes to the documentation
  • My changes generate no new warnings

@eudoroolivares2016 eudoroolivares2016 changed the title Edsc 3925 EDSC-3925: Snyk Vulnerabilities, Earthdata Search Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (916fb02) 91.95% compared to head (06410df) 91.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1695      +/-   ##
==========================================
- Coverage   91.95%   91.94%   -0.02%     
==========================================
  Files         726      725       -1     
  Lines       19405    19349      -56     
  Branches     4571     4562       -9     
==========================================
- Hits        17844    17790      -54     
+ Misses       1425     1423       -2     
  Partials      136      136              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eudoroolivares2016 eudoroolivares2016 marked this pull request as ready for review November 22, 2023 14:29
* Search the Nominatim OpenStreetMaps API endpoint
* @param {query} query The spatial query provided from the user
*/
const nominatimGeocode = async (query) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Double check that may also remove the geocodingService: ${env:GEOCODING_SERVICE, 'nominatim'} in serverless.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can remove these but, we should also make sure as this propagates to remove the env vars from bamboo as well

@eudoroolivares2016 eudoroolivares2016 merged commit ed874ef into main Nov 29, 2023
9 checks passed
@eudoroolivares2016 eudoroolivares2016 deleted the EDSC-3925 branch November 29, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants