返回排行榜

GreenmaskIO/greenmask

Gogreenmask.io

Database anonymization and test data management

golangobfuscationpostgresqlsecuritysecurity-toolsanonymizationsynthetic-datagopgtesting-toolsdbafaker
Star 增长趋势
Star
1.7k
Forks
62
周增长
Issues
47
5001k1.5k
2023年12月2024年10月2025年9月2026年7月
制品库Go Modulesgo get github.com/GreenmaskIO/greenmask
README

Greenmask

greenmask.png

Greenmask is a powerful open-source utility for logical database dumping, anonymization, synthetic data generation, and restoration. Designed for PostgreSQL and MySQL (in progress), it is stateless and creates logical backups compatible with standard tools like pg_restore or mysqldump.

Discord Telegram X (formerly Twitter) Follow

Documentation License GitHub Release GitHub Downloads (all assets, all releases) Docker pulls Go Report Card

Demo

Supported Databases

Key Features

  • Database Subsetting: Create smaller, referentially intact development databases with support for cyclic and polymorphic references.
  • Storage Agnostic: Supports local directories and S3-compatible storage (AWS S3, MinIO, GCS, etc.) for flexible backup management.
  • Deterministic Transformation: Reproducible data masking using hash functions, ensuring consistent output for the same input.
  • Dynamic Parameters: Transformers can adapt based on other column values to maintain logical consistency (e.g., created_at < updated_at).
  • Transformation Condition: Apply transformations only when specific criteria are met, allowing for conditional logic at the table or transformer scope.
  • Stateless & Compatible: Operates as a logical dump proxy. Dumps are compatible with pg_restore.
  • Transformation Inheritance: Eliminate redundancy by automatically applying transformations to partitioned tables and foreign key references.
  • Database Type Safety: Ensures data integrity by using the native database driver for all encoding and decoding operations.
  • Extensible: Implement domain-specific transformations in any programming language or use predefined templates.
  • Cross-Platform: Single binary, runs anywhere.

Use Cases

  • Sensitive Data Sanitization: Anonymize, transform, and mask PII for staging, analytics, and testing environments, ensuring compliance and security.
  • Backup & Restore: A robust, drop-in replacement for pg_dump/pg_restore and mysqldump, handling schema and data with ease.
  • Local Development: Quickly spin up lightweight, referentially intact subsets of production databases for developers.
  • Synthetic Data Generation: Generate realistic test data from scratch to populate empty environments using the CMD transformer and custom transformations.

Quick Start

Try the sandbox environment with a sample database and pre-configured transformations:

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

For more details, visit the Documentation or the Playground.

Sponsors

Powered by

JetBrains logo.

相关仓库
practical-tutorials/project-based-learning

Curated list of project-based tutorials

PythonPyPIMIT Licensetutorialproject
274.6k35.4k
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

GoGo ModulesMIT Licensegolanggolang-library
awesome-go.com
178.8k13.4k
ollama/ollama

Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

GoGo ModulesMIT Licensellamallm
ollama.com
176.6k17.1k
golang/go

The Go programming language

GoGo ModulesBSD 3-Clause "New" or "Revised" Licenseprogramming-languagelanguage
go.dev
135.3k19.3k
caddyserver/caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

GoGo ModulesApache License 2.0goweb-server
caddyserver.com
74.2k4.8k
unionlabs/union

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

Rustcrates.ioApache License 2.0blockchaincosmos
union.build
73.9k3.9k
moby/moby

The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

GoGo ModulesApache License 2.0dockercontainers
mobyproject.org
71.9k19k
nektos/act

Run your GitHub Actions locally 🚀

GoGo ModulesMIT Licensegithub-actionsgolang
nektosact.com
71.2k2k
traefik/traefik

The Cloud Native Application Proxy

GoGo ModulesMIT Licensemicroservicedocker
traefik.io
64.1k6.1k
santifer/career-ops

Open-source AI job search: scan job portals, evaluate listings with a structured A-F rubric into a 1.0-5.0 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

JavaScriptnpmMIT Licenseai-agentanthropic
career-ops.org
60.9k12k
pocketbase/pocketbase

Open Source realtime backend in 1 file

GoGo ModulesMIT Licenseauthenticationbackend
pocketbase.io
60.1k3.6k
rclone/rclone

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

GoGo ModulesMIT Licensegolanggo
rclone.org
58.6k5.2k