| id | name | |
|---|---|---|
| 101 | Jamie Example | [email protected] |
| 102 | Riley Example | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
| id | name | |
|---|---|---|
| 101 | Morgan Ellis | [email protected] |
| 102 | Taylor Brooks | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
Local-first CLI · Zero rows leave your network
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/subveilRelational subsetting
Plan a smaller copy using the foreign keys in your schema.
| id | name | |
|---|---|---|
| 101 | Jamie Example | [email protected] |
| 102 | Riley Example | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
| id | name | |
|---|---|---|
| 101 | Morgan Ellis | [email protected] |
| 102 | Taylor Brooks | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
Local-first CLI
subveil plan --config subveil.yamlIllustrative output for a synthetic schema.
subveil pull --config subveil.yamlBuilt for development
Bring a carefully selected dataset into development, staging and CI.
Subsetting
Choose a subset and follow supported foreign-key relationships to bring related records into the target.
Masking rules
Apply masking rules as data is copied. Review sensitive fields: masking is not the same as irreversible anonymization.
| Customer | Original email | Masked email |
|---|---|---|
| Alex Rivera | [email protected] | [email protected] |
| Riley Chen | [email protected] | [email protected] |
| Jamie Patel | [email protected] | [email protected] |
Supported engines
Use the same local-first workflow with PostgreSQL, MySQL and MariaDB across development and CI.
subveil pull --config subveil.yamlWorkflow
Configure a policy, inspect the result and keep evidence for your workflow.
Review and adjust the generated configuration.
tables: public.customers: columns: name: transformer: name email: transformer: email domain: example.testConfigured transformations replace selected fields.
| Customer | |
|---|---|
| Alex Rivera | [email protected] |
| Riley Chen | [email protected] |
| Morgan Ellis | [email protected] |
| Taylor Brooks | [email protected] |
Check integrity and sampled patterns. Cloud-linked pulls can record tamper-evident receipts.
Synthetic example
Explore example records and their illustrative masked values.
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| id | name | |
|---|---|---|
| 101 | Jamie Example | [email protected] |
| 102 | Riley Example | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
| id | name | |
|---|---|---|
| 101 | Morgan Ellis | [email protected] |
| 102 | Taylor Brooks | [email protected] |
| id | customer_id |
|---|---|
| 501 | 101 |
| 502 | 102 |
FAQ
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
Subset and mask configured columns in PostgreSQL, MySQL, or MariaDB from within your network.