MXS-2457 Add 'treat_string_arg_as_field' to DB Firewall

This commit is contained in:
Johan Wikman
2019-05-02 19:34:50 +03:00
parent 3fa1f0773e
commit fe5160a714
4 changed files with 72 additions and 0 deletions

View File

@ -146,6 +146,16 @@ query itself is logged. The log messages are logged at the notice level.
Log all queries that do not match a rule. The matched user and the query is
logged. The log messages are logged at the notice level.
#### `treat_string_arg_as_field`
This optional parameter specifies how the database firewall should treat
strings used as arguments to functions. If true, they will be handled
as fields, which will cause fields to be masked even if `ANSI_QUOTES` has
been enabled and `"` is used instead of backtick.
```
treat_string_arg_as_field=false
```
The default value is `true`.
## Rule syntax
The rules are defined by using the following syntax: