Skip to content
Preparing for DPDP in 2027? Explore our developer guide

Security · data boundary

Mask data where you run the CLI.

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 your environment 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 the source 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
-- Illustrative source reads in a consistent snapshotSELECT … FROM public.users WHERE …;SELECT … FROM public.orders WHERE …;

Deterministic HMAC masking

Deterministic masking for configured 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.

same input, same outputtext
users.email       [email protected] → [email protected]billing.contact   [email protected] → [email protected]analytics.user    [email protected] → [email protected]

Audit receipts

Verifiable evidence for security 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.

audit receiptjson
{  "run_id": "9b1e6f0a-3c52-4d7e-8a41-2f7c5d9e1b30",  "started_at": "2026-10-21T10:00:00Z",  "finished_at": "2026-10-21T10:01:15Z",  "status": "success",  "source_host_hash": "sha256:4be1…9c07",  "target_host_hash": "sha256:a3f2…71d8",  "policy_hash": "sha256:9f2c…b71e",  "total_rows_copied": 2360000,  "tables_summary": [    { "table": "public.users", "rows_copied": 50000, "masked_columns": ["email", "phone"] }  ]}

Security & compliance

Questions from your security team?

Read how the pipeline works, or report a vulnerability to [email protected].