Skip to content

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

Open
rajeevr-g wants to merge 4 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 4 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 canceled.

Name Link
🔨 Latest commit 546577e
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6a316f1462306e0008bee62b

@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.38%. Comparing base (82031e9) to head (546577e).
⚠️ Report is 237 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1600      +/-   ##
==========================================
- Coverage   90.10%   85.38%   -4.72%     
==========================================
  Files          69       83      +14     
  Lines        5657     7878    +2221     
  Branches      990     1312     +322     
==========================================
+ Hits         5097     6727    +1630     
- Misses        541     1123     +582     
- Partials       19       28       +9     

☔ 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?

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