Skip to content

v0.1.7

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Mar 21:16
· 257 commits to main since this release
4cf2864

Greenmask 0.1.7

This release introduces improvements, bug fixes, and documentation updates.

New features

  • Added restoration filtering by --table, --schema and --exclude-schema parameters
  • Validate command without parameters validates only the configuration file
  • Added the --schema parameter, 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
    • Schema 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)
  • Refactored Cmd transformer 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 validate command was rewritten almost from scratch.
    • New option --transformed-only - displays only columns that are transformed with a primary key (if exists). This
      allows to reduce the output data and make it more readable
    • Implemented json format for output
    • Added the --table-format parameter which is responsible for the vertical and horizontal table orientation.
      This works only when --format=text
    • Added the --warnings parameter, if it is specified then not only fatal-warnings will be displayed, but also
      those with a lower severity

Fixes

  • Fixed --use-list option - now it applies to entries according to the order in the list file
  • Fixed --use-list option behavior together with --list-format option (json or text). Now it
    generates a temporal list file in text format for providing it to the pg_restore call
  • Updated documentation according to the latest changes

Contributors

@wwoytenko