When a contractor leaves the company, the service account they used for nightly ETL jobs often stays active, instantly expanding the blast radius of any future queries. The next day a data engineer runs a Snowflake query through that same account, unaware that the credentials are still tied to the former contractor’s permissions. The result is a query that can read every customer table, export raw data, and write to a staging bucket, all under the guise of a legitimate pipeline.
Agent impersonation occurs when a non‑human identity (a CI runner, a service account, or an automation bot) presents the credentials of another identity without explicit approval. The impersonating agent inherits the source identity’s privileges, and the target system sees only the original user’s token. This indirection makes it difficult to trace who initiated a request, and it inflates the potential impact of any mistake.
Why impersonation expands blast radius
The term blast radius describes the amount of damage a single compromised or misused credential can cause. In a Snowflake environment, a single privileged role can read, copy, and delete data across many schemas. When an agent is allowed to impersonate that role, the blast radius grows in two ways. First, the agent can act on behalf of multiple users, effectively multiplying the number of privileged operations it can perform. Second, because the impersonation happens behind the scenes, the organization loses visibility into which automated process actually executed the operation.
Typical deployments place the service account’s secret directly on the host that runs the ETL job. The agent connects straight to Snowflake using that secret, bypassing any intermediate control point. The setup usually includes an OIDC‑based identity provider that authenticates the host, but the provider only decides whether the host may start a connection. Once the connection is established, Snowflake sees a single user token and has no knowledge of the agent that originated the request.
This model satisfies the basic requirement of authentication, but it does not provide enforcement. There is no place to examine each SQL statement, no way to mask sensitive columns in query results, and no audit record that ties the activity to the originating automation. Consequently, if the impersonating agent is compromised or misconfigured, the blast radius can span the entire data warehouse.
Placing enforcement in the data path
To limit blast radius, the enforcement point must sit where the traffic actually flows. A Layer 7 gateway that proxies every Snowflake connection provides that control surface. By routing all agent traffic through a single proxy, the organization can apply consistent policies on every request, regardless of which service account originated it.
