# Governing Sensitive Data Exports in Snowflake: Data Movement Policies and a Custom Guardrail Layer

DevFeed: [Governing Sensitive Data Exports in Snowflake: Data Movement Policies and a Custom Guardrail Layer](<https://devfeed.tech/articles/governing-sensitive-data-exports-in-snowflake-data-movement-policies-and-a-custom-guardrail-layer-88759.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/governing-sensitive-data-exports-in-snowflake-data-movement-policies-and-a-custom-guardrail-layer-2582dea6fc62?source=rss----34b6daafc07---4>)

Author: Rachel Blum

Published: 2026-10-16T19:01:02Z

Content type: article

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [sensitive data](<https://devfeed.tech/topics/sensitive-data.md>), [data loss prevention](<https://devfeed.tech/topics/data-loss-prevention.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [ai-governance](<https://devfeed.tech/topics/ai-governance.md>), [data-architecture](<https://devfeed.tech/topics/data-architecture.md>), [audit](<https://devfeed.tech/topics/audit.md>), [business logic](<https://devfeed.tech/topics/business-logic.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [alerts](<https://devfeed.tech/tags/alerts.md>), [audit](<https://devfeed.tech/tags/audit.md>), [audit-trail](<https://devfeed.tech/tags/audit-trail.md>), [block](<https://devfeed.tech/tags/block.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [cells](<https://devfeed.tech/tags/cells.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [custom](<https://devfeed.tech/tags/custom.md>), [data](<https://devfeed.tech/tags/data.md>), [data-governance](<https://devfeed.tech/tags/data-governance.md>), [data-movement](<https://devfeed.tech/tags/data-movement.md>), [exports](<https://devfeed.tech/tags/exports.md>), [guardrail](<https://devfeed.tech/tags/guardrail.md>), [health-data](<https://devfeed.tech/tags/health-data.md>), [layer](<https://devfeed.tech/tags/layer.md>), [policies](<https://devfeed.tech/tags/policies.md>), [sensitive-data](<https://devfeed.tech/tags/sensitive-data.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>)

## AI overview

The prototype combines Snowflake Data Movement Policies (DMP) with a configuration-driven SQL export service to govern sensitive health-data exports. DMP rules attached through propagating tags can block or cap movement by channel, alert on activity, allow role-based exceptions, and restrict agents accessing protected data. DMP evaluates row budgets, so it cannot detect risky combinations of fields or suppress groups based on result size. The custom SAFE_EXPORT procedure adds those checks: it validates requested dimensions against a whitelist, blocks configured combinations, aggregates data, suppresses cells below each partner's threshold, and permits staged delivery only for approved partners. An aggregation policy also constrains ad-hoc queries. Both layers feed a unified audit view, but native violation records may take hours to appear, UI download-button enforcement creates no violation record, and rare enforcement events may go unrecorded. The prototype uses synthetic data; DMP requires Snowflake Enterprise Edition or higher. The article also cautions that row caps apply per statement and agents use the user's default role.

## Source excerpt

How to block risky exports, suppress small cells, and keep AI agents away from regulated data, using native Snowflake controls plus a small configuration-driven extension. Export Governance Console -- Policy InventoryIntroduction Organizations that share health-related data with external partners face a familiar tension. The data is valuable precisely because it is granular, yet that same granularity creates re-identification risk once the data leaves the platform. When the data is distributed across dozens of downstream partners, and those partners increasingly use AI agents to explore it, governance can no longer depend on manual review or on trusting each consumer to behave correctly. This article describes a prototype built for a common scenario: a data provider that shares health-related data with a network of external partners. The provider's governance requirements were typical of the industry: Block exports that combine fields in ways that could re-identify individuals. Suppress small counts, with thresholds that may differ by partner (for example, 5, 10, or 20). Apply consistent governance across every partner, from a central governance team. Maintain a complete audit trail of what was blocked, alerted or approved. Allow specific, approved roles to make exceptions. Prevent AI agents from reading sensitive data. The solution combines two layers. The first is Snowflake Data Movement Policies (DMP), a native feature that limits, alerts on or blocks data movement based on rules attached to data through tags. The second is a small custom export service, written in Snowflake SQL, that handles the requirements DMP does not address on its own: field-combination rules and dynamic small-cell suppression. Both layers write to a single audit trail, and a Cortex Agent sits on top of that audit trail to answer governance questions in natural language. All data in the prototype is synthetic. Note: Data Movement Policies require Snowflake Enterprise Edition or higher. Consu