Skip to content

[codex] add experimental managed Amazon Bedrock login and logout#28148

Draft
celia-oai wants to merge 2 commits into
dev/cc/managed-3from
codex/managed-bedrock-login
Draft

[codex] add experimental managed Amazon Bedrock login and logout#28148
celia-oai wants to merge 2 commits into
dev/cc/managed-3from
codex/managed-bedrock-login

Conversation

@celia-oai

@celia-oai celia-oai commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Why

The provider-scoped auth stack can report whether Amazon Bedrock is using a Codex-managed API key, but app-server clients still cannot establish or remove that managed credential. This adds an experimental persistence-only account flow while deliberately leaving runtime provider and auth reloading to a later change.

Depends on #27751.

Stack: #27443#27689#27751 → this PR.

What changed

  • add an experimental amazonBedrock variant to v2 account/login/start, including API key and region validation
  • require the experimentalApi initialization capability for managed Bedrock login and logout
  • persist the Bedrock API key and write model_provider = "amazon-bedrock" to the active user config before returning
  • require restart for login and logout to affect runtime account state, sessions, history filters, notifications, or inference
  • remove managed Bedrock auth on logout and clear the user-layer provider only while its value is still amazon-bedrock
  • keep AWS-managed Bedrock logout as a no-op
  • document the experimental and restart-only behavior

The auth and config writes are intentionally not transactional in this scoped change. Runtime provider/config reload and cross-store rollback are left for follow-up work.

Test plan

  • just test -p codex-app-server-protocol
  • just test -p codex-app-server
  • just test -p codex-login
  • just test -p codex-model-provider

@celia-oai celia-oai force-pushed the codex/managed-bedrock-login branch from 56da969 to 1a11fef Compare June 14, 2026 03:50
@celia-oai celia-oai force-pushed the codex/managed-bedrock-login branch from 1a11fef to 6161f76 Compare June 14, 2026 04:03
@celia-oai celia-oai changed the title [codex] add managed Amazon Bedrock login and logout [codex] add experimental managed Amazon Bedrock login and logout Jun 14, 2026
@celia-oai celia-oai force-pushed the codex/managed-bedrock-login branch 5 times, most recently from b7bed3d to becae52 Compare June 14, 2026 05:48
@celia-oai celia-oai force-pushed the codex/managed-bedrock-login branch from becae52 to edba806 Compare June 14, 2026 05:52
@celia-oai celia-oai force-pushed the codex/managed-bedrock-login branch from 9fd89f7 to 02699b6 Compare June 14, 2026 06:30
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.

1 participant