Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15923

option to control who can set session @@timestamp

Details

    Description

      It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical.

      A consistent approach could be a new command line option that controls who can set @@timestamp.
      Something like --who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE
      (here "SUPER" implies "REPLICATION")

      Can be set via command-line option only, read-only server variable.

      perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).

      And system versioning will use @@timestamp and not a separate shadow system time anymore.

      Attachments

        Issue Links

          Activity

            serg Sergei Golubchik created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Summary option to control, who can set session @@timestamp option to control who can set session @@timestamp
            serg Sergei Golubchik made changes -
            Description Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).
            It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical and inconsistent.

            Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).
            serg Sergei Golubchik made changes -
            Description It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical and inconsistent.

            Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).
            It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical.

            A consistent approach could be a new command line option that controls who can set @@timestamp.
            Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Description It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical.

            A consistent approach could be a new command line option that controls who can set @@timestamp.
            Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).
            It's a bit strange now that one cannot create an arbitrary history with arbitrary timestamps, unless one abuses replication, in which case one can. This is illogical.

            A consistent approach could be a new command line option that controls who can set @@timestamp.
            Something like {{--who-can-set-session-timestamp=NOBODY|REPLICATION|SUPER|ANYONE}}
            (here "SUPER" implies "REPLICATION")

            Can be set via command-line option only, read-only server variable.

            perhaps REPLICATION is unnecessary, and NOBODY|SUPER|ANYONE is enough (if SUPER can abuse REPLICATION to change timestamp anyway).

            And system versioning will use @@timestamp and not a separate shadow system time anymore.
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.3.7 [ 23005 ]
            Fix Version/s 10.3 [ 22126 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 86637 ] MariaDB v4 [ 133527 ]

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              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.