Skip to content

fix: reject localhost requests from user transformer fetch calls - #2298

Merged
Jayachand merged 14 commits into
developfrom
fix.rejectLocalReq
Jul 7, 2023
Merged

Jayachand merged 14 commits into
developfrom
fix.rejectLocalReq

Conversation

@Jayachand

Copy link
Copy Markdown
Collaborator

Description of the change

Description here

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@codecov

codecov Bot commented Jun 25, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 92.59% and project coverage change: +0.04 🎉

Comparison is base (9e4d282) 87.15% compared to head (9a63930) 87.20%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2298      +/-   ##
===========================================
+ Coverage    87.15%   87.20%   +0.04%     
===========================================
  Files          490      490              
  Lines        25440    25490      +50     
  Branches      6301     6310       +9     
===========================================
+ Hits         22173    22229      +56     
+ Misses        2899     2893       -6     
  Partials       368      368              
Impacted Files Coverage Δ
src/util/prometheus.js 7.07% <ø> (ø)
src/util/utils.js 80.68% <91.66%> (+13.18%) ⬆️
src/util/customTransformer.js 83.78% <100.00%> (+3.51%) ⬆️
src/util/ivmFactory.js 89.85% <100.00%> (+3.72%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Jayachand
Jayachand marked this pull request as ready for review June 25, 2023 17:15
@Jayachand
Jayachand requested review from a team as code owners June 25, 2023 17:15
@koladilip

Copy link
Copy Markdown
Contributor

possible to add any tests?

koladilip
koladilip previously approved these changes Jun 27, 2023
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
Comment thread src/util/utils.js Resolved
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2023

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot E 2 Security Hotspots
Code Smell A 0 Code Smells

91.9% 91.9% Coverage
2.3% 2.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@Jayachand
Jayachand merged commit 6708c6c into develop Jul 7, 2023
@Jayachand
Jayachand deleted the fix.rejectLocalReq branch July 7, 2023 14:57
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.

5 participants