Repository navigation
fix(bedrock): preserve private embedding endpoints and AWS routing policy - #118744
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 1:01 PM ET / 17:01 UTC. ClawSweeper reviewWhat this changesPreserves configured PrivateLink or custom Bedrock embedding endpoints, retains AWS SDK routing for canonical regional/FIPS/dual-stack endpoints, and includes genuine custom endpoints in memory embedding cache identity. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain This PR addresses a current Bedrock embedding-routing defect and the follow-up commit resolves the earlier FIPS/dual-stack concern by recognizing SDK-owned regional endpoints before forwarding only genuine custom endpoints. The patch is a plausible canonical owner-boundary repair, but the PR still needs inspectable after-fix real-runtime proof before merge; the existing evidence is a self-reported mocked/in-memory SDK test setup. Priority: P1 Review scores
Verification
How this fits togetherThe Amazon Bedrock plugin creates embedding clients for Memory Core from configured provider or remote endpoint settings. That client chooses the signed AWS request destination, then the memory adapter records routing-relevant facts in the embedding cache key. flowchart LR
A[Memory embedding settings] --> B[Bedrock embedding provider]
B --> C[Endpoint and region resolution]
C --> D{SDK regional endpoint?}
D -->|Yes| E[AWS SDK routing modes]
D -->|No| F[Configured private endpoint]
E --> G[Signed embedding request]
F --> G
F --> H[Embedding cache identity]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +52, Tests +345. Total +397 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one endpoint-classification policy in the Bedrock embedding owner, retain AWS SDK ownership for canonical regional modes, and land only after redacted runtime evidence demonstrates a configured private/custom endpoint and a canonical SDK-managed endpoint. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main reads configured Bedrock endpoint URLs only for region selection and constructs the embedding client without an endpoint. A configured PrivateLink endpoint plus an embedding request is a clear current-main reproduction path, although this read-only review did not execute it. Is this the best way to solve the issue? Yes, provisionally: comparing configured URLs with the AWS SDK endpoint provider preserves one canonical policy and matches the existing Bedrock streaming split between standard and custom endpoints. The remaining requirement is runtime proof that the selected endpoints and signing behavior match the intended policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 768e1f9a2df8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* origin/main: (25 commits) test(qa): cover plugin authoring contracts (#118821) fix(parallels): keep provider keys out of POSIX job logs (#118840) improve: reduce redundant Code Mode test work (#118815) fix(models): report primary OpenRouter limits in scans (#110855) test: speed up setup inference fixtures (#118811) fix(auto-reply): enforce canonical reset authorization (#118580) docs(gateway): fix invalid heartbeat visibility examples (#118827) fix(plugins): unify HTTP route conflict handling (#118203) test(agents): use prepared auth fixtures (#118816) fix(lmstudio): resolve JIT embedding variants fix(lmstudio): preserve embedding preload and model identity fix(ai): reject binary Codex websocket frames (#111138) fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 (#118804) feat(cli): add session archive and delete commands (#118791) fix(openai): commit eligible final realtime transcription audio safely (#118782) fix(reef): restrict management commands to owners [AI] (#118578) fix(google): honor Cloud SDK credential location and Vertex billing project (#118745) fix(bedrock): preserve private embedding endpoints and AWS routing policy (#118744) fix(voice): make signed callback replay reservations durable and retryable (#118754) fix(openrouter): isolate custom proxy credentials and transport security (#118773) ...
…licy (openclaw#118744) * fix(bedrock): honor private embedding endpoints without overriding AWS routing * fix(bedrock): preserve canonical secure endpoint modes and private overrides
Summary
Root cause and canonical owner
The Bedrock embedding owner used configured endpoint URLs only to infer the region, then constructed the official BedrockRuntimeClient with region alone. Private/custom endpoint intent was discarded. Conversely, blindly forwarding every configured URL as an SDK custom endpoint overrides service-specific PrivateLink environment routing and makes legitimate FIPS/dualstack regional configuration fail.
The canonical owner compares configured URLs against the official AWS SDK's own partition-aware regional endpoint provider. Genuine custom/PrivateLink URLs are forwarded; normal canonical regional URLs remain SDK-managed. The existing memory embedding adapter includes only genuine custom endpoints in cache identity. Explicit custom endpoint plus explicit FIPS/dualstack continues to fail closed exactly as required by the AWS SDK; no security mode is disabled.
Actual official SDK proof
AWS_ENDPOINT_URL_BEDROCK_RUNTIMEremains authoritative, correct eu-west signing region, and custom cache identity changes while default identity remains stable.Maintainer disposition: installed AWS SDK signed transport proof
50 focused owner regressions pass against the actual installed AWS SDK 3.1095 endpoint resolver and actual SigV4-signed in-memory transport. Coverage includes custom/PrivateLink endpoint routing and signing, standard commercial/GovCloud/China partitions, FIPS, dual-stack, and fail-closed handling of unsupported requested endpoint security modes. Direct installed dependency source/types and canonical provider owner were inspected. This demonstrates actual endpoint resolution and signed HTTP request generation without external AWS credentials; live PrivateLink/AWS calls are intentionally unavailable and the additional live capture is optional, not a correctness finding.