Skip to content

Expose canonical network proxy policy patterns - #61351

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c72262ae9f625765d5351e9da403be1f87042a47
Nov 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c72262ae9f625765d5351e9da403be1f87042a47

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Expose canonical network proxy policy patterns

What changed

Add canonical_allow_pattern, canonical_deny_pattern, and
canonical_review_pattern to validate and normalize selectors for policy
comparisons using the domain matcher's syntax.

Treat ?*.example.com and *.example.com as equivalent comparison keys.
Canonicalize unscoped IPv6 addresses for deny and review rules, and preserve
wildcard ports on local allow rules so they remain distinguishable from explicit
local grants. Deny rules continue to reject global wildcards.

Share pattern validation with the matcher and local-literal classification with
runtime policy checks.

Testing

Add a regression test covering equivalent subdomain selectors, local wildcard
ports, and differing IPv6 comparison keys for grants and restrictions.

## What changed

Add `canonical_allow_pattern`, `canonical_deny_pattern`, and
`canonical_review_pattern` to validate and normalize selectors for policy
comparisons using the domain matcher's syntax.

Treat `?*.example.com` and `*.example.com` as equivalent comparison keys.
Canonicalize unscoped IPv6 addresses for deny and review rules, and preserve
wildcard ports on local allow rules so they remain distinguishable from explicit
local grants. Deny rules continue to reject global wildcards.

Share pattern validation with the matcher and local-literal classification with
runtime policy checks.

## Testing

Add a regression test covering equivalent subdomain selectors, local wildcard
ports, and differing IPv6 comparison keys for grants and restrictions.

GitOrigin-RevId: c72262ae9f625765d5351e9da403be1f87042a47
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c72262ae9f625765d5351e9da403be1f87042a47 branch from 7437ec5 to a60197d Compare November 13, 2026 18:49
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-13T18:49:50.619933Z 7437ec5 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.

@copyberry
copyberry Bot merged commit a60197d into main Nov 13, 2026
11 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c72262ae9f625765d5351e9da403be1f87042a47 branch November 13, 2026 18:49
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant