Repository navigation
feature/md-2157-forward-client-ip-cdn-proxies - #30
Merged
filipe-boleto merged 1 commit intoJul 23, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 9a48c30 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
filipe-boleto
force-pushed
the
feature/md-2157-forward-client-ip-cdn-proxies
branch
from
July 16, 2026 00:19
028e9bb to
2c7c716
Compare
There was a problem hiding this comment.
Pull request overview
Forwards CDN-derived client IPs to MOS API requests.
Changes:
- Adds Cloudflare, Fastly, and Akamai IP resolution.
- Includes
http.clientIPin surface decisions and authenticated API payloads. - Adds tests and release metadata.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/resolveHttpClientIp.ts |
Resolves CDN client IPs. |
src/stages/surfaceDecisions.ts |
Supplies resolved IP to decisions. |
src/stages/fetchSurfaceDecisions.ts |
Adds clientIP to payloads. |
src/stages/mosAuthenticatedApi.ts |
Adds IP to authenticated requests. |
test/resolveHttpClientIp.spec.ts |
Tests CDN resolution. |
test/stages/fetchSurfaceDecisions.spec.ts |
Tests payload serialization. |
test/MOSProxy.spec.ts |
Adds pipeline integration tests. |
package.json |
Bumps package version. |
src/apiRequestHeaders.ts |
Synchronizes proxy version header. |
CHANGELOG.md |
Documents version 1.5.2. |
.changeset/forward-client-ip.md |
Declares a patch release. |
filipe-boleto
force-pushed
the
feature/md-2157-forward-client-ip-cdn-proxies
branch
6 times, most recently
from
July 16, 2026 09:38
803aba3 to
c6e4870
Compare
filipe-boleto
marked this pull request as ready for review
July 16, 2026 11:05
benney
requested changes
Jul 16, 2026
benney
left a comment
Member
There was a problem hiding this comment.
This makes too many assumptions about platform specific shapes from an opaque blob of metadata.
Each CDN runtime already knows its client IP, so let's add something like .withClientIP((request) => ...) instead and pass that through as http.clientIP in the fetch handlers
filipe-boleto
force-pushed
the
feature/md-2157-forward-client-ip-cdn-proxies
branch
2 times, most recently
from
July 17, 2026 07:55
ec739b6 to
285abba
Compare
filipe-boleto
force-pushed
the
feature/md-2157-forward-client-ip-cdn-proxies
branch
from
July 22, 2026 17:09
285abba to
9a48c30
Compare
benney
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.