Request a demo

Glossary · Governance and security

What is data governance?

Data governance is the set of roles, policies and controls that decide who owns data, who may use it and how, and what quality, security and retention rules it must meet. On BigQuery it is enforced through IAM, policy tags, masking, row-level security, catalogs, audit logs and expiration settings.

Also called: data governance framework, BigQuery data governance, data stewardship, data policy

What data governance covers

  • Ownership and stewardship: every dataset has an accountable owner and someone who answers questions about meaning and quality.
  • Access: who can see which projects, datasets, tables, columns and rows, granted to groups rather than individuals.
  • Privacy and classification: which data is personal or sensitive (PII) and what rules apply to it.
  • Quality: agreed checks and expectations, often written as data contracts.
  • Discoverability and lineage: a catalog with business context, and lineage showing where data comes from and where it goes.
  • Lifecycle: retention and deletion rules, from raw logs to backups.
  • Audit: evidence of who accessed and changed what.

Governance controls in BigQuery

  • IAM at organization, folder, project, dataset, table and view level, plus authorized views, datasets and routines that expose results without exposing source tables.
  • Column-level access control with policy tags from a taxonomy: only principals with the Fine-Grained Reader role on a tag can read tagged columns.
  • Dynamic data masking on the same tags or directly on columns, so other readers see nulls, hashes or partial values.
  • Row-level security with row access policies that filter rows per user or group.
  • Encryption: Google-managed keys by default, customer-managed keys (CMEK) on Enterprise, Enterprise Plus and on-demand, and AEAD SQL functions for column-level encryption.
  • Perimeters: VPC Service Controls to stop data leaving trusted networks.
  • Discovery: Sensitive Data Protection discovery profiles BigQuery tables and flags columns with sensitive infoTypes.
  • Catalog and quality: Knowledge Catalog (formerly Dataplex Universal Catalog) for business glossaries, custom metadata, data quality scans, profiling and lineage.
  • Lifecycle: dataset default table expiration, partition expiration, and a configurable time travel window of two to seven days.
  • Audit: Cloud Audit Logs record admin activity and data access.

Example: find tables nobody documented

Governance starts with knowing what exists. This lists tables in a project with no description:

SELECT
  t.table_schema AS dataset_id,
  t.table_name,
  t.creation_time
FROM `region-us`.INFORMATION_SCHEMA.TABLES AS t
LEFT JOIN `region-us`.INFORMATION_SCHEMA.TABLE_OPTIONS AS o
  ON o.table_schema = t.table_schema
  AND o.table_name = t.table_name
  AND o.option_name = 'description'
WHERE t.table_type = 'BASE TABLE'
  AND o.option_value IS NULL
ORDER BY dataset_id, t.table_name;

Common pitfalls

  • Policies on paper. A rule that isn't enforced by IAM, tags or pipeline checks is a suggestion.
  • Granting to people instead of groups. Access then leaves with the person's role change, not with a review.
  • Governing the warehouse only. Copies in spreadsheets, exports and BI extracts escape every BigQuery control.
  • No owner for cost. Governance should cover who pays for data, not only who reads it; unowned tables are where unused tables accumulate.

FAQ

What is the difference between data governance and data management?

Data management is the work of collecting, storing, moving and serving data. Governance sets the rules for that work: ownership, access, quality standards, privacy and retention, and checks that the rules are followed.

Which BigQuery edition do I need for fine-grained access control?

Column-level access control, row-level security and dynamic data masking are available with Enterprise and Enterprise Plus reservations and with on-demand pricing. Reservations on the Standard edition don't include them.

Does governance slow teams down?

Manual approvals do. Governance that is automated (policies applied by tags, access granted to groups, checks running in pipelines) lets teams move faster, because the safe path is also the easy one.

Read next

Browse the full glossary

Observability for every BigQuery table, in about 15 minutes

Masthead detects freshness, volume and schema anomalies, monitors pipeline errors and maps column-level lineage across all your projects, from logs and metadata only.