Many think that handing a large language model a static service account automatically makes its actions trustworthy. The reality is that an LLM can still issue privileged commands, read confidential rows, or exfiltrate data, and the organization has no visibility into what actually happened.
Zero trust means assuming every request, human or machine, could be malicious until verified otherwise. For agentic AI this translates into three concrete questions: Who is the caller? What are they allowed to do? How do we prove they stayed within those bounds?
Why zero trust matters for agentic AI
Today most teams deploy agentic AI by embedding credentials directly into code, configuration files, or container secrets. The model then connects to a database, a Kubernetes cluster, or a remote host as if it were a regular user. This approach has three painful side effects:
- Unlimited standing access. The AI can run any command at any time, even after the original business case expires.
- No audit trail. Operations are logged only on the target system, which may not capture the exact query or command the model issued.
- Uncontrolled data exposure. Sensitive fields flow back to the model without any redaction, enabling accidental leakage.
These problems persist even when the organization adopts modern identity providers. Using OIDC or SAML tokens gives the AI a verified identity, and assigning the least‑privilege role limits the set of resources it can reach. However, the request still travels straight to the target, bypassing any real enforcement point. The gateway that could inspect, approve, or mask the traffic simply does not exist.
Where enforcement must live
Zero trust requires a dedicated data‑path component that sits between the caller and the resource. This component must be the sole place where policy decisions are applied. In practice the architecture looks like this:
- Setup. Identity providers (Okta, Azure AD, Google Workspace) issue OIDC/SAML tokens. Roles and service accounts are scoped to the minimum set of permissions the AI needs.
- The data path. A gateway intercepts every protocol‑level request, PostgreSQL, SSH, Kubernetes exec, etc., and becomes the only place where the request can be examined.
- Enforcement outcomes. The gateway can record the session, mask sensitive fields, require just‑in‑time approval for risky commands, and block disallowed operations.
If the gateway is removed, none of the enforcement outcomes survive; the setup alone cannot block a rogue query or hide a credit‑card number that the model returns.
