Search K
Appearance
Appearance
In F5 AI Guardrails, the packages in the following table offer two protection types: Comprehensive and Performance. The Comprehensive protection type runs a separate guardrail for each topic, so you can tune each topic on its own. The Performance protection type runs one performance guardrail that covers every topic, and its only modes are Block and Audit. Choose Performance protection for high-traffic or latency-sensitive endpoints, and Comprehensive protection when you need control over each topic.
| Package | Performance guardrail | Topics it covers |
|---|---|---|
| Adversarial attacks package | Adversarial attacks | Prompt injection, jailbreak, system prompt, and obfuscation |
| PII core package | PII core performance | Credit card number, date of birth, driver license, email address, IP address, passport, phone number, Social Security number (SSN), full name and postal address, MAC address, and car registration |
Before you begin, make sure you have:
Use this procedure to set the protection type for a package at the org level, as an org admin. To apply the setting to every project, enforce the guardrail in the last step.
In the left navigation, under AI Guardrails, select Guardrails.
Under F5 guardrails, select the package. For example, select PII core package.
The package panel opens, with a Protection type setting above the guardrail list.
Under Protection type, select Performance.
The list now shows the performance guardrail instead of the individual guardrails. This step only changes the view. It doesn't turn anything on or off yet.
(Optional) To see which topics the guardrail covers, select the guardrail name.
The list of topics expands under the guardrail.
Set the Scan direction to Prompts, Responses, or Prompts & Responses.
Set the Mode to Block or Audit.
Turn on the toggle in the Enable column.
AI Guardrails turns off any comprehensive guardrails from the same package that were on.
(Optional) To apply the guardrail to every project, select the checkbox in the Enforce column.
The Enforce checkbox is available only after you turn on the guardrail.
INFO
When you enforce a performance guardrail, no project can turn on comprehensive guardrails from that package.
Use this procedure to choose the protection type for one project only.
Open the project.
Select the Guardrails tab.
Select the package, for example Adversarial attacks package.
Under Protection type, select Performance.
Set the Scan direction to Prompts, Responses, or Prompts & Responses.
Set the Mode to Block or Audit.
Turn on the toggle in the Enable column.
AI Guardrails turns off the comprehensive guardrails from this package in this project only. Other projects keep their own settings.
If an org admin enforces a guardrail from this package, you can't change the protection type. The panel shows "Org admin has enforced the usage of Performance guardrails. Protection type can not be changed." or the same message for Comprehensive guardrails.
To switch the project back to Comprehensive protection:
Under Protection type, select Comprehensive.
Turn on the toggle in the Enable column for each guardrail you want.
AI Guardrails turns off the performance guardrail in this project.
This section applies only to self-hosted (on-premises) deployments. If you use the SaaS version of AI Security, skip this section.
Performance guardrails need a lightweight guardrails model in the inference layer of your deployment.
INFO
Performance guardrails need a version of the F5 AI Security Operator that includes the lightweight guardrails model. Contact your F5 team to confirm which version you need.
In your SecurityOperator custom resource, turn on guardrails and the lightweight guardrails model under spec.inference.values.
spec:
inference:
enabled: true
values:
guardrails:
enabled: true
genAI:
enabled: true # Deploys the model for Comprehensive protection
mlText:
enabled: true # Deploys the model for Performance protectionApply the manifest.
kubectl apply -f securityoperator.yamlLog in to the AI Security console.
In the left navigation, under AI Guardrails, select Guardrails.
Under F5 guardrails, select PII core package.
The Protection type setting appears when the moderator detects the lightweight guardrails model. The moderator caches the list of available models for 60 seconds by default. The setting can take up to a minute to appear.
If you turn on only mlText and turn off genAI, the Protection type setting doesn't appear. The package panel lists only the performance guardrails, and GenAI guardrails and custom GenAI guardrails aren't available.
| Setting | Default | Description |
|---|---|---|
spec.inference.values.guardrails.genAI.enabled | true | Deploys the model for Comprehensive protection. |
spec.inference.values.guardrails.mlText.enabled | false | Deploys the lightweight guardrails model for Performance protection. |
CAI_MODERATOR_ML_TEXT_AVAILABLE | Not set | Overrides model detection. Set to false to hide Performance protection. Set to true only when the lightweight guardrails model is running. If the model isn't running, performance guardrails can't scan, and they don't block prompts. If you don't set this value, the moderator detects the model on its own. |
CAI_MODERATOR_INFERENCE_MODELS_CACHE_EXPIRY_SECONDS | 60 | How long, in seconds, the moderator caches the list of available models. |
The lightweight guardrails model runs on CPU, so it doesn't need a GPU. Add these minimum resources to the requirements for your other inference models:
| Component | Performance guardrails (minimum) |
|---|---|
| CPU (x86) | 3 cores |
| Memory | 6 GB |
Symptom: The package panel shows the guardrail list but no Protection type setting.
Cause: Your deployment doesn't run both the Comprehensive and Performance protection models.
Fix: For SaaS deployments, contact F5 support. For self-hosted deployments, ask your administrator to turn on both models. For more information, see Self-hosted deployments.
Symptom: The panel shows "This package only supports Performance protection." or "This package only supports Comprehensive protection."
Cause: Your role doesn't include the Enable/disable guardrail permission, or the package has guardrails for only one protection type.
Fix: Ask an org admin to give you the Enable/disable guardrail permission. If you already have it, the package supports only the protection type shown.
Symptom: The Protection type options are unavailable, and the panel shows "Org admin has enforced the usage of Performance guardrails. Protection type can not be changed." (or "…of Comprehensive guardrails…").
Cause: An org admin enforced a guardrail from this package for every project.
Fix: Ask an org admin to remove the enforcement, or keep the enforced protection type.
Symptom: A prompt passes, and the performance guardrail result in the prompt's details in Prompt history shows "Failed to scan text, please contact support. Error ID:" followed by an ID.
Cause: AI Guardrails couldn't complete the performance scan. When this happens, performance guardrails don't block the prompt.
Fix: For self-hosted deployments, ask your administrator to check that the lightweight guardrails model is running. Otherwise, contact F5 support and give them the error ID.
For more information, see: