Repository navigation
fix(console): use private inference IP handoff - #56427
Merged
Merged
Conversation
This was referenced Oct 17, 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.
Issue for this PR
Production dependency for anomalyco/opencode-console#3790, promoted in #3791.
Type of change
What does this PR do?
Pass only direct Cloudflare visitor-IP evidence through the private
LegacyIngressservice binding. Strip forwarding claims first; Worker relays, missing edge metadata, and missing IP provide no trusted address. This matches the new Console authentication contract and fails closed for restricted credentials.Minimal production-based companion change only. No account policies, customer data, or credential changes. Dax approved production deployment; this PR does not activate any restrictions.
How did you verify your code works?
Root
bun run check, Console app typecheck, and all 57 Console app tests pass. New IPv4/IPv6, spoofed forwarding, relay, direct-origin and missing-IP cases pass, including ten repeated runs. Mutating the forwarded address, removing trust guards, and retaining forwarding claims each makes the relevant tests fail; mutations restored. Nitro preserves the original Cloudflare request through its handler.Production Pseudo IPv4 is off. Managed-header inspection is permission-blocked; no owned restricted production test account is available. These remain activation prerequisites, not claims of end-to-end qualification.
Screenshots / recordings
Not a UI change.
Checklist
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