Skip to content

Fix Shell terminal origin checks behind reverse proxies - #1999

Merged
asim merged 1 commit into
mainfrom
fix/terminal-proxy-origin
Oct 2, 2026
Merged

asim merged 1 commit into
mainfrom
fix/terminal-proxy-origin

Conversation

@asim

@asim asim commented Oct 2, 2026

Copy link
Copy Markdown
Member

The terminal rejects the public site origin when a reverse proxy replaces Host with its upstream address. Match the operator-configured public origin, consistent with the browser write gate. Do not trust arbitrary forwarded hosts; retain strict scheme, port, origin-shape, session and CSRF checks.

Validation: Shell tests pass, including rewritten Host and foreign-origin rejection. The live signed-in terminal could not be exercised from this browser.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T09:05:01.668465Z 30aa859 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@asim
asim merged commit 17f0563 into main Oct 2, 2026
1 check passed
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