safeslice

Verification

What the privacy scan checks, what a clean result means, and — importantly — what it does not mean.

Masking is what Safeslice does. Verification is how it checks its own work.

safeslice verify --target "$DATABASE_URL"

It runs automatically at the end of every wizard run, and is available separately so you can scan a database somebody else produced.

What it looks for

CheckHow
Email addressesPattern match, excluding the example.invalid domain Safeslice generates
Phone numbersPattern match, excluding the reserved 555 range
IP addressesPattern match, excluding the TEST-NET-3 documentation range
Payment cardsAny long digit run, confirmed by the Luhn checksum

Luhn matters: 4111111111111111 is a card number and 4111111111111112 is not, and a scanner that flags both produces noise nobody reads.

Reading the output

Findings are reported per column with a redacted sample — the leak report must not become a second leak:

TABLE     COLUMN   LOOKS LIKE   ROWS   SAMPLE
users     email    email        142    j.o***@nor***.example

It exits non-zero when it finds anything, so it gates a CI job as-is, and its output is evidence a compliance reviewer can read.

What a clean scan means

A clean scan means no known pattern of personal data was detected in the sampled rows. It is not proof that none exists.

That sentence appears in every artifact Safeslice writes, and it is not boilerplate.

The scan samples rows; it does not read every one. It recognises patterns; a name is not a pattern. It cannot tell that notes.body contains “call John on his mobile” — which is exactly why unclassified free text is surfaced for a decision rather than scanned for afterwards.

Verification is a safety net under the masking rules, not a substitute for them. Anyone claiming a database provably contains no personal data is claiming something no scanner can establish, and Safeslice will not print that claim on your behalf.

Tuning

False positives happen — a product_sku that looks Luhn-valid, a support macro containing a sample address. Exclude them explicitly:

safeslice verify --target "$DATABASE_URL" --ignore products.sku --ignore macros.body

Raise the sample size when you want more confidence and can afford the time:

safeslice verify --target "$DATABASE_URL" --sample 10000