Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Gateway: Bedrock guardrail header block and per-user assumed role

The built-in gateway now refuses amazon-bedrock-* headers when a Bedrock guardrail applies, and can use a separate AWS role per user

You'll notice Improvements
JSON All of v2.1.281
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
GatewayArea: what it touches
ImprovementsKind: in v2.1.281,
ImprovementsSection of the release
What

Claude Code has an embedded gateway that passes requests on to Amazon Bedrock, Amazon's service for running models. A guardrail is a Bedrock rule set that filters what goes in and out. Two changes apply:

  • When a guardrail applies to a request to /v1/messages, any request header starting with amazon-bedrock- is refused with a 400 error. A header is an extra piece of information sent with a request.
  • The gateway can now take on a separate AWS role for each user (an "assume-role" client). If Bedrock answers with a 401 or 403 permission error, it gets fresh credentials for that client.
Why

Blocking those headers stops a request from changing or skipping the guardrail. Per-user roles let each person's requests run with their own permissions, and the refresh keeps expired credentials from causing repeated failures.

See this entry in the whole of v2.1.281 →

Feedback