Gunner Kwon and Bennet Bo Fenner
5d3f275cbf
bedrock: Add Guardrail configuration support ( #50084 )
...
## Background: Amazon Bedrock Guardrails
AWS Bedrock Guardrails enables configurable safety and compliance
controls for generative AI applications:
- Evaluates both user inputs and model responses against policies.
:contentReference[oaicite:8]{index=8}
- Can block or filter content based on harmful categories, denied
topics, PII, or hallucination criteria.
:contentReference[oaicite:9]{index=9}
- Guardrails are applied during inference API calls by specifying
`guardrailIdentifier` and `guardrailVersion` in the request.
:contentReference[oaicite:10]{index=10}
Relevant AWS documentation:
- User Guide:
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
- How Guardrails Works:
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-how.html
- API Reference (GuardrailConfiguration):
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailConfiguration.html
Some AWS environments enforce IAM policies that require a guardrail to
be specified on every Bedrock API call (via a `StringEquals` condition
on `bedrock:GuardrailIdentifier`). Without this, Zed returns
`AccessDenied` and Bedrock models are completely unusable in those
environments.
This adds two optional settings, `guardrail_identifier` and
`guardrail_version`, to the Bedrock provider config. When set, a
`GuardrailStreamConfiguration` is attached to every `converse_stream`
request. When unset, behaviour is identical to before.
```json
{
"language_models": {
"bedrock": {
"guardrail_identifier": "arn:aws:bedrock:us-east-1:123456789012:guardrail/abc123",
"guardrail_version": "DRAFT"
}
}
}
```
`guardrail_version` defaults to `"DRAFT"` if omitted.
Release Notes:
- agent: Added `guardrail_identifier` and `guardrail_version` settings
for AWS Bedrock, enabling use in environments where IAM policies require
a guardrail on all model requests
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de >
2026-05-11 17:43:54 +00:00
..
2026-05-08 11:26:03 +00:00
2026-04-24 15:53:14 +00:00
2026-04-16 12:54:17 +00:00
2026-05-08 10:36:03 +00:00
2026-05-11 08:58:03 +00:00
2026-05-08 11:26:03 +00:00
2026-05-08 17:06:02 +00:00
2026-05-11 16:23:33 +00:00
2026-05-07 15:43:43 +00:00
2026-05-11 13:19:20 +00:00
2026-04-23 23:47:30 +00:00
2026-03-24 00:58:09 +01:00
2026-05-11 05:31:58 +00:00
2026-05-01 22:33:54 +00:00
2026-05-05 22:41:13 +00:00
2026-05-11 17:43:54 +00:00
2026-03-13 08:00:22 +00:00
2026-04-16 12:54:17 +00:00
2026-05-08 15:53:40 +00:00
2026-05-08 15:53:40 +00:00
2026-05-11 15:53:20 +00:00
2026-05-11 17:20:03 +00:00
2026-02-25 08:12:04 +01:00
2026-05-08 20:35:29 +00:00
2026-05-11 17:29:35 +00:00
2026-05-11 15:22:43 +00:00
2026-04-02 17:06:57 -03:00
2026-05-11 17:29:35 +00:00
2026-05-08 15:53:40 +00:00
2026-03-27 18:06:56 -07:00
2026-05-05 22:41:13 +00:00
2026-04-15 21:51:15 -03:00
2026-05-06 13:33:06 +00:00
2026-05-05 22:41:13 +00:00
2026-05-05 22:41:13 +00:00
2026-05-05 22:41:13 +00:00
2026-05-04 06:30:47 +00:00
2026-04-02 17:06:57 -03:00
2026-04-21 07:25:22 +00:00
2026-04-27 08:42:45 +00:00
2026-04-29 10:27:47 +00:00
2026-04-24 10:29:51 +00:00
2026-05-05 22:41:13 +00:00
2026-05-08 10:36:03 +00:00
2026-04-27 13:50:00 +00:00
2026-04-29 10:27:47 +00:00
2026-04-23 07:36:36 +00:00
2026-05-08 14:18:44 +00:00
2026-04-30 11:10:14 +00:00
2026-05-11 15:22:43 +00:00
2026-05-04 09:53:36 +00:00
2026-05-05 22:41:13 +00:00
2026-05-06 17:03:01 +00:00
2026-04-10 13:27:04 -04:00
2026-05-09 19:08:54 +00:00
2026-05-08 16:24:30 +00:00
2026-05-06 09:28:05 +00:00
2026-05-08 10:36:03 +00:00
2026-04-07 12:28:19 -03:00
2026-02-28 21:47:30 -05:00
2026-05-06 09:35:43 +00:00
2026-02-19 18:57:49 +01:00
2026-02-28 22:42:19 -05:00
2026-05-06 18:52:31 +00:00
2026-04-29 07:27:05 +00:00
2026-04-21 17:32:54 -04:00
2026-05-06 22:38:44 +00:00
2026-05-05 22:41:13 +00:00
2026-05-11 11:57:46 +00:00
2026-04-18 06:34:19 +00:00
2026-05-04 06:30:47 +00:00
2026-05-05 22:41:13 +00:00
2026-05-08 13:19:07 +00:00
2026-02-19 18:57:49 +01:00
2026-04-03 11:00:13 +00:00
2026-05-06 10:56:20 +00:00
2026-05-09 02:46:59 +00:00
2026-05-09 02:46:59 +00:00
2026-04-30 14:17:32 +00:00
2026-05-08 20:06:36 +00:00
2026-05-08 10:36:03 +00:00
2026-04-27 12:36:11 +00:00
2026-05-08 09:30:34 +00:00
2026-05-06 07:35:40 +00:00
2026-05-11 15:31:25 +00:00
2026-05-04 22:51:56 +00:00
2026-03-24 11:05:12 +00:00
2026-04-24 08:58:26 +00:00
2026-04-14 18:14:31 +02:00
2026-04-23 23:47:30 +00:00
2026-05-04 22:51:56 +00:00
2026-05-07 15:07:36 +00:00
2026-05-07 14:09:39 +00:00
2026-04-24 08:45:47 +00:00
2026-04-07 11:19:21 +05:30
2026-04-29 11:38:03 +00:00
2026-05-08 10:36:03 +00:00
2026-04-22 22:22:10 +00:00
2026-05-05 22:41:13 +00:00
2026-02-12 00:28:17 +00:00
2026-05-05 22:41:13 +00:00
2026-04-29 10:27:47 +00:00
2026-04-24 08:58:26 +00:00
2026-05-08 13:19:33 +00:00
2026-04-18 00:55:44 +02:00
2026-04-02 12:52:42 +00:00
2026-04-27 12:36:11 +00:00
2026-04-27 13:03:33 +00:00
2026-05-11 17:43:54 +00:00
2026-04-24 10:29:51 +00:00
2026-03-25 12:07:34 -06:00
2026-05-08 10:36:03 +00:00
2026-05-08 10:36:03 +00:00
2026-05-08 09:30:34 +00:00
2026-05-08 10:36:03 +00:00
2026-02-03 15:51:40 -05:00
2026-05-01 17:29:27 +00:00
2026-03-06 16:49:55 +00:00
2026-03-17 08:36:37 +01:00
2026-05-08 15:24:45 +00:00
2026-05-07 09:31:37 +00:00
2026-05-04 22:51:56 +00:00
2026-04-23 18:41:52 +00:00
2026-05-06 12:27:58 +00:00
2026-05-06 09:28:05 +00:00
2026-02-17 10:41:10 +00:00
2026-02-20 13:36:04 +00:00
2026-04-14 11:10:31 +00:00
2026-04-24 10:29:51 +00:00
2026-04-15 02:21:56 -04:00
2026-05-05 22:41:13 +00:00
2026-05-11 13:48:33 +00:00
2026-03-27 14:41:25 +01:00
2026-04-07 12:28:19 -03:00
2026-05-10 20:29:59 +00:00
2026-05-05 05:10:46 +00:00
2026-05-08 10:36:03 +00:00
2026-03-13 14:13:12 -03:00
2026-05-06 19:52:34 +00:00
2026-05-06 14:06:48 +00:00
2026-04-08 00:34:54 +00:00
2026-03-31 12:48:22 +03:00
2026-05-08 10:23:56 +00:00
2026-05-05 22:41:13 +00:00
2026-05-08 10:36:03 +00:00
2026-05-05 22:41:13 +00:00
2026-04-24 08:58:26 +00:00
2026-05-06 20:08:42 +00:00
2026-05-09 01:54:42 +00:00
2026-04-15 23:25:44 +00:00
2026-05-05 22:41:13 +00:00
2026-04-16 16:36:09 -07:00
2026-05-07 17:40:28 +00:00
2026-05-05 22:41:13 +00:00
2026-05-08 21:03:40 +00:00
2026-03-21 14:05:30 +01:00
2026-05-04 16:38:14 +00:00
2026-05-05 22:41:13 +00:00
2026-03-07 04:11:45 +00:00
2026-03-27 14:41:25 +01:00
2026-05-08 10:36:03 +00:00
2026-03-18 12:05:57 -07:00
2026-05-04 22:51:56 +00:00
2026-05-11 17:43:54 +00:00
2026-03-25 12:07:34 -06:00
2026-04-02 00:44:53 +00:00
2026-05-09 09:56:17 +00:00
2026-05-05 16:25:56 +00:00
2026-05-11 16:23:33 +00:00
2026-04-29 10:27:47 +00:00
2026-05-05 22:41:13 +00:00
2026-04-24 10:29:51 +00:00
2026-03-21 14:05:30 +01:00
2026-03-29 14:43:05 +00:00
2026-03-31 08:06:37 -06:00
2026-05-04 06:30:47 +00:00
2026-05-05 22:41:13 +00:00
2026-05-05 22:41:13 +00:00
2026-05-05 22:41:13 +00:00
2026-01-28 16:36:44 -08:00
2026-05-08 15:32:59 +00:00
2026-05-08 10:36:03 +00:00
2026-05-06 09:28:05 +00:00
2026-05-06 21:18:29 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-04-23 23:47:30 +00:00
2026-05-06 21:18:29 +00:00
2026-02-28 21:47:30 -05:00
2026-05-08 15:53:40 +00:00
2026-05-08 10:36:03 +00:00
2026-05-05 22:41:13 +00:00
2026-03-13 19:37:18 -03:00
2026-03-27 15:31:49 +00:00
2026-03-27 14:41:25 +01:00
2026-05-06 00:06:51 +00:00
2026-05-09 04:10:54 +00:00
2026-03-19 12:53:26 -04:00
2026-03-09 13:22:12 +01:00
2026-04-07 12:28:19 -03:00
2026-03-27 14:41:25 +01:00
2026-05-01 22:33:54 +00:00
2026-05-11 10:30:59 +00:00
2026-05-08 19:28:01 +00:00
2026-02-19 18:57:49 +01:00
2026-05-07 09:56:04 +00:00
2026-05-11 17:20:03 +00:00
2026-04-21 19:54:02 +00:00
2026-04-02 17:06:57 -03:00
2026-04-02 17:06:57 -03:00
2026-05-08 13:19:33 +00:00
2026-03-03 08:37:58 +00:00
2026-02-11 11:24:04 +00:00