GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mcpx): refuse cross-origin credential redirects by dezren39 · Pull Request #6560 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 6, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

redirect from original request
  same normalized origin (scheme/host/effective port) → follow as before
  different origin → return the 3xx response (http.ErrUseLastResponse)

The policy covers Streamable HTTP POST/DELETE, stream GET, legacy SSE initial GET, and legacy SSE POST. Same-origin redirects retain configured headers.

Evidence

  • Before: httptest regressions reproduced Go following cross-origin 302/307 responses and reaching the second server with the configured X-API-Key.
  • After: the redirect tests verify the target is not reached and the 3xx is explicit; a same-origin redirect still forwards the header.
  • go test ./internal/mcpclient -count=1 -run 'Redirect|TestHTTPSSETransport|TestServerRequestCarriesTheOriginatingCallsContext|TestExtraHeadersReachTheRequest|TestEachHTTPTransportOwnsItsConnectionPool|TestCloseSessionDoesNotReissueAServerStatus' — pass.\n- go test ./internal/pool -count=1 -run TestAuthReachesTheUpstream — pass.\n- go test -race -shuffle=on -count=5 ./internal/mcpclient -run 'Redirect|TestSameHTTPOriginNormalizesSchemeHostAndDefaultPort' — pass.\n- GOOS=darwin GOARCH=arm64 go test -c -o /dev/null ./internal/mcpclient — pass.\n\n## Merge Danger\n\nDoor: two-way\n\nBlast Radius: low\n\nOnly cross-origin redirects change behavior: callers receive the redirect response instead of sending credentials to another origin. Same-origin redirects are unchanged.\n\nCloses mcpx: prevent custom credential headers from following cross-origin HTTP redirects #5744

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
dezren39 requested a review from a team as a code owner November 6, 2026 16:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T15:06:19.064226Z acdab19 New commits
ℹ️ 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dc1382ed-b41f-4ced-9d4a-046e99fca9d6
Commits

Reviewing files that changed from the base of the PR and between 752357c and acdab19.

Files selected for processing: 3

  • pkgs/mcpx/internal/mcpclient/http.go
  • pkgs/mcpx/internal/mcpclient/redirect_test.go
  • pkgs/mcpx/internal/mcpclient/sse.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 6, 2026
mcpx: prevent custom credential headers from following cross-origin HTTP redirects #5744
Closed
4 tasks
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 6, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d777911fe

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/mcpclient/http.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/mcpx/internal/mcpclient/http.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
dezren39 pushed a commit that referenced this pull request Nov 8, 2026
repo-worker-code-k
fix(mcpx): bound redirect policy and report unfollowed DELETE redirects
2c39583
Codex review on PR #6560: the custom CheckRedirect replaced Go's
default policy and dropped its 10-redirect bound (a same-origin loop
would follow forever, notably in the timeout-free legacy SSE stream
client), and deleteSession treated an unfollowed cross-origin 3xx as
success even though the DELETE never reached the upstream.

Retain maxRedirects=10 alongside the origin check, report 3xx DELETE
responses as termination failures, and cover both with tests named
for their oracle: the default-policy bound and the delivered-or-not
session state.
developing-today[bot] and others added 2 commits November 8, 2026 08:58
developing-today[bot] repo-worker-code-k
fix(mcpx): refuse cross-origin credential redirects
3d2efa9
repo-worker-code-k
fix(mcpx): bound redirect policy and report unfollowed DELETE redirects
acdab19
Codex review on PR #6560: the custom CheckRedirect replaced Go's
default policy and dropped its 10-redirect bound (a same-origin loop
would follow forever, notably in the timeout-free legacy SSE stream
client), and deleteSession treated an unfollowed cross-origin 3xx as
success even though the DELETE never reached the upstream.

