Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Wise Engineering 5 min read Case study mediumAdept

Data Inventory

Wise's Data Governance team built an in-house Data Inventory that catalogs data assets across heterogeneous systems (MariaDB, PostgreSQL, S3, Kafka) to meet ISO 27001:2022 and security controls. The pipeline discovers data systems as databases are provisioned, registers assets under human-readable URI-style IDs whose granularity rises with sensitivity, and attributes ownership from team metadata, with a producer/consumer fallback for the remaining cases. It then extracts schemas via information_schema and system catalogs and collects sensitivity classification through a UI backed by layered nudges. Off-the-shelf catalogs like DataHub, OpenMetadata and BigID were rejected because they required looser security controls, and the team favoured shipping a solution for 80% of cases over analysis paralysis.

Assumes: data governance basicsrelational database catalogs

Related posts

  • How Meta understands data at scale

    Meta Engineering mediumAdept

    Meta's Privacy Aware Infrastructure builds data understanding by schematizing every data asset in a canonical Thrift-based format (DataSchema, covering over 100 million schemas across 100+ systems) and annotating fields with a universal privacy taxonomy of semantic types. Annotation is shifted left into developer workflows. A classification pipeline of scheduling, sampling, scanning, heuristics and ML models predicts labels, auto-assigns them above a confidence threshold, and propagates them along lineage so copies inherit equivalent classifications. A Facebook Dating religious-views walkthrough shows how schema, annotation and OneCatalog inventory let purpose-limitation controls follow sensitive data across heterogeneous systems.

  • Beyond container image signing: How we enforce software supply chain policies at Datadog

    Datadog Engineering mediumAdept

    Turnstile is Datadog's internal system for extending container image signing into full supply chain policy enforcement. It generates keyless, identity-bound in-toto attestations across an artifact's life cycle, covering commit safety, source provenance, pull request approval, build provenance, SBOM, vulnerabilities and deployment, and stores them in a DynamoDB-backed metadata store. At deploy time, a policy-core library evaluates those attestations against environment-scoped OPA/Rego policies and records the result as a signed SLSA Verification Summary Attestation. Policies can run in audit, warn or block mode, which lets them be rolled out progressively across tens of thousands of daily deployments.

  • Policy Zones: How Meta enforces purpose limitation at scale in batch processing systems

    Meta Engineering mediumAdept

    Meta's Policy Zones, part of its Privacy Aware Infrastructure, applies information flow control to enforce purpose limitation across an exabyte-scale data warehouse. Datasets and loggers carry Governable Data Annotations such as MESSAGING_DATA, and downstream data must be at least as restrictive as its sources. A SQL parser (UPM) turns queries from processors like Presto into semantic trees. A Policy Evaluation Service checks each flow and issues a cryptographically signed token that the Warehouse Permission Service validates at access time. Policy Zone Manager tooling handles label creep through reclassification, letting the system run across millions of datasets, tens of millions of daily flows and trillions of consent checks per hour.

  • How Meta enforces purpose limitation via Privacy Aware Infrastructure at scale

    Meta Engineering mediumAdept

    Meta enforces purpose limitation (data used only for allowed purposes) with Policy Zones, an information flow control system built into HHVM, Presto, Spark and other infrastructure. It replaces fragile point checks and ACL-based physical data separation with runtime checks on annotated data flows. Developers label data assets and requests or functions with annotations. Zones then propagate context through function call stacks or SQL batch jobs and flag violations in logging mode before switching to blocking enforcement. Policy Zone Manager tooling, backed by data lineage and an ML classifier, guides large rollouts through four steps: identify assets, discover downstream flows, remediate each flow (annotate the sink, block it, or reclassify it), and enforce and monitor.

  • Creating AI agent solutions for warehouse data access and security

    Meta Engineering mediumAdept

    Meta is reworking access control for its offline data warehouse around a multi-agent system. Data-user agents suggest less-restricted alternatives, enable low-risk exploration and draft permission requests. Data-owner agents follow owner-written SOPs to process requests and proactively configure access rules. The warehouse hierarchy is exposed to LLMs as a text folder structure, with context management (automatic, static, dynamic) and explicit role-based or implicit activity-inferred intention. In the partial data preview flow, an LLM judges requests using user activity, query shape and resource metadata, bounded by daily data-access budgets and a rule-based risk guardrail, with daily evals on historical requests and an owner feedback loop.

The quest for software engineering knowledge.

Look:
Layout: