dbmask

Find, mask and verify sensitive columns in copies of SQL databases

Image 1 of 1: dbmask docs home with the scan, mask and validate workflow and its main features

A CLI and Python API over one SQLAlchemy path for PostgreSQL, MySQL, SQL Server, Oracle and SQLite: it detects sensitive columns by overrides, reviewed history, patterns and an optional LLM, rewrites them with deterministic type-valid fakes, then checks the copy against the source by primary key.

Trade-offs

  • Masks are deterministic from masking.seed, and a seed map stores each pair under a salted hash, so joins survive across tables and snapshots, but the map and its salt must be kept.
  • Validation compares the first 5,000 rows per column by primary key by default; partial coverage is a warning, and --strict turns it into a failure.
  • A sensitive column that is also the primary key can't be rewritten in place, so it is reported as NOT MASKED rather than shown as masked in the preview.

Q&A2

Only if the optional LLM step is turned on; it is off by default. It works with a fully local model through Ollama, LM Studio or vLLM, llm.send_values: false limits a remote provider to column names, and the CLI warns before any values would leave the machine.

Reviews

Loading reviews

    More in Data engineering

    See all 13 →
    • PaganelData migration engine that verifies the destination down to the row
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • DuckpadVisual DuckDB pipelines that trace a number back to its source
    • Global News Intel PlatformServerless pipeline over world news events, run at zero cost
    • LoomFlowSelf-hosted visual ETL on Polars and React Flow
    • wiki-geoparquetEvery geotagged English Wikipedia article as open GeoParquet

    More in Privacy

    See all 41 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • TellyscopeAndroid TV debloater and remote that runs from a phone over ADB
    • SealEncrypted letters and secrets for after a death, opened by M of N key holders
    • FusionalySelf-hosted web analytics in one SQLite file
    • CompartmentEncrypted, fully offline memory vault for AI agents
    • SnitchPer-app network monitor and outbound firewall for the desktop

    More in Database internals

    See all 29 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • MongrelDBEmbedded Rust database with vector, sparse and text indexes