Many assume that simply redacting patient identifiers before they reach a language model satisfies HIPAA, but the rulebook demands far more than surface‑level sanitization. Real compliance requires proof that every access, transformation, and decision was governed, logged, and reviewed.
What HIPAA expects from AI‑assisted workflows
HIPAA’s Security Rule defines three core safeguards: administrative, physical, and technical. For AI workloads that ingest protected health information (PHI) via a context window, the technical safeguards are the most visible. They include:
- Unique user authentication and role‑based access control.
- Audit trails that record who accessed PHI, when, and what was returned.
- Mechanisms to prevent unauthorized disclosure, such as real‑time masking or approval workflows.
- Retention of logs for the period required by the regulation.
Auditors will ask to see immutable evidence that these controls were in place for every request that touched PHI.
The unsanitized reality of today’s context‑window pipelines
In many organizations, developers embed static API keys in code, grant broad service‑account permissions, and pipe raw patient notes directly to an LLM endpoint. The request travels straight from the application to the model provider, bypassing any gate that could enforce policy. No per‑request approval, no inline redaction, and no session recording occur. When a breach is discovered, the only trace is a vague network log that shows a connection to an external service, offering no insight into which records were exposed or which engineer initiated the call.
Why a single point of control is required
The missing piece is a data‑path enforcement layer that can observe each payload, apply policy, and produce audit evidence. A setup that only authenticates users – for example, an OIDC token that grants a service account permission to call the model – does not, by itself, guarantee that PHI is handled correctly. The request still reaches the model directly, leaving the organization without the ability to block, mask, or log the content of the context window.
Introducing hoop.dev as the HIPAA‑ready gateway
hoop.dev inserts a Layer 7 gateway between the identity that initiates a request and the LLM that processes the context window. The gateway runs an agent inside the trusted network, holds the model credentials, and enforces policy at the protocol level. Because hoop.dev sits in the data path, it can:
- Require just‑in‑time approval before any PHI‑laden request is forwarded.
- Mask protected fields in the model’s response in real time.
- Record the full request and response for replay and audit.
- Tie every action to a verified identity obtained via OIDC/SAML.
These enforcement outcomes exist only because hoop.dev is the gateway; the surrounding authentication setup merely identifies the caller.
