[MDEV-28294] set default role bypasses Replicate_Wild_Ignore_Table: mysql.% Created: 2022-04-12 Updated: 2022-09-27 Resolved: 2022-08-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.6.7, 10.2, 10.3, 10.4, 10.5, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.9.2, 10.3.37, 10.4.27, 10.5.18, 10.6.10, 10.7.6, 10.8.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Allen Lee (Inactive) | Assignee: | Brandon Nesterenko |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Replicate_Wild_Ignore_Table: mysql.% can't make bypass SET DEFAULT ROLE '<role>' FOR 'user'; On master
on slave:
MTR test case for reproducing
Reproduced with: |
| Comments |
| Comment by Brandon Nesterenko [ 2022-04-27 ] |
|
Hi Andrei! This is ready for (preliminary) review. My analysis: The fix adds logic to check that the mysql.user and mysql.roles_mapping tables are not excluded by replication filters before checking that the exact rules/user exist from the SET DEFAULT ROLE command. Patch: fe6631e |
| Comment by Andrei Elkin [ 2022-04-28 ] |
|
Reviewed a poc commit. |
| Comment by Brandon Nesterenko [ 2022-04-29 ] |
|
Hi Andrei! This is ready for review.
|
| Comment by Andrei Elkin [ 2022-08-19 ] |
|
Agreed with the patch. |
| Comment by Andrei Elkin [ 2022-08-22 ] |
|
Closing on the behalf of Brandon. |
| Comment by Andrei Elkin [ 2022-08-24 ] |
|
For mergers, reviewers: the actual 10.4 merge branch is bb-10.4-MDEV-28294, not bb-10.4-MDEV-28294-merge that was created ago on the base of the initial patch version. bnestere, when you're back, could you please review the merge work. |