Firewall docsPolicy & detection

Policy model

A policy is the unit of control. It declares what a set of users may do with AI: which models, which tools, which data scopes, which topics, at what budget, in which runtime mode. Policies are native to the firewall — you author them here, and they are not synced from your identity provider.

Policies resolve from directory groups or managed endpoints

For SSO identities, you do not assign a policy to an individual. Instead, each policy carries a condition — a when expression over identity attributes — that binds it to one or more directory groups:

# A policy that applies to everyone in the AllUsers group
when: identity.attributes.group == "SG-AI-AllUsers"

# Multiple groups — power users OR developers
when: identity.attributes.group == "SG-AI-PowerUsers" ||
      identity.attributes.group == "SG-AI-Eng-Developers"

Directory-group membership comes from your identity provider, and a user inherits every matching policy. Organizations without SSO can instead create a manual group that binds enrolled endpoints to one existing policy role. Manual groups do not invent user identity membership: assigning an endpoint changes its enforcement role, which the client receives on its next policy sync.

Identity
Patricia Chen
Carries directory attributes, including group membership.
→
Groups
Her directory groups
SG-AI-AllUsers
SG-AI-Finance
→
Bound by when
Effective policy
Every policy whose when matches one of her groups applies — deny overrides allow.
The Policies screen listing group-scoped firewall policies.
Policies. Each row is a firewall policy and the group it applies to. This sample tenant runs eleven, from a baseline tier to break-glass overrides.

How a decision is reached

When a request arrives, the gateway resolves the caller's active policy and evaluates it in a fixed order. Two rules govern the outcome:

  • Lower priority number is evaluated first. A tightly-scoped policy (say, a secrets block at priority 10) is considered ahead of a broad baseline (priority 100).
  • Deny overrides allow. If anything in the effective policy denies the request, it is denied — a grant elsewhere cannot rescue it.
1Is a policy active for this identity? If the when matched no group, there is no policy → role_no_active.deny
2Do the ABAC conditions hold? Attribute predicates on the request must pass → else abac_when_false.deny
3Is the model permitted? The requested model must be in models_allow → else model_denied.deny
4Is the tool permitted? Explicit denies win; otherwise the tool must be allowed → tool_denied_explicit / tool_not_allowed.deny
5Is the topic allowed and content clean? Denied topics and detection hits stop here → topic_denied / content_blocked.deny
6Otherwise — the request is permitted and forwarded upstream.allow

Everything not explicitly granted is denied. A policy that grants no models denies every request by construction — least privilege is the default, not an add-on.

Type to search the documentation.