Skip to content

Require a government workspace for the government backend - #61418

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Require a government workspace for the government backend

What changed

Reject workspace routing to gov.chatgpt.com when the workspace backend is NO_CONSTRAINT, whether the backend comes from the required or effective base URL.

Return an invalid-request error from account reads with reason: "governmentWorkspaceRequired" and action: "relogin", prompting users to sign in to a government workspace.

Testing

Add routing tests covering required and effective government backend URLs, including hostname case and the default HTTPS port.

## What changed

Reject workspace routing to `gov.chatgpt.com` when the workspace backend is `NO_CONSTRAINT`, whether the backend comes from the required or effective base URL.

Return an invalid-request error from account reads with `reason: "governmentWorkspaceRequired"` and `action: "relogin"`, prompting users to sign in to a government workspace.

## Testing

Add routing tests covering required and effective government backend URLs, including hostname case and the default HTTPS port.

GitOrigin-RevId: a54b990d2b0dc716122124ee6924538aa06d30d2
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a54b990d2b0dc716122124ee6924538aa06d30d2 branch from 4c221f4 to ad8b7f1 Compare November 14, 2026 00:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
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-14T00:21:14.844014Z 4c221f4 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 ad8b7f1 into main Nov 14, 2026
2 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a54b990d2b0dc716122124ee6924538aa06d30d2 branch November 14, 2026 00:20
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 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