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.
SG-AI-AllUsersSG-AI-Financewhenwhen matches one of her groups applies — deny overrides allow.
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.
when matched no group, there is no policy → role_no_active.denyabac_when_false.denymodels_allow → else model_denied.denytool_denied_explicit / tool_not_allowed.denytopic_denied / content_blocked.denyEverything 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.