Data and databases · Independent · 23 Oct 2026

GreenmaskIO/greenmask

Database anonymization and test data management

← Data and databases
Greenmask: database anonymisation. Scrambles sensitive data during database backups.

In simple English

When you build software, you need test data that looks real. Production databases contain private customer details that you cannot share with developers. This tool copies your database and scrambles names, emails, and phone numbers. It leaves the table structure intact so your app still works. You can also shrink large databases so they fit on a laptop.

What it is

Greenmask is a command-line utility (a program you run from your terminal by typing text commands) that backs up, anonymises, and restores PostgreSQL and MySQL databases. It reads your database tables, transforms sensitive columns using rules you set, and writes out standard backup files.

What it is good for

Solo builders who need to give developers or staging servers a realistic copy of production data without leaking real user secrets.

Stars1.8k
LicenceApache-2.0
Latestv0.2.26 (2026-10-23)checked 23 Oct 2026
Last code change2026-10-23
Written inGo
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Replaces real user data with safe fake data automatically.
  • Creates smaller database subsets for fast local development.
  • Saves backups directly to local folders or cloud storage.
Watch for
  • Requires comfort with the command line and database configuration files.
  • MySQL support is still in progress and less stable than PostgreSQL.
  • Incorrectly configured masking rules can leave sensitive data exposed.
Replaces

Writing custom database scrubbing scripts and manual pg_dump commands.

Works well with

PostgreSQL (a powerful open-source SQL database)

Also reviewed on Repo Radar
  • dbeaver/dbeaver52k stars

    A free desktop program that connects to more than a hundred kinds of database and lets you browse and edit them.

  • sqlfluff/sqlfluff10.0k stars

    A tool that checks SQL files for style problems and fixes most of them.

  • dimitri/pgloader6.5k stars

    Loads data into PostgreSQL from other databases and from files, keeping going when individual rows fail.

Install
git clone git@github.com:GreenmaskIO/greenmask.git
cd greenmask
docker-compose run greenmask

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Infrastructure & Security › Security & Compliance › Privacy & Compliance.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.