Skip to content

feat(api): add organization external key management - #4205

Merged
jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-373
Oct 28, 2026
Merged

jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-373

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Add organization external-key registration and validation for AWS, GCP and Azure.

Changes

  • Create, retrieve, list, delete and validate organization external-key registrations.
  • Filter external-key listings by purpose and paginate through results.

@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 28, 2026 21:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T22:17:38.808626Z 218ffb9 New commits
🔒 Security Review ✅ Completed 2026-10-28T22:18:01.982505Z 218ffb9 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.

Comment thread tests/test_external_keys_contract.py Fixed
Comment thread tests/test_external_keys_contract.py Fixed
Comment thread src/openai/resources/admin/organization/external_keys.py
Comment thread src/openai/resources/admin/organization/external_keys.py
Comment thread src/openai/resources/admin/organization/external_keys.py
Comment thread src/openai/resources/admin/organization/external_keys.py
Comment thread src/openai/resources/admin/organization/external_keys.py
Comment thread src/openai/resources/admin/organization/external_keys.py
@jbeckwith-oai

Copy link
Copy Markdown
Contributor Author

The public compatibility job's symbol/API comparison passed. Its Pyright phase fails on four bare dict/list annotations in the existing tests/test_client.py fixtures (lines 1123/1124 and 2513/2514). That file and the gate script are byte-identical to baseline 45b9531 in this PR; this is the existing baseline issue already being repaired in #4204.

I will refresh this PR after #4204 lands and rerun the unchanged compatibility gate. No API typing rules or compatibility checks will be disabled for this feature.

Castiron-Internal-PR: openai/openai-python-internal#373
Castiron-Source-SHA: ef899bcc786b7ad19e016eb01fca52d9b016faae
Castiron-Public-Base-SHA: 45b9531

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed all 14 changed files at d82e48d7; no actionable findings. The external-key operations use the existing admin-auth, provider overloads and cursor-page contracts. The added sync/async HTTP tests cover provider bodies, pagination filters and lifecycle response wrappers. Generated ownership and inventory agree.

Validation: complete source review with an independent pass. Hosted runtime tests, build and lint passed; no candidate code ran locally. The compatibility job remains failed: its API comparison passed, then Pyright reported four missing collection type arguments in unchanged tests/test_client.py lines 1123–1124 and 2513–2514. This approval does not waive that check.

@jbeckwith-oai
jbeckwith-oai force-pushed the castiron/promotions/pr-373 branch from d82e48d to 5adcc39 Compare October 28, 2026 22:10

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

Copy link
Copy Markdown

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: 5adcc393c4

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

Comment thread src/openai/resources/admin/organization/external_keys.py
@jbeckwith-oai
jbeckwith-oai requested review from a team, dpiet-oai and markstuart-oai October 28, 2026 22:16
@jbeckwith-oai

Copy link
Copy Markdown
Contributor Author

Merged the compatibility prerequisite from #4204 into this branch as 218ffb9. The external-key patch is byte-identical; the comparison base now contains the repaired caller fixtures. Two fresh adversarial review rounds are clean, all 10 external-key contracts and 3 compatibility-routing cases pass, and Ruff/ty pass. CI is rerunning; requested owner approval on this exact head.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 3ee373e Oct 28, 2026
26 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-373 branch October 28, 2026 22:29
@openai-sdks openai-sdks Bot mentioned this pull request Oct 28, 2026
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.

3 participants