All posts

HIPAA for non-human identities: governing machine access end to end (on on-prem)

Many teams assume that if a service account can talk to a database, HIPAA compliance is automatically satisfied. The reality is that HIPAA cares about *how* that access is granted, recorded, and protected, not just that a credential exists. HIPAA’s Security Rule requires covered entities to implement technical safeguards that ensure only authorized identities can retrieve protected health information (PHI), that every access is logged, and that the logs are available for audit. When machines, a

Free White Paper

End-to-End Encryption + Non-Human Identity Management: The Complete Guide

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

Free. No spam. Unsubscribe anytime.

Many teams assume that if a service account can talk to a database, HIPAA compliance is automatically satisfied. The reality is that HIPAA cares about *how* that access is granted, recorded, and protected, not just that a credential exists.

HIPAA’s Security Rule requires covered entities to implement technical safeguards that ensure only authorized identities can retrieve protected health information (PHI), that every access is logged, and that the logs are available for audit. When machines, automation scripts, CI/CD pipelines, AI agents, are the actors, the same safeguards must be applied, but the evidence collection becomes more complex.

What hipaa expects for machine access

Auditors look for three core artifacts:

  • Access control evidence: records that a non‑human identity received the minimum privileges needed for a specific task, and that the grant was time‑bound.
  • Audit trail: immutable logs that capture who (or what) accessed which resource, when, and what data was returned.
  • Data protection proof: evidence that PHI was masked or redacted in any response that left the protected environment.

In practice, auditors also request the ability to replay a session to verify that the observed behavior matches the recorded logs.

Why non‑human identities are a blind spot

Teams often provision service accounts and AI agents with long‑lived static secrets. Those secrets live in configuration files or secret managers, but the systems that enforce policies, IAM, secret‑rotation tools, operate upstream of the actual data flow. When a machine connects directly to a database, the database sees only a credential; it cannot verify whether the request was approved, whether the data returned should be masked, or whether the operation complies with a policy.

This gap means that even if the identity provider logs a successful authentication, the auditor cannot see what happened inside the session. The result is a missing piece of evidence that HIPAA requires.

How hoop.dev creates audit‑ready artifacts

hoop.dev is a layer‑7 gateway that sits in the data path between the non‑human identity and the target infrastructure. Because the gateway inspects traffic at the protocol level, it can enforce policies and generate the exact artifacts auditors demand.

Continue reading? Get the full guide.

End-to-End Encryption + Non-Human Identity Management: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.
  • hoop.dev records each session. Every command, query, or API call logs with timestamp, identity, and result. hoop.dev stores the logs separate from the agent process, enabling audit teams to review them.
  • hoop.dev requires just‑in‑time approval. Before a connection is established, the gateway routes the request to a human approver. hoop.dev persists the approval decision, including approver identity and rationale, alongside the session log.
  • hoop.dev masks PHI in responses. When a query returns protected data, the gateway redacts or replaces sensitive fields in real time. hoop.dev records the masking event, giving auditors proof that PHI never left the protected zone in clear text.
  • hoop.dev scopes access to the minimum required. Policies limit which tables, columns, or commands a service account may use. hoop.dev logs the enforced scope per session, demonstrating the principle of least privilege.
  • hoop.dev provides session replay. Recorded traffic streams back to an auditor, allowing a step‑by‑step verification of the exact operations performed.

Because hoop.dev integrates with any OIDC or SAML identity provider, non‑human identities inherit the same authentication guarantees as human users while the gateway supplies the enforcement layer that HIPAA mandates.

Key artifacts to hand an auditor

When preparing for a HIPAA audit, gather the following from hoop.dev:

  1. Just‑in‑time approval logs: Export the JSON or CSV file that lists every approval request, the approver, and the timestamp.
  2. Session audit logs: Provide the chronological log of all commands issued by each service account, including success/failure status and any error codes.
  3. Masking evidence: Include the masking audit entries that show which fields were redacted and the masking rule applied.
  4. Access‑grant records: Show the policy definitions that limited each identity’s scope and the time window for each grant.
  5. Replay files: Offer a downloadable capture of a representative session so the auditor can replay it in a sandbox.

hoop.dev automatically generates all of these artifacts; you only need to point the auditor to the export endpoints or the files stored in your log aggregation system.

Getting started

Deploy the gateway in your on‑prem network, register your databases, Kubernetes clusters, or SSH endpoints, and configure OIDC authentication for your service accounts. The official getting‑started guide walks you through a Docker‑Compose deployment, while the learn section details how to define masking rules and approval workflows.

FAQ

Q: Do I need to change my existing service‑account credentials?
A: No. hoop.dev stores the credential on behalf of the identity, so the original secret can remain unchanged. The gateway simply proxies the connection, applying policies before the credential reaches the target.

Q: How long are the audit logs retained?
A: You decide the retention period in your log store. hoop.dev ensures that every session logs, and you keep the logs for as long as HIPAA’s retention requirements demand.

Q: Can I use hoop.dev with existing CI/CD pipelines?
A: Yes. The gateway presents the same network endpoint that your tools already use (for example, the standard PostgreSQL port). You only need to point your pipeline’s client to the hoop.dev host.

By moving enforcement into the data path, hoop.dev gives you the concrete, auditable evidence that HIPAA expects for every machine‑initiated access.

Ready to see the code and contribute? Explore the open‑source repository 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