-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Area/AIPoliciesIssues related to policies,guardrails in AI GatewayIssues related to policies,guardrails in AI GatewayArea/PoliciesIssues related to any policy, policy hub, policy engine etcIssues related to any policy, policy hub, policy engine etcAspect/APIAPI definitions, contracts, OpenAPI, interfacesAPI definitions, contracts, OpenAPI, interfacesSeverity/MinorType/Bug
Description
Please select the area the issue is related to
Area/Policies (Policies, Policy Hub, Policy Engine etc)
Please select the aspect the issue is related to
Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)
Description
When passthroughOnError is set to true on Azure Content Safety Content Moderation policy, as per the description the request should proceed to the upstream. but it's blocked when the guardrail is triggered.
Steps to Reproduce
- Deploy a self-hosted gateway (with Azure credentials added in config.toml) and a sample backend to log the request data on the same network.
- Configure an API proxy and point it to the backend you deployed.
- Add
Azure Content Safety Content Moderationpolicy at API level and setSeverity thresholdfor all categories to 1 and setpassthroughOnErrortotrue - Deploy the API and send a request that passes the validation
- Notice the logs in the backend (request should reach the backend)
- Send a request that fails validation
- Notice that no new logs appear on the backend (when passthroughOnError is set to true requests should be sent to backend even if validation fails)
Severity Level of the Issue
Severity/Minor (Non-critical functionality. Can be fixed in future releases)
Environment Details (with versions)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area/AIPoliciesIssues related to policies,guardrails in AI GatewayIssues related to policies,guardrails in AI GatewayArea/PoliciesIssues related to any policy, policy hub, policy engine etcIssues related to any policy, policy hub, policy engine etcAspect/APIAPI definitions, contracts, OpenAPI, interfacesAPI definitions, contracts, OpenAPI, interfacesSeverity/MinorType/Bug