Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Database Tools
  3. Greenmask

Greenmask

Apache-2.0Gov0.2.21

An open-source tool for PostgreSQL and MySQL database anonymization, synthetic data generation, and logical dumping.

Visit WebsiteGitHubGitHub
1.7k stars60 forks0 contributors

What is Greenmask?

Greenmask is an open-source utility for logical database dumping, anonymization, and synthetic data generation, primarily for PostgreSQL with MySQL support in development. It solves the problem of securing sensitive data in staging, testing, and development environments by providing stateless, compatible backups that can be transformed or subsetted.

Target Audience

Database administrators, DevOps engineers, and developers who need to sanitize production data for non-production use while maintaining referential integrity and compatibility with standard tools.

Value Proposition

Developers choose Greenmask for its deterministic transformations, storage-agnostic backups, and extensibility, offering a robust, drop-in replacement for `pg_dump`/`pg_restore` with advanced data masking and subsetting capabilities.

Overview

Database anonymization and test data management

Use Cases

Best For

  • Anonymizing PII in staging or testing databases for compliance
  • Creating referentially intact subsets of production databases for local development
  • Generating synthetic test data from scratch for empty environments
  • Replacing `pg_dump`/`pg_restore` with enhanced transformation logic
  • Managing backups across S3-compatible storage providers
  • Applying conditional data masking based on specific column criteria

Not Ideal For

  • Projects relying on MySQL for production-ready data masking (support is still in beta)
  • Teams needing physical backups or WAL-based point-in-time recovery
  • Simple backup workflows without data transformation requirements

Pros & Cons

Pros

Referential Subsetting

Creates smaller development databases that maintain cyclic and polymorphic references, ensuring data integrity for testing as highlighted in the database subsetting feature.

Storage Agnostic Backups

Supports local directories and S3-compatible services like AWS S3, MinIO, GCS, and Azure, offering flexible backup management without vendor lock-in.

Deterministic Anonymization

Uses hash functions for reproducible data masking, guaranteeing consistent output for the same input, which is crucial for compliance and testing environments.

Extensible Transformation Engine

Allows custom transformations in any programming language via the CMD transformer or predefined templates, enabling domain-specific data processing.

Cons

Beta MySQL Support

MySQL functionality is labeled as work-in-progress and beta, making it unreliable for production use with MySQL databases, as admitted in the README.

Complex Configuration

Setting up advanced transformations and subsetting requires detailed YAML or JSON configurations, which can be steep and error-prone for quick adoption.

CLI-Only Interface

Lacks a graphical user interface, which may not suit teams preferring GUI-based tools for database management and anonymization tasks.

Frequently Asked Questions

Quick Stats

Stars1,688
Forks60
Contributors0
Open Issues46
Last commit10 days ago
CreatedSince 2023

Tags

#devops#obfuscation#security#pg#synthetic-data#security-tools#postgresql#golang#anonymization#compliance#mysql#testing-tools#go#data-privacy#data-masking

Built With

G
Go
D
Docker

Links & Resources

Website

Included in

Database Tools5.1k
Auto-fetched 1 day ago

Related Projects

FakerFaker

Generate massive amounts of fake data in the browser and node.js

Stars15,360
Forks1,075
Last commit1 day ago
NoisiaNoisia

Harmful workload generator for PostgreSQL

Stars700
Forks18
Last commit2 years ago
BeneratorBenerator

BENERATOR is a leading software solution to generate, obfuscate, pseudonymize and migrate data for development, testing, and training purposes with a model-driven approach.

Stars158
Forks27
Last commit4 months ago
myanonmyanon

A mysqldump anonymizer

Stars121
Forks17
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub