Skip to content

feat(proxy): expose proxy middleware utilities (#1599)#1600

Open
rajeevr-g wants to merge 5 commits into
finos:mainfrom
rajeevr-g:feat/proxy-expand-middleware-api
Open

feat(proxy): expose proxy middleware utilities (#1599)#1600
rajeevr-g wants to merge 5 commits into
finos:mainfrom
rajeevr-g:feat/proxy-expand-middleware-api

Conversation

@rajeevr-g

Copy link
Copy Markdown
Contributor

Description

Exposes additional proxy middleware utilities through the @finos/git-proxy/proxy package exports to enable advanced integration and custom proxy composition.

General changes:

Added proxy middleware utilities to public ./proxy exports
Exposed request filtering and validation utilities for external use
Enabled reuse of internal proxy composition logic without deep imports

Related Issue

Resolves #1599

Checklist

General

Documentation

  • Documentation has been added/updated for any new features

Configuration

  • If configuration schema (config.schema.json) was modified:
    • TypeScript types regenerated (npm run generate-config-types)
    • Schema reference docs regenerated (npm run gen-schema-doc)

Tests

  • Unit tests pass (npm test)
  • Linting and formatting pass (npm run lint and npm run format:check)
  • Type checks pass (npm run check-types)

@rajeevr-g rajeevr-g requested a review from a team as a code owner June 16, 2026 10:21
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for endearing-brigadeiros-63f9d0 ready!

Name Link
🔨 Latest commit 4269b24
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6a32e10453925c0008ac6a91
😎 Deploy Preview https://deploy-preview-1600.git-proxy.preview.finos.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.51%. Comparing base (d6264eb) to head (4269b24).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1600   +/-   ##
=======================================
  Coverage   85.51%   85.51%           
=======================================
  Files          83       83           
  Lines        7877     7878    +1     
  Branches     1312     1312           
=======================================
+ Hits         6736     6737    +1     
  Misses       1114     1114           
  Partials       27       27           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rajeevr-g

Copy link
Copy Markdown
Contributor Author

Hi @kriswest , could you please look into this PR and please approve if everything looks good?

@kriswest kriswest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could be simpler to export * from routes, otherwise no objectsions.

Comment thread src/proxy/index.ts Outdated
Comment on lines +23 to +31
export {
getRouter,
proxyFilter,
extractRawBody,
validGitRequest,
buildUpstreamProxyAgent,
hostMatchesNoProxy,
getOrCreateProxyAgent,
} from './routes';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could probably export * from routes as you are only missing handleMessage and handleRefsErrorMessage from the full list of routes exports.

@rajeevr-g

Copy link
Copy Markdown
Contributor Author

Hi @kriswest , I am done with changes, could you please check?

@rajeevr-g

Copy link
Copy Markdown
Contributor Author

Hi @jescalada , could you please review and approve PR so that this PR will be merged?

@kriswest kriswest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kriswest kriswest enabled auto-merge (squash) June 17, 2026 18:01
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.

Expand ./proxy API surface to include missing middleware utilities from routes

2 participants