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

Local-first CLI · Zero rows leave your network

Production-like data.
Without the sensitive details.

Replace raw production dumps and brittle masking scripts. Pull smaller, foreign-key-consistent copies from PostgreSQL, MySQL, and MariaDB with versioned YAML masking policies—executed entirely on your own runner.

brew install subveilhq/tap/subveil
  • Single local CLI binary
  • No database extensions required
  • Foreign-key consistent + auditable

Relational subsetting

Keep the relationships. Choose the rows.

Plan a smaller copy using the foreign keys in your schema.

BEFORE · SYNTHETIC DATA
customers
customers
idnameemail
101Jamie Example[email protected]
102Riley Example[email protected]
orders
orders
idcustomer_id
501101
502102
AFTER · MASKED COPY (FAKE VALUES, SAME SHAPE)
customersMasked
customers
idnameemail
101Morgan Ellis[email protected]
102Taylor Brooks[email protected]
orders
orders
idcustomer_id
501101
502102

Local-first CLI

Review before you pull.

Review plansubveil.yaml
cli
subveil plan --config subveil.yaml
Plan preview
2 tables
Masking rules
2 configured
Circular dependencies
none detected
Sensitive data
2 findings (rule configured)
Sampling
up to 50 rows / col

Illustrative output for a synthetic schema.

Read the quick start
Local-firstDatabase copies run in your environment
subveil pull --config subveil.yaml
SignedCloud-linked pull receipts
Pull receipt

Built for development

Production context for better testing.

Bring a carefully selected dataset into development, staging and CI.

Subsetting

Keep the data that matters.

Choose a subset and follow supported foreign-key relationships to bring related records into the target.

Explore subsetting
SourceSource databaseCustomers · orders
FK graphSubveilFollow relationships
FKs intactTarget databaseSmaller copy

Masking rules

Replace configured fields.

Apply masking rules as data is copied. Review sensitive fields: masking is not the same as irreversible anonymization.

Explore masking
Illustrative masked recordstransformer: email
Illustrative masked records
CustomerOriginal emailMasked email
Alex Rivera[email protected][email protected]
Riley Chen[email protected][email protected]
Jamie Patel[email protected][email protected]

Supported engines

Built for your database.

Use the same local-first workflow with PostgreSQL, MySQL and MariaDB across development and CI.

See how it works
subveil pull --config subveil.yaml

Workflow

From rules to review.

Configure a policy, inspect the result and keep evidence for your workflow.

01

Explicit rules

Review and adjust the generated configuration.

subveil.yamlexample
tables:  public.customers:    columns:      name:        transformer: name      email:        transformer: email        domain: example.test
03

Verification and receipts

Check integrity and sampled patterns. Cloud-linked pulls can record tamper-evident receipts.

Verification checks3 stages
  • Integrity checksForeign keys
  • Sampled pattern checksPII rules
  • Pull receiptsTamper-evident
Illustrative verification stages

Synthetic example

See configured masking in action.

Explore example records and their illustrative masked values.

subveil.yamlconfigured
version: 1engine: postgressource:  dsn_env: SUBVEIL_SOURCE_URLtarget:  dsn_env: SUBVEIL_TARGET_URLmasking:  seed_env: SUBVEIL_MASK_KEYtables:  public.customers:    columns:      name: { transformer: name }      email:        transformer: email        domain: example.test
Before · synthetic sourceSource
customers
customers
idnameemail
101Jamie Example[email protected]
102Riley Example[email protected]
orders
orders
idcustomer_id
501101
502102
After · masked copyMasked
customers
customers
idnameemail
101Morgan Ellis[email protected]
102Taylor Brooks[email protected]
orders
orders
idcustomer_id
501101
502102

FAQ

Frequently asked questions.

Run subveil init against the source and select the engine when prompted. Review the generated subveil.yaml, then run subveil pull against an empty target. Subveil creates the target schema from source DDL automatically. Configured columns are masked in flight; review all columns for sensitive data.

Set engine: mysql in subveil.yaml and pick your root tables with scale or where. Subveil walks the foreign-key graph, loads parents before children and pulls only the rows each slice references, including self-references and cycles. Run subveil plan first to preview the load order.

Your runner copies the rows. Linked workflows can send schema reports, policies and receipts. Keep personal values out of policy literals and receipt reasons.

Subsetting follows declared foreign keys. Keep relationship keys out of masking rules unless you have tested the configuration. Unique-column collision handling can produce a different variant for the same input, so verify target constraints and test application joins that use masked columns.

Subveil detects cycles during subveil plan and selects a cycle-breaking strategy; some schemas require additional target privileges or constraint changes.

Yes. Run the CLI in GitHub Actions to refresh staging or spin up an expiring database per pull request. The Branches page generates the workflow file for you.

Cloud-linked pulls can record HMAC-authenticated receipts with policy hashes, row counts, and masked column names. In Subveil v0.4.1, offline receipts stay local.

Local runs are free. Row-mode pulls support up to 100,000 rows per run. The Cloud Control Plane is the team governance layer: Community is free with one cloud project, Team (free during early access) adds central policy sync, drift alerts, PR branch tracking and a 90-day receipt history, and Enterprise (priced when paid plans open) keeps receipts for the life of the project and adds export. Paid pricing will be announced before it applies. See pricing for details.

More in the docs, on the security page or on pricing.

Free local CLI · Team plan free during early access

Prepare masked data for staging.

Subset and mask configured columns in PostgreSQL, MySQL, or MariaDB from within your network.