Skip to content

Handle Amazon Bedrock credentials during logout - #33175

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

Handle Amazon Bedrock credentials during logout#33175
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a003c0ec27ad7b36d499fe7b63ab4a0dd6369b4f

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Handle Amazon Bedrock credentials during logout

Why

Amazon Bedrock can use either a Codex-managed API key or credentials managed by
AWS, so logout must not remove or misrepresent credentials that Codex does not
control.

What changed

  • Remove the managed Bedrock key on logout and clear model_provider only when
    its user-config value is still amazon-bedrock.
  • Reject logout for AWS-managed Bedrock credentials without changing existing
    authentication or configuration.
  • Add a test-logout app-server test-client command that waits for the
    resulting account/updated notification.

Testing

Add coverage for managed and AWS-managed Bedrock logout, concurrent provider
changes, config reload failures, and conditional user-config cleanup.

## Why

Amazon Bedrock can use either a Codex-managed API key or credentials managed by
AWS, so logout must not remove or misrepresent credentials that Codex does not
control.

## What changed

- Remove the managed Bedrock key on logout and clear `model_provider` only when
  its user-config value is still `amazon-bedrock`.
- Reject logout for AWS-managed Bedrock credentials without changing existing
  authentication or configuration.
- Add a `test-logout` app-server test-client command that waits for the
  resulting `account/updated` notification.

## Testing

Add coverage for managed and AWS-managed Bedrock logout, concurrent provider
changes, config reload failures, and conditional user-config cleanup.

GitOrigin-RevId: a003c0ec27ad7b36d499fe7b63ab4a0dd6369b4f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a003c0ec27ad7b36d499fe7b63ab4a0dd6369b4f branch from 3f4c369 to 6e215e0 Compare July 14, 2026 21:55
@copyberry
copyberry Bot merged commit 6e215e0 into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a003c0ec27ad7b36d499fe7b63ab4a0dd6369b4f branch July 14, 2026 21:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 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.

2 participants