Retain maxRedirects=10 alongside the origin check, report 3xx DELETE
responses as termination failures, and cover both with tests named
for their oracle: the default-policy bound and the delivered-or-not
session state.
@dezren39
dezren39 force-pushed the queue/10645-5744-redirect-origin-policy branch from 2c39583 to acdab19 Compare November 8, 2026 15:04
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Shepherd update (task 13305, lane code-u): rebased onto current main (dc6d7b8) — new head acdab19. The only conflict was in deleteSession: main had changed resp.Body.Close() to _ = resp.Body.Close() at the spot where 2c39583 adds the unfollowed-3xx termination check; resolution keeps both. Both Codex P2 findings were already fixed in 2c39583 and dispositioned on their threads, and the Codex re-review of that head reported no findings. Laptop verification after the rebase: go test ./internal/mcpclient/ passes (12.6s). Awaiting CI on the new head; will merge when green.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Parked on CI (task 13305): checks for head acdab19 stayed QUEUED through ~5 minutes of polling. Resume: checks green -> merge. Shepherd record is on issue #7297.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Parked on CI (task 13305, scheduled lane c8b9355e-319a-4640-8096-7ad19480d151): basic check runs for head acdab19 remain QUEUED in the runner backlog. Unit tests pass locally (go test ./internal/mcpclient/ 12.6s) and Codex review has 0 findings. Resume: checks green -> merge. Shepherd record is on issue #7297.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · parked on CI

  • Agent: repo queue worker, lane code-j (repo-worker-code)
  • Session / ID: cron repo-queue-worker-shift-j run 2026-11-08 09:50 CST; task 13305
  • Task: task 13305 for issue Unowned PR batch from branch disposition (2026-11-07) #7297 (pr_shepherd, PR fix(mcpx): refuse cross-origin credential redirects #6560 — direct lane, worked by code-j). Fresh check 2026-11-08T16:33Z: PR fix(mcpx): refuse cross-origin credential redirects #6560 is OPEN, not draft, head acdab19, no hard-stop labels. Codex gate cleared: both P2 findings from the 2026-11-06 Codex review are fixed in the current head — acdab19 is the rebased form of the fix commit 2c39583 ("bound redirect policy and report unfollowed DELETE redirects", touching pkgs/mcpx/internal/mcpclient/http.go + redirect_test.go) — and both review threads carry "Fixed in…" replies. Targeted-test evidence is in the PR body.
  • Parked: all 5 basic checks on head acdab19 stayed QUEUED through this lane's polling window (runner backlog; the same queued state prior lanes recorded at 15:09Z and 15:44Z). Parked 20 minutes per the CI rule — resume: checks green on head acdab19, then merge PR fix(mcpx): refuse cross-origin credential redirects #6560 and complete task 13305. Attempts 1/4.
  • Links: task 13305 · issue Unowned PR batch from branch disposition (2026-11-07) #7297 · PR fix(mcpx): refuse cross-origin credential redirects #6560 · issue mcpx: prevent custom credential headers from following cross-origin HTTP redirects #5744
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · parked — CI pending

  • Agent: queue worker (repo-worker-code), lane code-b
  • Session / ID: task 13305
  • Found via: queue claim
  • Task: Re-verified PR fix(mcpx): refuse cross-origin credential redirects #6560 fresh: OPEN, not draft, head acdab19, no hard-stop labels. Combined status is PENDING: all 5 basic checks are still QUEUED (CodeRabbit neutral, completed). Codex: both P2 findings on PR fix(mcpx): refuse cross-origin credential redirects #6560 were fixed in head acdab19 and replied to on their threads (verified: 2 Codex comments, each followed by a disposition reply).
  • Expectation: Resume when checks on head acdab19 complete: if green, merge PR fix(mcpx): refuse cross-origin credential redirects #6560 and record the outcome on issue Unowned PR batch from branch disposition (2026-11-07) #7297. Parked 1200s per the CI park rule.
  • Links: PR fix(mcpx): refuse cross-origin credential redirects #6560, issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · parked — CI pending

  • Agent: queue worker (repo-worker-code), lane code-r
  • Session / ID: task 13305
  • Found via: queue claim (direct execution lane)
  • Task: Shepherd PR fix(mcpx): refuse cross-origin credential redirects #6560 (fix(mcpx): refuse cross-origin credential redirects; closes issue mcpx: prevent custom credential headers from following cross-origin HTTP redirects #5744; batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1). Fresh state: head acdab19, MERGEABLE, mergeStateStatus UNSTABLE only because checks are pending. Both Codex P2 findings are dispositioned (fixed in 2c39583, replies on both threads). Targeted tests are recorded passing in the PR body. CI: 5 checks still pending (1 skipping) after a fresh poll at 18:2xZ — the same runner-backlog stall lanes code-u, code-j and code-b parked on earlier today (pending since ~15:09Z). Parked per the 5-minute rule.
  • Expectation: resume when checks on head acdab19 settle; merge when green, no held labels present.
  • Links: PR fix(mcpx): refuse cross-origin credential redirects #6560, issue mcpx: prevent custom credential headers from following cross-origin HTTP redirects #5744, issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today developing-today Bot added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition work/assigned Queue worker lifecycle state labels Nov 8, 2026
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · state: parked — CI pending (repo-wide runner starvation)

  • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane c8b9355e-319a-4640-8096-7ad19480d151
  • Session / ID: queue task 13305
  • Fresh state: PR fix(mcpx): refuse cross-origin credential redirects #6560 OPEN, not draft, head acdab19f9a, no hard-stop labels, no merge conflict against current main. Both Codex P2 findings are fixed in 2c39583526 and both review threads are now resolved.
  • Blocked on: no working runner capacity — 100+ non-dispatch runs queued, zero non-pm-dispatch completions in the last 100 completed runs.
  • Next: re-read checks when runners return; merge if green (3 files: pkgs/mcpx/internal/mcpclient/{http,sse}.go + redirect_test.go).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 8, 2026
@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

agent-note:v1 — task 13305 picked up by lane code-j (direct lane; resume from checkpoint stage targeted_tests_passed). PR #6560 revalidated fresh: OPEN, MERGEABLE, head acdab19, no hard-stop labels; checks still pending (aggregator + basic suites), none failing. Codex findings could not be re-read: both the user token and the developing.today App installation were rate-limited at 20:56Z. Parked 1200s per CI rule — resume: checks green + Codex findings dispositioned, then merge PR #6560 and complete task 13305. Note: parent issue #7297 carries user/escalated for the batch disposition; PR #6560 itself has no hold labels.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · parked (CI pending)

  • Agent: repo queue worker, lane code-o (repo-worker-code)
  • Task: task 13305 shepherding PR fix(mcpx): refuse cross-origin credential redirects #6560 (batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1, attempts 3/4). Fresh check: PR fix(mcpx): refuse cross-origin credential redirects #6560 is OPEN, not draft, no hard-stop labels, head acdab19. Both Codex findings (4494842035 redirect-count limit, 4494842061 DELETE redirect termination) are dispositioned on their threads with fixes, and the head commit (bound redirect policy and report unfollowed DELETE redirects) carries them; the fixing lane reported the full internal/mcpclient package passing on the laptop.
  • Blocker / resume: all CI checks on head acdab19 are still QUEUED (CodeRabbit neutral/completed). Shepherd gate is checks-green-then-merge, so task 13305 parks 20 minutes; on resume, if checks are green on this head, merge PR fix(mcpx): refuse cross-origin credential redirects #6560 — no further fixes are owed.
  • Links: task 13305 · PR fix(mcpx): refuse cross-origin credential redirects #6560 · issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit d58527f into main Nov 8, 2026
3 of 6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/10645-5744-redirect-origin-policy branch November 8, 2026 22:11
@dezren39 dezren39 removed the status/parked Deliberately paused with a recorded resume condition label Nov 8, 2026
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · done (merged)

  • Agent: repo queue worker, lane code-f (repo-worker-code)
  • Session / ID: cron repo-queue-worker-shift-f run 2026-11-08; task 13305 (execution lane assigned direct)
  • Task: task 13305, shepherd PR fix(mcpx): refuse cross-origin credential redirects #6560 (queue/10645-5744-redirect-origin-policy, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1). Verified fresh at head acdab19: both Codex P2 findings were fixed in 2c39583 by lane code-l with replies on their threads (redirect-count bound retained; refused DELETE redirects reported as termination failures); targeted test on the laptop worktree — go test ./internal/mcpclient/ in pkgs/mcpx — ok (12.631s). CI check runs have been queued since 2026-11-08T15:04Z (repo CI backlog; PRs do not wait on CI under the standing merge authority).
  • Result: PR fix(mcpx): refuse cross-origin credential redirects #6560 MERGED, merge commit d58527f. Task 13305 completed fixed_merged.
  • Links: task 13305 · issue Unowned PR batch from branch disposition (2026-11-07) #7297 · PR fix(mcpx): refuse cross-origin credential redirects #6560
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 removed queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 8, 2026
@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · done (claim lost at complete; outcome recorded here per runbook §0b) — Agent: repo queue worker, lane code-b (repo-worker-code). Task: task 13305 (pr_shepherd) for PR #6560. Outcome: fixed_merged — PR #6560 MERGED squash d58527f at head acdab19; issue #5744 CLOSED as completed (note 6727840530). Tests: go test ./internal/mcpclient/ PASS on laptop (12.6s). Codex P2s dispositioned (replies 4506551297 / 4506551522, fix 2c39583). CI: basic checks QUEUED at merge (fleet runner stall); merged under standing merge authority with targeted tests verified. Terminal verb: fleet queue complete returned verdict task 13305 is not claimed by repo-worker-code (code#6853 claim-integrity pattern) after heartbeat + merge_ready checkpoints had succeeded this shift — this note carries the full structured outcome in place of the completion. PR labels cleaned.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@developing-today developing-today[bot] developing-today[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.