A recently off‑boarded contractor still holds a copy of a shared database password and uses it to run a bulk query against Devin’s analytics store. This is a classic data exfiltration scenario. The query returns millions of rows, including personally identifiable information, and the contractor ships the CSV to an external storage bucket before the breach is noticed.
Teams often rely on static credentials that are distributed via password managers or environment files. Engineers connect directly from their laptops or CI jobs to the database, and the connection bypasses any central enforcement point. Because the gateway is missing, there is no real‑time visibility into which columns are being read, no way to prevent large exports, and no audit trail that ties the activity to a specific identity.
Why the current model leaves data exfiltration unchecked
The setup that decides who can start a session, OIDC tokens, service‑account keys, or over‑scoped IAM roles, does not enforce any guardrails on the data path. It merely authenticates the user and hands the request off to the database. Without a proxy in the middle, the database sees the request as if it came from a trusted internal client. Consequently, there is no inline masking of sensitive fields, no command‑level approval workflow, and no session recording that could be replayed for forensic analysis.
This leaves three critical gaps:
- **No real‑time data masking** – sensitive columns are returned in clear text.
- **No export throttling or blocking** – a single query can pull an entire table.
- **No immutable audit log** – investigators cannot tie the data pull to an individual identity after the fact.
Addressing these gaps requires a control surface that sits between the identity provider and the target resource. The control surface must be the only place where enforcement can happen, because the setup alone cannot guarantee that a user will not exfiltrate data.
Introducing a data‑path gateway for Devin
hoop.dev provides exactly that gateway. It proxies every connection to Devin, whether the client is a human operator, a CI pipeline, or an AI‑assisted tool. The gateway runs an agent inside the network, holds the database credentials, and presents a single, auditable endpoint to callers.
Because hoop.dev is the data path, it can enforce the following outcomes:
- **Inline masking** – hoop.dev rewrites response payloads to replace or redact PII before it leaves the gateway.
- **Just‑in‑time approval** – large export commands trigger a workflow that requires a human approver before the query proceeds.
- **Command‑level blocking** – dangerous statements such as DROP TABLE or SELECT * FROM users can be stopped automatically.
- **Session recording and replay** – every query and result set is captured, linked to the authenticated identity, and stored for audit.
These enforcement outcomes exist only because hoop.dev sits in the data path. If the gateway were removed, the database would again see raw requests without any of the protections described above.
How the pieces fit together
The overall architecture respects the three attribution categories:
- Setup – Identity providers (Okta, Azure AD, Google Workspace) issue OIDC tokens. Service accounts receive scoped IAM roles. This step decides who may initiate a connection.
- The data path – hoop.dev receives the connection, terminates the TLS session, and forwards traffic to Devin after applying policies.
- Enforcement outcomes – hoop.dev masks, blocks, approves, and records each interaction, ensuring that data exfiltration attempts are either prevented or fully documented.
By separating who can start a session from what can happen once the session is active, organizations gain a clear, enforceable boundary that is difficult for an attacker or a careless insider to bypass.
Getting started
Deploy the gateway using the Docker Compose quick‑start, then register Devin as a connection in the UI. The getting started guide walks you through the minimal steps to have a secure, audited data path in place. For deeper coverage of masking policies and approval workflows, explore the learn section of the documentation.
FAQ
Does hoop.dev replace existing database credentials?
No. The gateway stores the credentials and presents them to the database on behalf of the caller, so users never see the password.
Can I still use my existing CI pipelines?
Yes. CI jobs authenticate with OIDC tokens, then connect through the gateway exactly as they would to the database directly.
What happens to logs after a session ends?
hoop.dev records each session, making the logs available for audit and forensic review.
Explore the open‑source implementation on GitHub to see how the gateway is built and to contribute improvements: View the open‑source code on GitHub.