[MXS-1827] Support for netmask having numbers different than 255 or 0 Created: 2018-04-25 Updated: 2023-06-23 Resolved: 2023-06-20 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | mariadbclient |
| Affects Version/s: | 2.2.2, 2.2.8 |
| Fix Version/s: | 6.4.7 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Wagner Bianchi (Inactive) | Assignee: | Esa Korhonen |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
|
||
| Issue Links: |
|
||||||||||||||||
| Sprint: | MXS-SPRINT-185 | ||||||||||||||||
| Description |
|
Folks, Working with a customer, I found the below messages on the maxscale log what figures out to be a limitation of the Data Masking filter:
We need to be able to support a netmask with definition having numbers different of 255 or 0. Maybe, to support a CIDR definition will be good as well. It's linked with the https://jira.mariadb.org/browse/MXS-1772. Can that support be implemented? Thanks and cheers! |
| Comments |
| Comment by markus makela [ 2020-02-14 ] | ||||||||||||||
|
MariaDB server does not support non-octet masks: https://mariadb.com/kb/en/create-user/#host-name-component | ||||||||||||||
| Comment by Reiner Keller [ 2020-02-14 ] | ||||||||||||||
|
but then it shouldn't be accepted AND USED as it's done in all used versions so far?
| ||||||||||||||
| Comment by Hartmut Holzgraefe [ 2020-07-07 ] | ||||||||||||||
|
The MariaDB server documentation seems to be wrong here, I tested on 10.3 and 10.4 and found that non-octet masks actually work fine there, e.g. in my local network my laptop currently is 192.168.23.140 and my desktop is 192.168.23.88. When creating the following user on both:
I can connect from desktop to mariadb server on laptop, so client with 192.168.23.88 can connect with netmask 255.255.255.128 On the other hand laptop can't connect to server on laptop, as its 192.168.23.140 address is not within 192.168.23.0/255.255.255.128 So at least with MariaDB server 10.3 and above true netmask support is there, but doesn't work with Maxscale | ||||||||||||||
| Comment by markus makela [ 2020-07-08 ] | ||||||||||||||
|
Hmm, I guess we'll have to open this up again and update the MariaDB documentation. | ||||||||||||||
| Comment by markus makela [ 2020-07-08 ] | ||||||||||||||
|
Opening as a new feature as this is currently expected behavior. |