Classify
Every column under LGPD art. 5: personal, sensitive or not, with purpose, legal basis and retention.
PostgreSQL 18 runs inside this page (PGlite). The schema shop holds the customers and orders of a fictitious card shop with three stores; every person in it is synthetic. The session is the superuser postgres, and SET ROLE plays each job of the DataApp. Every statement that changes the database, a SET ROLE included, is kept in the localStorage and replayed in order on the next visit. Every date is Unix time, in seconds.
Every column under LGPD art. 5: personal, sensitive or not, with purpose, legal basis and retention.
One role per job, nothing for PUBLIC, and the privilege matrix of least privilege.
Each manager reads only the own store; FORCE makes the owner obey too.
A peppered key instead of the customer, generalised ages and an aggregate with k = 5.
Who changed or read what, when and why, in an append-only log without personal data.
Nine probes as seven roles, against the policy written before, and a regression on purpose.
Inventory, roles, row policies and pseudonyms for the partner data in lab.gNN_ on shrek2.
Run a query as a job without typing SET ROLE; the badge above shows who is acting.
Each cell runs one probe as one role, inside a transaction that is rolled back, and compares the outcome with gov.expected_access: denied is an error, none is zero rows, some is fewer rows than the superuser sees and all is every row. A cell that disagrees with the policy is marked as a failure, which is how a careless GRANT shows up.