Configure a policy
- Select All projects for an organization policy, or select a project for a project policy.
- Open Guardrails and create a policy with a name and description.
- Choose Prompt injection, Jailbreak attempts, and/or Sensitive data.
- Select the sensitivity. For sensitive data, choose the individual data kinds and Block or Redact for each rule.
- Test representative samples with the draft tester, review the result, and save the enabled policy.
Choose protections
For Company email, enter the protected domains; subdomains are included. Custom patterns use
RE2, which supports predictable matching without backreferences or lookaround. A policy accepts
up to 20 custom patterns, each at most 200 characters, and up to 50 protected email domains.