Skip to content

The platform core (Quality Data)

Module: quality-data. Every installation has it; every other module needs it.

The core is the base of the Government Data platform. Its package is called Quality Data, after the data quality application it carries, which owns the business objects of data quality: sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and their mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and their history, schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and the remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up.. Around them it holds what the whole platform shares:

  • sign-in for every module (see Identity);
  • permissions: one set of policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. for the whole platform, which every module asks before it acts;
  • audit: who did what, when and on what, including every view of personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.;
  • settings shared by every module, such as the domain, mail and the time zone;
  • machines: which servers belong to the installation, and their certificates (see Mutual TLS).

The core writes every SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. statement a quality job runs. When a cut is due, it compiles the rules on the catalog’s main line into statements for Trino, signs the bundle and records it. It never runs a job itself: the orchestrator schedules jobs, and its job runners send the signed statements to Trino.

  • The server is written in Rust. It serves the application’s HTTP APIApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too. and the internal APIApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too. that other modules and machines call.
  • The web app is a single-page application written in SolidJS and built with Vite, served as static files by nginx.
  • A node agent, from the same image, keeps the server’s machine certificate renewed.
With How
People HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. through Traefik, with a session after signing in
Other modules, machines HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. on Traefik’s internal entry point, each side with a certificate of the installation
PostgreSQL SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. over TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate., the server’s certificate checked
Dolt Dolt’s MySQL-compatible protocol over TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate., with a client certificate
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. Through the lake module’s admin service, to create the installation’s warehouse
  • PostgreSQL: accounts, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., settings, the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., the job index and every business object but the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version..
  • Dolt: the rules and the mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., with their history.
  • Files beside the module: the installation’s certificate authority and the secrets the containers read, never in the database or in an environment variable.

All three are backed up, and the backup checked, before every update.

Government Data · Guide v0.8.1