Greenmask 0.1.7¶
This release introduces a new Greenmask command, improvements, bug fixes, and documentation update.
New features¶
- Added restoration filtering by
--table,--schemaand--exclude-schemaparameters - Validate parameters without parameters validates only configuration file
- Added the
--schemaparameter, which allows to make a schema diff between the previous dump and the current. This is useful when you want to check if the schema has changed after the migration. By controlling it we can exclude data leakage after migration - Validate command divided by many stages that can be controlled using parameters
- Configuration validation
- Transformer validation
- Constraint violation check
- Data difference check
Improvements¶
- Improved Hash transformer
- Added salt parameter that can be set via config or via
GREENMASK_GLOBAL_SALT - Added sha3 functions support in different modes (sha3-224, sha3-256, sha3-384, sha3-512)
- Added salt parameter that can be set via config or via
- Refactored
Cmdtransformer logic- Json API: Now it allows to use of column names instead of column indexes in JSON format
- Csv API: Now it can use the column order from config via column remapping
- The
validatecommand was rewritten almost from scratch.- New option
--transformed-only- displays only columns that are transformed with primary key (if exists). This allows to reduce the output data and make it more readable - Implemented
jsonformat for output - Added the
--table-formatparameter which is responsible for theverticalandhorizontaltable orientation. This works only when--format=text - Added the
--warningsparameter, if it is specified then not only fatal-warnings will be displayed, but also those with a lower severity
- New option
Fixes¶
- Fixed
--use-listoption - now it applies toc entries according to the order in list file - Fixed
--use-listoption behaviour together with--list-formatoption (jsonortext). Now it generates temporal list file in text format for providing it to the pg_restore call - Updated documentation according to the latest changes
Assets¶
To download the Greenmask binary compatible with your system, see the release's assets list.