MXS-1962 Create test for implicit masking firewall

By default, if some column should be masked, then if a function
is used in conjunction with that column, the statement should be
rejected.
This commit is contained in:
Johan Wikman
2018-08-07 15:43:44 +03:00
parent 5c6db6dc06
commit 055b93ba1a
4 changed files with 154 additions and 0 deletions

View File

@ -0,0 +1,49 @@
[maxscale]
threads=###threads###
maxlog=1
log_info=1
[server1]
type=server
address=###node_server_IP_1###
port=###node_server_port_1###
protocol=MySQLBackend
[TheMonitor]
type=monitor
module=mysqlmon
servers=server1
user=maxskysql
password=skysql
monitor_interval=1000
[Masking]
type=filter
module=masking
rules=/home/vagrant/masking_auto_firewall.json
warn_type_mismatch=always
large_payload=ignore
[RWS]
type=service
router=readwritesplit
servers=server1
user=maxskysql
password=skysql
filters=Masking
[RWS-Listener]
type=listener
service=RWS
protocol=MySQLClient
port=4006
[CLI]
type=service
router=cli
[CLI-Listener]
type=listener
service=CLI
protocol=maxscaled
socket=default