Repository navigation
Harden network proxy MITM authorization - #37211
Merged
copyberry[bot] merged 1 commit intoAug 6, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why MITM hooks authorize requests before the upstream server parses them. Paths that can be decoded or normalized to a different resource must not match an allowed path, and hosts that require MITM inspection must not bypass it through the plain HTTP proxy path. ## What changed - Reject ambiguous hook paths, including traversal segments, backslashes, malformed percent encodings, and encoded separators or percent signs. - Block plain HTTP proxy requests for hosts whose policy always requires MITM, recording the decision as `mitm_required`. ## Testing - Cover safe and ambiguous path forms, encoded traversal through repository allowlists, and absolute-form HTTPS requests sent to the HTTP proxy. GitOrigin-RevId: 8812a980ac64a97cbac3a237376d29be5ded9220
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/8812a980ac64a97cbac3a237376d29be5ded9220
branch
from
August 6, 2026 03:57
9350353 to
7a0e974
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/8812a980ac64a97cbac3a237376d29be5ded9220
branch
August 6, 2026 03:58
inspirepassion
temporarily deployed
to
issue-triage
August 6, 2026 04:04 — with
GitHub Actions
Inactive
inspirepassion
temporarily deployed
to
issue-triage
August 6, 2026 04:04 — with
GitHub Actions
Inactive
inspirepassion
temporarily deployed
to
issue-triage
August 6, 2026 04:04 — with
GitHub Actions
Inactive
inspirepassion
temporarily deployed
to
issue-triage
August 6, 2026 04:05 — with
GitHub Actions
Inactive
chen20030220-byte
temporarily deployed
to
issue-triage
August 6, 2026 04:18 — with
GitHub Actions
Inactive
chen20030220-byte
temporarily deployed
to
issue-triage
August 6, 2026 04:18 — with
GitHub Actions
Inactive
chen20030220-byte
temporarily deployed
to
issue-triage
August 6, 2026 04:18 — with
GitHub Actions
Inactive
ravinsharma7
temporarily deployed
to
issue-triage
August 6, 2026 04:40 — with
GitHub Actions
Inactive
ravinsharma7
temporarily deployed
to
issue-triage
August 6, 2026 04:40 — with
GitHub Actions
Inactive
ravinsharma7
temporarily deployed
to
issue-triage
August 6, 2026 04:40 — with
GitHub Actions
Inactive
LeemanCheung
temporarily deployed
to
issue-triage
August 6, 2026 05:43 — with
GitHub Actions
Inactive
LeemanCheung
temporarily deployed
to
issue-triage
August 6, 2026 05:43 — with
GitHub Actions
Inactive
LeemanCheung
temporarily deployed
to
issue-triage
August 6, 2026 05:43 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Harden network proxy MITM authorization
Why
MITM hooks authorize requests before the upstream server parses them. Paths that
can be decoded or normalized to a different resource must not match an allowed
path, and hosts that require MITM inspection must not bypass it through the
plain HTTP proxy path.
What changed
malformed percent encodings, and encoded separators or percent signs.
recording the decision as
mitm_required.Testing
allowlists, and absolute-form HTTPS requests sent to the HTTP proxy.