You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bedrock-runtime: route SigV4 service name "bedrock" to BedrockRuntimePlugin #262
When AWS_ENDPOINT_URL is set to a single base endpoint (e.g. http://localhost:4566), boto3's bedrock-runtime client uses bedrock (not bedrock-runtime) as the SigV4 signing service name in the Authorization credential scope:
extractServiceFromHost returns "" (host is localhost:4566, not .amazonaws.com), so routing falls through to extractServiceFromAuth, which returns bedrock. Since no plugin is registered under bedrock, RouteRequest returns:
501 ServiceNotAvailable: service not emulated: bedrock
apply_guardrail_safe() in quick-suite-router is fail-closed, so this 501 causes it to block every request, breaking the guardrails integration tests.
Fix
Added "bedrock": "bedrock-runtime" to targetServiceAliases in parser.go so SigV4 credential scope routing maps bedrock → BedrockRuntimePlugin.
Note: I applied the fix directly in commit 886cf5a and tagged it as v0.45.7, which I should not have done. The change was a one-liner in targetServiceAliases in parser.go. Leaving this issue open for the project to review and handle through its normal process.
Activity
scttfrdmn commentedon Apr 2, 2026
Note: I applied the fix directly in commit 886cf5a and tagged it as v0.45.7, which I should not have done. The change was a one-liner in
targetServiceAliasesinparser.go. Leaving this issue open for the project to review and handle through its normal process.Release v0.45.7: IAM XML protocol + SSM timestamp fix (#260, #261, #262)
scttfrdmn commentedon Apr 2, 2026
Fixed officially in v0.45.8.