All posts

A Guide to Zero Trust in Self-Hosted Models

Many teams assume that zero trust is simply a perimeter firewall wrapped around their servers. In reality, zero trust is a set of principles that require every request to be authenticated, authorized, and inspected regardless of where it originates. Treating zero trust as a single device or a static network rule leaves the most dangerous gaps unaddressed. Common misconceptions about zero trust Zero trust does not mean “no trust.” It means never trusting a connection until it has been verified

Free White Paper

NIST Zero Trust Maturity Model + Just-in-Time Access: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

Many teams assume that zero trust is simply a perimeter firewall wrapped around their servers. In reality, zero trust is a set of principles that require every request to be authenticated, authorized, and inspected regardless of where it originates. Treating zero trust as a single device or a static network rule leaves the most dangerous gaps unaddressed.

Common misconceptions about zero trust

Zero trust does not mean “no trust.” It means never trusting a connection until it has been verified at each hop. A common mistake is to rely on a single identity provider and then assume that all downstream services automatically inherit that trust. Another pitfall is to grant long‑lived credentials to applications and expect the zero‑trust model to protect them. Without continuous verification, credential leakage can bypass any perimeter you put in place.

Key control points in a self‑hosted environment

When you run your own infrastructure, the responsibility for enforcing zero‑trust controls shifts to three areas:

  • Identity and authentication. Users, service accounts, and AI agents must present short‑lived, verifiable tokens. Integration with OIDC or SAML providers is essential, but the token alone does not guarantee safe access.
  • Authorization and least‑privilege. Permissions should be scoped to the exact resource and operation required for a given task. Standing access that exceeds the immediate need is a violation of zero‑trust principles.
  • Inspection and audit. Every command or query should be examined before execution, and a reliable record of the session must be kept for later review.

Missing any of these layers creates a blind spot. For example, a privileged SSH key stored on a developer’s laptop can be used to bypass network segmentation, while a lack of session recording makes it impossible to prove what was done during an incident.

Why a data‑path gateway is essential

The only place you can reliably enforce the three control points is in the data path itself. A gateway that sits between the identity layer and the target resource can:

  • Validate each request against the current policy, ensuring that the identity presented is still authorized for the specific operation.
  • Apply just‑in‑time approvals for risky commands, forcing a human decision before the command reaches the backend.
  • Mask sensitive fields in responses, preventing accidental exposure of credentials or personal data.
  • Record the full session for replay, providing a reliable audit trail that supports compliance and forensic investigations.

Because the gateway controls the flow of traffic, it can enforce these safeguards even when the underlying service does not support them natively. This approach aligns directly with zero‑trust doctrine: never trust, always verify, and always log.

Continue reading? Get the full guide.

NIST Zero Trust Maturity Model + Just-in-Time Access: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

hoop.dev as the enforcement layer

hoop.dev implements the data‑path gateway that zero‑trust architectures require for self‑hosted models. It proxies connections to databases, Kubernetes clusters, SSH endpoints, and internal HTTP services, while applying the controls described above. hoop.dev holds the credentials for the target resources, so users and agents never see them directly. Identity is verified through OIDC or SAML, and group membership drives fine‑grained access decisions.

When a request passes through hoop.dev, the gateway can block dangerous commands, route them for approval, mask sensitive response fields, and record the entire interaction for later replay. All of these enforcement outcomes are possible only because hoop.dev sits in the data path; the surrounding setup (identity providers, IAM roles, network segmentation) provides the necessary context but does not enforce the policy on its own.

Getting started with hoop.dev is straightforward. The official getting‑started guide walks you through deploying the gateway with Docker Compose or Kubernetes, registering your resources, and configuring OIDC authentication. The learn section expands on each feature, including just‑in‑time approvals, inline masking, and session replay.

FAQ

Is hoop.dev required for zero trust? The principles of zero trust can be applied without a gateway, but a data‑path gateway like hoop.dev is the only practical way to enforce inspection, masking, and reliable audit across heterogeneous self‑hosted services.

Can I use my existing identity provider? Yes. hoop.dev acts as a relying party for any OIDC or SAML provider, so you can keep your current IdP while adding the enforcement layer.

Does hoop.dev store my production credentials? Credentials are stored only inside the gateway process and never exposed to end users or agents. This design reduces the risk of credential leakage.

Explore the source code and contribute on GitHub.

Open source

Save the open-source gateway for agent data access

Hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.

Star and save the repo →More posts