The Subveil CLI subsets and masks data on your machine or CI runner. Subveil Cloud receives metadata for policies and receipts, not database row values.
Data boundary
Runs in yourenvironment or CI runner.
subveil pull connects from your network to your databases. Cloud-linked runs send metadata and receipts to Subveil Cloud. Source rows pass through the machine running the CLI; use a self-hosted runner when they must stay in your network.
Local data path
Your VPC · GitHub Actions runner · laptop
Production DB
read-only snapshot
subveil pull
subset + mask in-flight
Staging / PR DB
masked copy
Source rows pass through the CLI runner.
No row data sentHTTPS hashes · counts · names
Subveil Cloud
Schema metadata and PII hints
Masking policies
Audit receipts (hashes, counts)
Accounts and billing
What Subveil Cloud stores
Control plane
Account, team and billing records
Table and column names, types and PII hints
Masking and subsetting policies
Audit receipts: run IDs, timestamps, hashes, row counts, masked column names and optional reasons
Cloud-linked runs send metadata and receipts.
What the CLI uses locally
Not sent to Cloud
Row values from your databases
Database connection strings or credentials
Your SUBVEIL_MASK_KEY
Row values pass through the CLI runner; secrets stay local.
Source protection
Protecting thesource database.
PostgreSQL pulls use a REPEATABLE READ snapshot shared by parallel readers. MySQL and MariaDB use one source session and a consistent snapshot. Classic selection can create temporary tables; use a least-privilege source role.
Source rows are selected without updating production tables; classic selection may use temporary tables.
The CLI refuses to run when source and target are the same database.
The CLI requires a suitable empty target or an explicit target-clearing or schema-recreation option.
PostgreSQL target schema DDL is transactional, and the default row load uses one transaction.
MySQL DDL implicitly commits when Subveil creates or recreates a target schema; row inserts are transactional, but schema creation is not rolled back with them.
CLI diagnostics report run details. PostgreSQL errors can quote values in console output captured by CI logs. MySQL errors are reduced to a code. Restrict access to captured output.
source sessionsql
01-- Illustrative source reads in a consistent snapshot02SELECT … FROM public.users WHERE …;03SELECT … FROM public.orders WHERE …;
Deterministic HMAC masking
Deterministic masking forconfigured columns.
Configure masking policies for non-production copies and the CLI applies them as rows are read, before the result is written to the target. Deterministic HMAC rules use SUBVEIL_MASK_KEY. With the same key and rule, the same input normally produces the same output. Unique-column collision handling can choose a different variant; review masking rules for related columns.
Keep the seed in your environment or CI secret store. Local custom SQL rules execute on the source database and should be reviewed carefully.
Verifiable evidence forsecurity and privacy audits.
A cloud-connected pull can submit an HMAC-authenticated receipt recording what ran: policy and host hashes, row counts, masked column names and an optional reason. These are verifiable run records for your own audit process.
Subveil v0.4.1 authenticates local-only receipts with your masking key. Cloud-linked receipts use the Cloud token for ingestion. The dashboard checks stored hashes for integrity, and independent HMAC verification requires the original secret. A reason supplied with --reason is stored in the receipt and sent to Cloud for cloud-linked pulls; do not include personal data. Receipts do not establish that unexamined values are free of sensitive data. See how to review a receipt alongside target checks in the DPDP masking guide.