Apache License 2.0

项目介绍

GreenmaskIO/greenmask 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 Apache License 2.0 许可证,目前获得 1.8k 个 Star、83 次 Fork。

仓库全名
GreenmaskIO/greenmask
开源许可证
Apache License 2.0
Star 数
1.8k
Fork 数
83
未关闭 Issue
48

README 摘要

Greenmask 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 pgdump or mysqldump. Supported Databases PostgreSQL: Fully supported (Production Ready). MySQL: Work In Progress (Beta). Key Features Database…

完整内容见 GitHub 原始 README 或本页 。

常见问题

greenmask 用什么语言开发?

主要使用 Go 编写,采用 Apache License 2.0 许可证,目前有 1.8k 个 Star。

greenmask 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 greenmask 的源码?

可以直接克隆仓库:git clone https://github.com/GreenmaskIO/greenmask.git,默认分支为 main;安装与运行步骤见仓库 README。

greenmask 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 48 个未关闭 Issue;Star 数为 1.8k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Database anonymization and test data management

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Dockerfile
Go
JavaScript
Makefile
Shell

Release

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_dump or mysqldump.

Discord Telegram X (formerly Twitter) Follow

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

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 [email protected]:GreenmaskIO/greenmask.git && cd greenmask
docker-compose run greenmask

For more details, visit the Documentation or the Playground.

Sponsors

Powered by

JetBrains logo.

评论

暂无评论