Gateway guardrail
A guardrail your AI gateway calls for a verdict on each request
Point your AI gateway at Sargha's guardrail. It judges each request in memory for prompt injection, secrets, personal data and data-exfiltration instructions, and returns a verdict. It keeps metadata about the verdict, not the text.
Your gateway
- Any OpenAI-compatible gatewayYour gateway sends the text to check to a Sargha API address. Kong needs a custom plugin or function.
Sargha guardrail
- Judged in memorySargha does not store or log the text. It keeps metadata such as the action, the category names and the character count.
- Your detector (optional)A second opinion that you can turn on.
Verdict
- Allow, monitor, mask or blockSet the policy for your tenant, with overrides for individual keys. Your gateway applies the verdict.
Your gateway sends this text to the Sargha server. Sargha does not forward requests to the model.
What the guardrail checks
Each category can be set to off, monitor or block. Secrets and personal data can also be set to mask. You set the modes for your tenant and can override them per key.
- Categories
- Prompt injection, jailbreak attempts, secrets, personal data, toxic language, data exfiltration instructions and tool abuse.
- Mask or block
- A detected secret or personal-data value can be masked in place, so the whole message is not blocked. Your gateway hook must be able to rewrite messages.
- Detection limits
- Detection uses rules and small trained models. It can miss attacks and can flag harmless text.
Approved models at the gateway
You can keep a list of approved model names. Sargha returns a monitor or block verdict, as you choose, for any other model. This check is skipped when the gateway's request names no model.
Your own detector
You can add a detector you already run as a second opinion. Turning it on requires recorded consent. By default, detected secrets and personal data are masked before the text is sent to it; you can choose to send the full text. You also choose whether an outage fails open or closed. The default is open.
Gateway guardrail questions
Does the guardrail proxy my AI traffic?
No. Your gateway sends Sargha the text to check and gets a verdict back. Sargha does not forward requests to the model and does not store the text.
Does it block or only flag?
You choose a mode for each category: off, monitor or block. Secrets and personal data can also be masked. Your gateway applies the verdict.
Which licenses include the gateway guardrail?
Ask us. We confirm it for your order. See also what each license includes.
See the AI on your fleet in about a week.
Run the sensor on up to 25 endpoints and receive an AI risk report and an AI Bill of Materials. The assessment is free and carries no commitment.