Masking: Add parameter for warnings

The masking filter can now be instructed to warn in case a masking
rule matches a column of a type that is not masked.
This commit is contained in:
Johan Wikman
2017-01-11 15:08:25 +02:00
parent e79e82b0a9
commit 9a95e79dd6
10 changed files with 140 additions and 10 deletions

View File

@ -76,7 +76,7 @@ type=service
filters=Mask-SSN
```
# Filter Parameter
## Filter Parameters
The masking filter has one mandatory parameter - `rules_file`.
@ -90,6 +90,18 @@ MariaDB MaxScale.
rules_file=/path/to/rules-file
```
#### `warn_type_mismatch`
With this optional parameter the masking filter can be instructed to log
a warning if a masking rule matches a column that is not of one of the
allowed types.
The values that can be used are `never` and `always`, with `never` being
the default.
```
warn_type_mismatch=always
```
# Rules
The masking rules are expressed as a JSON object.