Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5352

Binlog filter does not filter SQL which updates mysql.user table

Details

    • MXS-SPRINT-221

    Description

      A client wants to prevent user and user privilege statements from replicating to an offsite replica.
      This replica replicates via a binlog router.

      The issue is important for the client as they want to use the offsite replica with different users and privileges compared to their on-premise databases and is blocking our ability to fulfil their request. (see support ticket).

      I setup an binlog filter to exclude mysql.user statements but the filter does not exclude the create user, grant statements from running via replication on the offsite replica

      https://mariadb.com/kb/en/mariadb-maxscale-2208-binlog-filter/

      – based on documentation
      – exclude/ignore any statements going to mysql.user

      [BinlogFilter]
      type=filter
      module=binlogfilter
      exclude=/mysql[.]user/
      

      When I reviewed the binlog there is no mention of a table (mysql.user) when those grant statements are run.

      Attachments

        Activity

          paul.moen Paul Moen created issue -
          markus makela markus makela made changes -
          Field Original Value New Value
          Description A client wants to prevent user and user privilege statements from replicating to an offsite replica.
          This replica replicates via a binlog router.

          The issue is important for the client as they want to use the offsite replica with different users and privileges compared to their on-premise databases and is blocking our ability to fulfil their request. (see support ticket).

          I setup an binlog filter to exclude mysql.user statements but the filter does not exclude the create user, grant statements from running via replication on the offsite replica

          https://mariadb.com/kb/en/mariadb-maxscale-2208-binlog-filter/

          -- based on documentation
          -- exclude/ignore any statements going to mysql.user

          {{[BinlogFilter]
          type=filter
          module=binlogfilter
          exclude=/mysql[.]user/}}

          When I reviewed the binlog there is no mention of a table (mysql.user) when those grant statements are run.

          More info in ticket https://mariadb.zendesk.com/agent/tickets/207207
          A client wants to prevent user and user privilege statements from replicating to an offsite replica.
          This replica replicates via a binlog router.

          The issue is important for the client as they want to use the offsite replica with different users and privileges compared to their on-premise databases and is blocking our ability to fulfil their request. (see support ticket).

          I setup an binlog filter to exclude mysql.user statements but the filter does not exclude the create user, grant statements from running via replication on the offsite replica

          https://mariadb.com/kb/en/mariadb-maxscale-2208-binlog-filter/

          -- based on documentation
          -- exclude/ignore any statements going to mysql.user

          {code}
          [BinlogFilter]
          type=filter
          module=binlogfilter
          exclude=/mysql[.]user/
          {code}

          When I reviewed the binlog there is no mention of a table (mysql.user) when those grant statements are run.

          More info in ticket https://mariadb.zendesk.com/agent/tickets/207207
          markus makela markus makela made changes -
          Description A client wants to prevent user and user privilege statements from replicating to an offsite replica.
          This replica replicates via a binlog router.

          The issue is important for the client as they want to use the offsite replica with different users and privileges compared to their on-premise databases and is blocking our ability to fulfil their request. (see support ticket).

          I setup an binlog filter to exclude mysql.user statements but the filter does not exclude the create user, grant statements from running via replication on the offsite replica

          https://mariadb.com/kb/en/mariadb-maxscale-2208-binlog-filter/

          -- based on documentation
          -- exclude/ignore any statements going to mysql.user

          {code}
          [BinlogFilter]
          type=filter
          module=binlogfilter
          exclude=/mysql[.]user/
          {code}

          When I reviewed the binlog there is no mention of a table (mysql.user) when those grant statements are run.

          More info in ticket https://mariadb.zendesk.com/agent/tickets/207207
          A client wants to prevent user and user privilege statements from replicating to an offsite replica.
          This replica replicates via a binlog router.

          The issue is important for the client as they want to use the offsite replica with different users and privileges compared to their on-premise databases and is blocking our ability to fulfil their request. (see support ticket).

          I setup an binlog filter to exclude mysql.user statements but the filter does not exclude the create user, grant statements from running via replication on the offsite replica

          https://mariadb.com/kb/en/mariadb-maxscale-2208-binlog-filter/

          -- based on documentation
          -- exclude/ignore any statements going to mysql.user

          {code}
          [BinlogFilter]
          type=filter
          module=binlogfilter
          exclude=/mysql[.]user/
          {code}

          When I reviewed the binlog there is no mention of a table (mysql.user) when those grant statements are run.
          markus makela markus makela made changes -
          Status Open [ 1 ] Needs Feedback [ 10501 ]
          julien.fritsch Julien Fritsch made changes -
          Assignee Paul Moen [ paul.moen ]
          markus makela markus makela made changes -
          Assignee Paul Moen [ paul.moen ] markus makela [ <markus.makela ]
          markus makela markus makela made changes -
          Status Needs Feedback [ 10501 ] Open [ 1 ]
          johan.wikman Johan Wikman made changes -
          Rank Ranked higher
          markus makela markus makela made changes -
          Sprint MXS-SPRINT-221 [ 773 ]
          markus makela markus makela made changes -
          Rank Ranked lower
          markus makela markus makela made changes -
          Rank Ranked lower
          markus makela markus makela made changes -
          Fix Version/s N/A [ 22001 ]
          Resolution Not a Bug [ 6 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            markus makela markus makela
            paul.moen Paul Moen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.