Skip to content

Commit

Permalink
Doc: Added GA support to docs and upgraded mkdocs version
Browse files Browse the repository at this point in the history
* Added cookie consent
* Upgraded mkdocs material to 9.5.40
* Added GA
* Added feedback question
* Added Google forms feedback form
* fixed docker pull command from ghcr.io in doc
* Moved documentation to docs.greenmask.io
* Revised index page - now it redirects to about.md
* Fixed broken links
  • Loading branch information
wwoytenko committed Oct 13, 2024
1 parent f60df61 commit 765b405
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 90 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ backward-compatible with existing PostgreSQL utilities, fast and reliable.

## Getting started

Greenmask has a [Playground](https://greenmask.io/latest/playground/) - it is a sandbox environment in Docker with
Greenmask has a [Playground](https://docs.greenmask.io/latest/playground/) - it is a sandbox environment in Docker with
sample databases included to help you try Greenmask without any additional actions

1. Clone the `greenmask` repository and navigate to its directory by running the following commands:
Expand All @@ -40,20 +40,20 @@ sample databases included to help you try Greenmask without any additional actio

## Features

* **[Deterministic transformers](https://greenmask.io/latest/built_in_transformers/transformation_engines/#hash-engine)**
* **[Deterministic transformers](https://docs.greenmask.io/latest/built_in_transformers/transformation_engines/#hash-engine)**
— deterministic approach to data transformation based on the hash
functions. This ensures that the same input data will always produce the same output data. Almost each transformer
supports either `random` or `hash` engine making it universal for any use case.
* **[Dynamic parameters](https://greenmask.io/latest/built_in_transformers/dynamic_parameters/)** — almost each
* **[Dynamic parameters](https://docs.greenmask.io/latest/built_in_transformers/dynamic_parameters/)** — almost each
transformer supports dynamic parameters, allowing to parametrize the
transformer dynamically from the table column value. This is helpful for resolving the functional dependencies
between columns and satisfying the constraints.
* **[Transformation validation and easy maintainable](https://greenmask.io/latest/commands/validate/)** - During
* **[Transformation validation and easy maintainable](https://docs.greenmask.io/latest/commands/validate/)** - During
configuration process, Greenmask provides validation
warnings, data transformation diff and schema diff features, allowing you to monitor and maintain transformations
effectively
throughout the software lifecycle. Schema diff helps to avoid data leakage when schema changed.
* **[Partitioned tables transformation inheritance](https://greenmask.io/latest/configuration/?h=partition#dump-section)**
* **[Partitioned tables transformation inheritance](https://docs.greenmask.io/latest/configuration/?h=partition#dump-section)**
— Define transformation configurations once and apply them to all
partitions within partitioned tables (using `apply_for_inherited` parameter), simplifying the anonymization process.
* **Stateless** - Greenmask operates as a logical dump and does not impact your existing database schema.
Expand All @@ -64,16 +64,16 @@ sample databases included to help you try Greenmask without any additional actio
* **Backward compatible** - It fully supports the same features and protocols as existing vanilla PostgreSQL utilities.
Dumps created by Greenmask can be successfully restored using the pg_restore utility.
* **Extensible** - Users have the flexibility
to [implement domain-based transformations](https://greenmask.io/latest/built_in_transformers/standard_transformers/cmd/)
to [implement domain-based transformations](https://docs.greenmask.io/latest/built_in_transformers/standard_transformers/cmd/)
in any programming language or
use [predefined templates](https://greenmask.io/latest/built_in_transformers/advanced_transformers/).
use [predefined templates](https://docs.greenmask.io/latest/built_in_transformers/advanced_transformers/).
* **Integrable** - Integrate seamlessly into your CI/CD system for automated database anonymization and
restoration.
* **Parallel execution** - Take advantage of parallel dumping and restoration, significantly reducing the time required
to deliver results.
* **Provide variety of storages** - offers a variety of storage options for local and remote data storage,
including directories and S3-like storage solutions.
* **[Pgzip support for faster compression](https://greenmask.io/latest/commands/dump/?h=pgzip#pgzip-compression)** — by
* **[Pgzip support for faster compression](https://docs.greenmask.io/latest/commands/dump/?h=pgzip#pgzip-compression)** — by
setting `--pgzip`, it can speeds up the dump and restoration
processes through parallel compression.

Expand Down Expand Up @@ -121,13 +121,13 @@ the schema and data transformations, ensuring the desired outcomes during the An
#### Customization

If your table schema relies on functional dependencies between columns, you can address this challenge using the
[Dynamic parameters](https://greenmask.io/latest/built_in_transformers/dynamic_parameters/). By setting dynamic
[Dynamic parameters](https://docs.greenmask.io/latest/built_in_transformers/dynamic_parameters/). By setting dynamic
parameters, you can resolve such as created_at and updated_at cases, where the
updated_at must be greater or equal than the created_at.

If you need to implement custom logic imperatively use
[TemplateRecord](https://greenmask.io/latest/built_in_transformers/advanced_transformers/template_record/) or
[Template](https://greenmask.io/latest/built_in_transformers/advanced_transformers/template/) transformers.
[TemplateRecord](https://docs.greenmask.io/latest/built_in_transformers/advanced_transformers/template_record/) or
[Template](https://docs.greenmask.io/latest/built_in_transformers/advanced_transformers/template/) transformers.

Greenmask provides a framework for creating your custom transformers, which can be reused efficiently. These
transformers can be seamlessly integrated without requiring recompilation, thanks to the PIPE (stdin/stdout)
Expand Down
75 changes: 75 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
hide:
- feedback
---

# About Greenmask

## Dump anonymization and synthetic data generation tool

**Greenmask** is a powerful open-source utility that is designed for logical database backup dumping,
anonymization, synthetic data generation and restoration. It has ported PostgreSQL libraries, making it reliable.
It is stateless and does not require any changes to your database schema. It is designed to be highly customizable and
backward-compatible with existing PostgreSQL utilities, fast and reliable.


## Key features

* **[Deterministic transformers](built_in_transformers/transformation_engines.md/#hash-engine)**
— deterministic approach to data transformation based on the hash
functions. This ensures that the same input data will always produce the same output data. Almost each transformer
supports either `random` or `hash` engine making it universal for any use case.
* **[Dynamic parameters](built_in_transformers/dynamic_parameters.md)** — almost each
transformer supports dynamic parameters, allowing to parametrize the
transformer dynamically from the table column value. This is helpful for resolving the functional dependencies
between columns and satisfying the constraints.
* **[Transformation validation and easy maintainable](commands/validate.md)** - During
configuration process, Greenmask provides validation
warnings, data transformation diff and schema diff features, allowing you to monitor and maintain transformations
effectively
throughout the software lifecycle. Schema diff helps to avoid data leakage when schema changed.
* **[Partitioned tables transformation inheritance](configuration.md/?h=partition#dump-section)**
— Define transformation configurations once and apply them to all
partitions within partitioned tables (using `apply_for_inherited` parameter), simplifying the anonymization process.
* **Stateless** - Greenmask operates as a logical dump and does not impact your existing database schema.
* **Cross-platform** - Can be easily built and executed on any platform, thanks to its Go-based architecture,
which eliminates platform dependencies.
* **Database type safe** - Ensures data integrity by validating data and utilizing the database driver for
encoding and decoding operations. This approach guarantees the preservation of data formats.
* **Backward compatible** - It fully supports the same features and protocols as existing vanilla PostgreSQL utilities.
Dumps created by Greenmask can be successfully restored using the pg_restore utility.
* **Extensible** - Users have the flexibility
to [implement domain-based transformations](built_in_transformers/standard_transformers/cmd.md/)
in any programming language or
use [predefined templates](built_in_transformers/advanced_transformers/index.md).
* **Integrable** - Integrate seamlessly into your CI/CD system for automated database anonymization and
restoration.
* **Parallel execution** - Take advantage of parallel dumping and restoration, significantly reducing the time required
to deliver results.
* **Provide variety of storages** - offers a variety of storage options for local and remote data storage,
including directories and S3-like storage solutions.
* **[Pgzip support for faster compression](commands/dump.md/?h=pgzip#pgzip-compression)** — by
setting `--pgzip`, it can speeds up the dump and restoration
processes through parallel compression.


## Use cases

Greenmask is ideal for various scenarios, including:

* **Backup and restoration**. Use Greenmask for your daily routines involving logical backup dumping and restoration. It
seamlessly handles tasks like table restoration after truncation. Its functionality closely mirrors that of pg_dump
and pg_restore, making it a straightforward replacement.
* **Anonymization, transformation, and data masking**. Employ Greenmask for anonymizing, transforming, and masking
backups, especially when setting up a staging environment or for analytical purposes. It simplifies the deployment of
a pre-production environment with consistently anonymized data, facilitating faster time-to-market in the development
lifecycle.

## Links

* [Greenmask Roadmap](https://github.com/orgs/GreenmaskIO/projects/6)
* [Email](mailto:support@greenmask.io)
* [Twitter](https://twitter.com/GreenmaskIO)
* [Telegram](https://t.me/greenmask_community)
* [Discord](https://discord.gg/tAJegUKSTB)
* [DockerHub](https://hub.docker.com/r/greenmask/greenmask)
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ In the `restore` section of the configuration, you can specify parameters for th
* `insert_error_exclusions` — a list of error codes that should be ignored during the restoration process. This is
useful when you want to skip specific errors that are not critical for the restoration process.

As mentioned in [the architecture](architecture.md/#backing-up), a backup contains three sections: pre-data, data, and post-data. The custom script execution allows you to customize and control the restoration process by executing scripts or commands at specific stages. The available restoration stages and their corresponding execution conditions are as follows:
As mentioned in [the architecture](architecture.md/#backup-process), a backup contains three sections: pre-data, data, and post-data. The custom script execution allows you to customize and control the restoration process by executing scripts or commands at specific stages. The available restoration stages and their corresponding execution conditions are as follows:

* `pre-data` — scripts or commands can be executed before or after restoring the pre-data section
* `data` — scripts or commands can be executed before or after restoring the data section
Expand Down
2 changes: 1 addition & 1 deletion docs/database_subset.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ section.
!!! info

If you find any issues related to the code or greenmask is not working as expected, do not hesitate to contact us
[directly](index.md#links) or by creating an [issue in the repository](https://github.com/GreenmaskIO/greenmask/issues).
[directly](about.md#links) or by creating an [issue in the repository](https://github.com/GreenmaskIO/greenmask/issues).

### ERROR: column reference "id" is ambiguous

Expand Down
75 changes: 5 additions & 70 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,6 @@
# About Greenmask
---
hide:
- feedback
---

**Greenmask** is a powerful open-source utility that is designed for logical database backup dumping,
anonymization, and restoration. It offers extensive functionality for backup, anonymization, and data masking.

Greenmask is written in pure Go and includes ported PostgreSQL libraries that allows for platform independence. This
tool is stateless and does not require any changes to your database schema. It is designed to be highly customizable and
backward-compatible with existing PostgreSQL utilities.

## Purpose

The Greenmask utility plays a central role in the Greenmask ecosystem. Our goal is to develop a comprehensive, UI-based
solution for managing anonymization procedures. We recognize the challenges of maintaining anonymization consistency
throughout the software lifecycle. Greenmask is dedicated to providing valuable tools and features that ensure the
anonymization process remains fresh, predictable, and transparent.

## Key features

* **Database subset** - Dumps only the necessary data consistently based on the subset condition, reducing the size
of the dump and speeding up the restoration process.
* **Deterministic transformers** — deterministic approach to data transformation based on the hash
functions. This ensures that the same input data will always produce the same output data. Almost each transformer
supports either `random` or `hash` engine making it universal for any use case.
* **Dynamic parameters** — almost each transformer supports dynamic parameters, allowing to parametrize the
transformer dynamically from the table column value. This is helpful for resolving the functional dependencies
between columns and satisfying the constraints.
* **Cross-platform** — can be easily built and executed on any platform, thanks to its Go-based architecture,
which eliminates platform dependencies.
* **Database type safe** — ensures data integrity by validating data and utilizing the database driver for
encoding and decoding operations. This approach guarantees the preservation of data formats.
* **Transformation validation and easy maintainable** — during anonymization development, Greenmask provides validation
warnings and a transformation diff feature, allowing you to monitor and maintain transformations effectively
throughout the software lifecycle.
* **Partitioned tables transformation inheritance** — define transformation configurations once and apply them to all
partitions within partitioned tables, simplifying the anonymization process.
* **Stateless** — Greenmask operates as a logical dump and does not impact your existing database schema.
* **Backward compatible** — it fully supports the same features and protocols as existing vanilla PostgreSQL utilities.
Dumps created by Greenmask can be successfully restored using the pg_restore utility.
* **Extensible** — users have the flexibility to implement domain-based transformations in any programming language or
use predefined templates.
* **Declarative** — Greenmask allows you to define configurations in a structured, easily parsed, and recognizable
format.
* **Integrable** — integrate Greenmask seamlessly into your CI/CD system for automated database anonymization and
restoration.
* **Parallel execution** — take advantage of parallel dumping and restoration, significantly reducing the time required
to deliver results.
* **Provide variety of storages** — Greenmask offers a variety of storage options for local and remote data storage,
including directories and S3-like storage solutions.
* **Pgzip support for faster compression** — by setting `--pgzip`, greenmask can speeds up the dump and restoration
processes through parallel compression.

## Use cases

Greenmask is ideal for various scenarios, including:

* **Backup and restoration**. Use Greenmask for your daily routines involving logical backup dumping and restoration. It
seamlessly handles tasks like table restoration after truncation. Its functionality closely mirrors that of pg_dump
and pg_restore, making it a straightforward replacement.
* **Anonymization, transformation, and data masking**. Employ Greenmask for anonymizing, transforming, and masking
backups, especially when setting up a staging environment or for analytical purposes. It simplifies the deployment of
a pre-production environment with consistently anonymized data, facilitating faster time-to-market in the development
lifecycle.

## Links

* [Greenmask Roadmap](https://github.com/orgs/GreenmaskIO/projects/6)
* [Email](mailto:support@greenmask.io)
* [Twitter](https://twitter.com/GreenmaskIO)
* [Telegram](https://t.me/greenmask_community)
* [Discord](https://discord.gg/tAJegUKSTB)
* [DockerHub](https://hub.docker.com/r/greenmask/greenmask)
<meta http-equiv="refresh" content="0; url=/about/">
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ docker run -it greenmask/greenmask:latest

To run the greenmask container from Github registry, use the following command:
```shell
docker run -it ghcr.io/GreenmaskIO/greenmask:latest
docker run -it ghcr.io/greenmaskio/greenmask:latest
```

!!! info
Expand Down
2 changes: 1 addition & 1 deletion docs/release_notes/greenmask_0_2_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ security.
recursive query for the SCC whether it is a single cycle or multiple cycles, making the subset system universal
for any database schema.
* **Supports polymorphic relationships** - You can define
a [virtual reference for a table with polymorphic references]((../database_subset.md/#troubleshooting))
a [virtual reference for a table with polymorphic references](../database_subset.md/#troubleshooting)
using `polymorphic_exprs` attribute and use greenmask to generate a subset for such tables.

* **pgzip** support for faster [compression](../commands/dump.md/#pgzip-compression)
Expand Down
Loading

0 comments on commit 765b405

Please sign in to comment.