A second person for a pipeline that reads hidden data
DataAstra
Here is a leak most data platforms do not see.
Leo is a data engineer. A custody positions table holds an account number that is masked for every person, Leo included. The pipelines of his domain are granted to read it, because reconciliation needs the real value. So Leo writes a pipeline over the table and publishes it. The deployed pipeline runs with the domain's rights and computes on the real values. A filter on the account number, a count of the rows that match it, a gate that passes or fails on it: each one hands Leo an answer about a value he may not see, and a pipeline can write what it computed into a table of his own. Nobody unmasked anything. The mask held at every read Leo made, and the information left anyway.
What DataAstra does
On DataAstra, when a pipeline would read data its author may not see, publishing it waits for a second person. Three cases hold a publish:
- A masked column. The pipeline reads a column masked for its author: in a step, a filter, a count, a join key, a gate or a whole-table read.
- Filtered rows. The author reads the table, but a row policy filters what they see, and the pipeline would read every row.
- A closed table. The pipeline reads a table its author cannot open at all.
The publish answers that it is held, with a proposal. Nothing is deployed and nothing runs. The author is served no run, no gate result and no count from the held pipeline.
Who decides, and what they see
The proposal lands in the inbox of a person who may decide. That person reads what the author may not: which table, which column, which mask or row policy, and how the pipeline uses it. If they approve, the author's next publish deploys and the proposal reads applied. If they reject it, the next publish is held again on a new proposal.
Three rules make this hold up:
- Nobody approves their own. The author cannot decide their own proposal.
- An approval is for what was read. Approving one use does not release a publish that uses the column another way.
- The author learns nothing new. The answer the author gets names no hidden column, table or policy, in the publish answer, in their view of the proposal or in a notice.
A pipeline that reads the same table without the hidden column publishes alone. Deploying or rolling back a version that reads hidden data goes through the same decision.
Through a view, too
A view is the obvious way round. Leo cannot read the base table, but a view over it is registered in his domain. If the platform only looked at the name in the pipeline's source line, the view would wave the pipeline through.
DataAstra decides a pipeline over a view on the view's base tables. A pipeline over a view that selects the masked column waits, as over the table itself. So does a view of a view, a view over rows filtered for its author and a view with a base the author cannot read. The person who decides reads the base, the view it is reached through, and the column or the policy. The author reads none of them. A view over a table that hides nothing from its author deploys alone, and its run succeeds.
Quality rules follow the same line
A quality rule can leak too. A threshold over a masked column, with pass or fail read back, tells its author something about the distribution of values they cannot see. So a rule over a column masked for its author comes into force only on a second person's decision, and that person is told which masked column it measures. The same holds when the rule arrives in a .dq file published from a repository: the rules the author may make go into force, and a rule over a masked column waits.
Proven on a freshly born organisation
We check this on Aldgate, a sample asset manager we built to prove the platform, born fresh from its repository. Its seed publishes its pipelines the way a person would, through the same publish. Where a seed pipeline reads data hidden from the person who publishes it, it is held, and approved by somebody other than its publisher, before the organisation comes up with every pipeline deployed. The rule applies to our own sample as it does to anyone else.
Why it matters
Masking at read stops a person from reading a value. It does not stop a pipeline, which runs with rights of its own, from reading it on that person's behalf. The second person closes the gap where it opens: at the moment a person asks the platform to run code with more rights than they hold.
It is the same principle as the rest of the platform. Every change that matters has a person behind it, and that person is not the one who asked. See the approvals inbox, or watch the demo script.