Implement Amazon Bedrock setup in the app server (#40007)

## What changed

- Implement `account/bedrock/discover` to report AWS profiles and available environment credentials.
- Implement `account/bedrock/setup` for validated AWS profiles and environment credentials, persisting the selected region and profile in the Bedrock provider configuration.
- Resolve Bedrock authentication according to the selected credential source, and clear stale profile configuration when using a Codex-managed Bedrock API key.

## Testing

- Cover profile and environment discovery, setup validation and persistence, conflicting credentials, and authentication-source precedence.

GitOrigin-RevId: 16d700cb0843df768c2fdb6d0c8d26c3402e93df
This commit is contained in:
alexsong-oai authored and copyberry committed 2026-08-21 20:57:17 +00:00
1 parent 51d8d12236
commit e77c2a90af
17 files changed
+951 -90

No files matched your search

@@ -53,10 +53,7 @@ pub enum BedrockSetupParams {
Profile { profile: String, region: String },
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
Environment {
credential_type: AwsCredentialType,
region: String,
},
Environment { region: String },
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
AccessKeys {