Masking Extensions
(MXS-1302)
|
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | masking |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0 |
| Type: | Sub-Task | Priority: | Major |
| Reporter: | Johan Wikman | Assignee: | Massimiliano Pinto (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-37, 2017-38 |
| Description |
|
It should be possible to replace just one part of a value. As an example, so that a (Finnish) social security number such as 061173-174A is replaced with 061173-XXXX. This could be done, for instance, so that the rule syntax is extended with a capture clause
and then only the captured part would be replaced with the fill character. Note that the above is only for illustrative purposes, and the actual way for specifying what is captured and how it is replaced remains to be defined during the implementation. "capture" keyword has been changed to "match" in the JSON Partial masking "match" option is an optional parameter in the "replace" rule. If present it takes precedence and the filling is done in the matched string only: see comments below. |
| Comments |
| Comment by Massimiliano Pinto (Inactive) [ 2017-07-14 ] |
|
Proper keyword is "match" instead of "capture": "replace": { "column": "d_code", "match": "(?<=aaa).*(?=-12)|(?<=-12).*" }, |
| Comment by Massimiliano Pinto (Inactive) [ 2017-07-14 ] |
|
in "develop" branch |
| Comment by Dipti Joshi (Inactive) [ 2017-07-20 ] |
|
Massimiliano Pinto Where can I find user documentation on this ? |