Skip to content

fix(console): use private inference IP handoff - #56427

Merged
thdxr merged 1 commit into
productionfrom
zen-private-ingress
Oct 17, 2026
Merged

thdxr merged 1 commit into
productionfrom
zen-private-ingress

Conversation

@thdxr

@thdxr thdxr commented Oct 17, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Production dependency for anomalyco/opencode-console#3790, promoted in #3791.

Type of change

  • Bug fix

What does this PR do?

Pass only direct Cloudflare visitor-IP evidence through the private LegacyIngress service 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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr
thdxr merged commit 8b2aaaf into production Oct 17, 2026
13 checks passed
@thdxr
thdxr deleted the zen-private-ingress branch October 17, 2026 15:44
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.

1 participant