Many assume that simply issuing a short‑lived token to a planner‑executor agent automatically satisfies zero trust requirements. In reality, the token alone does not prevent the agent from over‑reaching, leaking data, or executing unintended commands. Teams often rely on the token’s expiration as the only guard, believing that the agent’s limited lifespan is enough to keep the system safe.
Most environments let planner‑executor agents run with a static service account that has broad read‑write permissions on databases, storage buckets, or message queues. Operators store the account credentials in configuration files or environment variables and reuse the same secret across many jobs. Auditing usually reduces to a generic log entry that the job started, without any visibility into the exact queries or commands that were executed. This “run‑anywhere” model leaves a large attack surface open, especially when the agent is invoked by automated pipelines or AI‑driven planners.
How planner‑executor agents are typically deployed
Without a dedicated gateway, the deployment workflow looks like this:
- A CI/CD pipeline provisions a service account with a long‑lived secret.
- The pipeline injects the secret into the agent’s runtime environment.
- The agent connects directly to the target system, database, message broker, or HTTP API, using the injected credentials.
- Logging captures only the pipeline’s stdout/stderr streams; no fine‑grained command‑level audit is recorded.
- If the agent misbehaves, operators rotate the secret and hope the damage is limited.
This approach satisfies basic identity verification but provides no runtime guardrails. The setup (identity provider, OIDC token, service account) decides who can start the agent, yet it does not enforce what the agent may do once the connection is established.
Zero trust goals and the gaps that remain
Zero trust adds three essential controls to the picture:
- Least‑privilege access: grant the smallest set of permissions needed for a specific task.
- Just‑in‑time approval: require a human or policy decision before a high‑risk operation proceeds.
- Full session audit: record every request and response for later review.
Even when these controls are defined in policy, the agent still reaches the target system directly. The connection bypasses any inspection point, so the system cannot mask sensitive fields, block dangerous commands, or enforce an approval workflow. In other words, zero‑trust policy is present, but the enforcement layer is missing.
Zero trust enforcement for planner‑executor agents
This is where hoop.dev becomes essential. hoop.dev acts as a Layer 7 gateway that sits between the identity layer and the target infrastructure. By placing the gateway in the data path, hoop.dev can enforce every zero‑trust control at the moment traffic flows.
When a planner‑executor agent attempts a connection, hoop.dev first validates the OIDC token, confirming the caller’s identity and group membership. After the identity check, hoop.dev applies the following enforcement outcomes:
- Inline data masking: response fields that match policy‑defined patterns are redacted before they reach the agent.
- Command‑level blocking: risky statements are rejected automatically, preventing destructive actions.
- Just‑in‑time approvals: operations that exceed the agent’s baseline permissions are paused and routed to a designated approver.
- Session recording: every request and response is captured, enabling replay and forensic analysis.
All of these outcomes exist only because hoop.dev occupies the data path. The setup (OIDC, service accounts) determines who may start a session, but without hoop.dev the session would proceed unchecked. By inserting the gateway, hoop.dev becomes the sole point where policy enforcement can happen, guaranteeing that zero‑trust promises are realized end‑to‑end.
For teams ready to adopt this approach, the getting‑started guide walks through deploying the gateway, registering a planner‑executor connection, and configuring zero‑trust policies. The broader feature overview is available on the learn page, where you can explore masking, approval workflows, and audit capabilities in more depth.
FAQ
Do I need to rewrite my existing planner‑executor code?
No. hoop.dev works as a transparent proxy that speaks the same wire protocol as the target system. Your existing client libraries (SQL drivers, HTTP clients, etc.) continue to operate unchanged; they simply point at the gateway endpoint instead of the raw resource.
How does hoop.dev protect the credentials it stores?
The gateway holds the credential internally and never exposes it to the caller. Access to the credential is gated by the same zero‑trust policies that govern the data path, ensuring that only authorized sessions can retrieve it, and only for the duration of an approved request.
Adopting a gateway‑centric model is the most reliable way to turn zero‑trust policy into measurable security outcomes for planner‑executor agents.
Explore the open‑source repository on GitHub to see the code, contribute, or run your own instance.