Nine Quirks That Quietly Undo Your DataSecOps Rules

Nine Quirks That Quietly Undo Your DataSecOps Rules

Protection rules fail in two ways: loudly, with an error message, or quietly, through documented behaviour nobody read. The quiet kind is the dangerous kind, because the dashboard stays green while the guarantee evaporates. Auditors eventually find the gap; attackers find it first. This listicle collects nine such behaviours from across the warehouse world — every one of them documented platform behaviour, not rumour — with the mechanism, the evidence trail, and the mitigation for each. It is the checklist we wish someone had handed over before the first DataSecOps rollout, because the discipline (Satori Cyber’s 2021 coinage for an agile, security-embedded approach to data and its ever-changing users) only holds if the underlying engine behaves the way your policy assumes. Every item below has burned at least one team we know of; none of them announces itself.

Nine DataSecOps quirks, counted

  1. Row-level controls switch off the query planner’s fast path in BigQuery. Partition pruning is what keeps a scan of ten billion rows from costing ten billion rows of work; with row access policies in force, the engine must apply the filter at a stage where pruning no longer helps. Evidence: watch bytes processed for the same query before and after enabling RLS. Mitigation: budget for it, pre-aggregate hot paths, and keep protected tables narrower.
  2. WRITE_TRUNCATE resets policy tags in BigQuery. The truncate-and-load pattern beloved of scheduled pipelines overwrites the table and drops the tags that carried protection. A nightly job can therefore run an untagged, unprotected table for hours until the next tag sync. Evidence: query INFORMATION_SCHEMA tag listings after each pipeline run. Mitigation: restore tags inside the pipeline itself, and alert on any table whose tags vanish.
  3. Snowflake row access policies guard reads, not writes. A principal excluded by the row policy cannot SELECT the hidden rows, yet INSERT still succeeds — so invisible rows can be manufactured by actors who cannot see them. Data written this way is real, stored, and quietly wrong. Mitigation: pair row policies with write-side grants and treat insert paths as governed surface.
  4. PostgreSQL constraint checks step outside row-level security. Referential integrity runs with privileges that RLS does not constrain, and a failed foreign key insertion leaks the existence of a row the user cannot read. Security literature calls it a covert channel; in practice it is a low-bandwidth oracle, not a bulk leak. Mitigation: model it in threat assessments; reserve RLS hardening for high-sensitivity schemas where the oracle matters.
  5. Copies and rebuilds shed their tags. A cloned table, or one recreated through CREATE OR REPLACE, arrives untagged even though its source was classified and policy-bound. Protection attaches to objects; copying an object copies the data but not the policy, and the freshly minted unguarded copy usually lands in an environment with looser oversight than production. Mitigation: automated tag-coverage scans that treat any untagged column in a known-sensitive schema as an incident.
  6. Lake Formation filters the read side only. AWS’s governance service is strong on what readers may see — column and row filtering for queries — and deliberately lighter on write governance. An estate relying on it for symmetric control has an asymmetry waiting to be found. Mitigation: enforce write paths with IAM conditions and explicit grants, reviewed separately.
  7. Databricks’ ABAC tagging is partly Beta. Unity Catalog’s attribute-based policies are the modern way to key rules off classification, but surface areas still marked Beta move faster than change-control processes do. A policy that works at design time can shift semantics under you at the next runtime upgrade. Mitigation: pin which specific ABAC features your production policy depends on, and re-verify after each platform upgrade.
  8. Query duration leaks in BigQuery. Even with row filtering in force, response timing varies with the data matched — timing side channels by request shape. Documented for BigQuery, plausible wherever filtering happens post-planning. Mitigation: for genuinely hostile audiences, serve aggregates from pre-computed tables instead of filtered raw rows.
  9. Audit history lags and skips. Snowflake’s ACCESS_HISTORY holds 365 days of reads, arrives with as much as three hours of latency, and omits failed queries; pgAudit on PostgreSQL cannot reliably record superuser actions. Your forensic record, in other words, is a reconstruction with known holes. Mitigation: pair warehouse history with live telemetry for fresh incidents, and cap superuser membership aggressively.

The pattern behind the nine

Read the list again and one design truth emerges: every quirk lives at a boundary — read versus write, copy versus original, plan versus execute, history versus present. None of them is a bug; all of them are documented semantics that a policy written on a whiteboard ignores. Analytically, that reframes the mitigation problem: the goal is not to patch engines but to test the assumptions your rules make. Three tests catch most of the nine, and all three belong in continuous integration. There is also a budgeting truth: quirks one, three and four are permanent properties of the platforms, not regressions someone will fix next quarter, so the cost of living with them belongs in the architecture decision, not the backlog.

  • Tag-survival test: clone a protected table, rebuild it, verify tags and policies carried over — fail the build if not.
  • Write-path test: as a restricted principal, attempt an insert into a row-filtered table; assert the behaviour your policy promises.
  • Latency test: compare bytes scanned and duration for representative queries with controls on versus off; the delta is the price of the guarantee, and knowing it up front prevents the mid-quarter surprise when someone first enables row policies in production.

Evidence over assurance: the DataSecOps habit

The analytical habit that separates mature programmes from hopeful ones is demanding evidence at each step rather than assurance. A rule that “protects the customers table” is a sentence; a passing tag-survival test, a logged write-path probe and a latency budget are facts. Teams wanting to wire such checks into delivery pipelines will find the broader method in our complete guide to DevSecOps for secure software delivery; the philosophy of catching issues at the earliest gate is the subject of pipeline security and early safety checks; and teams planning role-by-role adoption should consult this DevSecOps roadmap for developers and security teams. The full inventory of documented limits per platform — including several beyond these nine — is maintained in the Ops Atlas DataSecOps notes, which we treat as the canonical reference for the discipline’s scope.