Skip to content

Conversation

@edmundhung
Copy link
Member

@edmundhung edmundhung commented May 14, 2025

Fixes #9238.


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because:
  • Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because: local dev only behavior
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix
  • Wrangler V3 Backport
    • TODO (before merge)
    • Wrangler PR:
    • Not necessary because: v4 only feature

@changeset-bot
Copy link

changeset-bot bot commented May 14, 2025

🦋 Changeset detected

Latest commit: 59790ee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
miniflare Patch
wrangler Patch
@cloudflare/pages-shared Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented May 14, 2025

A Wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-wrangler-9246
Prereleases for other packages:

cloudflare-workers-bindings-extension:

wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-workers-bindings-extension-9246 -O ./cloudflare-workers-bindings-extension.0.0.0-v5c9a16f70.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v5c9a16f70.vsix

create-cloudflare:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-create-cloudflare-9246 --no-auto-update

@cloudflare/kv-asset-handler:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-kv-asset-handler-9246

miniflare:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-miniflare-9246

@cloudflare/pages-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-pages-shared-9246

@cloudflare/unenv-preset:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-unenv-preset-9246

@cloudflare/vite-plugin:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-vite-plugin-9246

@cloudflare/vitest-pool-workers:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-vitest-pool-workers-9246

@cloudflare/workers-editor-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-workers-editor-shared-9246

@cloudflare/workers-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-workers-shared-9246

@cloudflare/workflows-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15029420754/npm-package-cloudflare-workflows-shared-9246

Note that these links will no longer work once the GitHub Actions artifact expires.

@edmundhung edmundhung force-pushed the edmundhung/cf-connecting-ip-followup branch 2 times, most recently from 9c85a63 to 5376026 Compare May 14, 2025 17:09
@edmundhung edmundhung marked this pull request as ready for review May 14, 2025 18:58
@edmundhung edmundhung requested a review from a team as a code owner May 14, 2025 18:58
@github-actions
Copy link
Contributor

These changes have been automatically backported to Wrangler v3 🎉 You can view the automatically updated PR at v3-maintenance...v3-maintenance-9246. Please check that PR for correctness, and make sure it's merged after this one. Thank you for helping us keep Wrangler v3 supported!

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk May 14, 2025
@edmundhung edmundhung merged commit d033a7d into main May 14, 2025
18 checks passed
@edmundhung edmundhung deleted the edmundhung/cf-connecting-ip-followup branch May 14, 2025 21:38
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk May 14, 2025
edmundhung added a commit that referenced this pull request May 16, 2025
…ler (#9250)

* fix(miniflare): disable stripCfConnectingIp option by default

* add a regression test from the wrangler persepective

* inject monkey patched fetch to strip header

* add changeset

---------

Co-authored-by: Edmund Hung <[email protected]>
penalosa added a commit that referenced this pull request Jun 6, 2025
github-actions bot pushed a commit that referenced this pull request Jun 6, 2025
penalosa added a commit that referenced this pull request Jun 6, 2025
penalosa added a commit that referenced this pull request Jun 16, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jun 16, 2025
…ession (#9506)

* Revert "fix: strips CF-Connecting-IP header within Wrangler (#9246)"

This reverts commit d033a7d.

* feat: add connect_pass_through compatibility flag to globalOutbound worker

Add the connect_pass_through compatibility flag to the outbound service worker
that strips CF-Connecting-IP headers. This resolves the TCP connection regression
that was introduced when using globalOutbound service with workerd's connect() API.

The connect_pass_through flag was added in workerd PR #4171 to fix the underlying
issue, allowing us to remove the JavaScript injection workaround and use the
cleaner global outbound approach.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* fix: add connect_pass_through and experimental compat flags, add changeset

- Add 'experimental' compat flag alongside 'connect_pass_through'
- Add changeset for the TCP regression fix
- The deleted test was specific to the workaround we're replacing

* human fixups

* fix lockfile

* fix lockfile

* fix lockfile

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Regression with TCP connections in 4.15.0

2 participants