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

encryption_algorithm configuration variable is static and can't be changed

    Details

    • Sprint:
      10.1.6-1

      Description

      encryption_algorithm is currently global configuration variable and can't be changed. Furtheremore misconfiguration will lead to assertion failures.

      Presumably if it makes sense to have it changeable, it also makes sense to set different algorithms for different objects.

      At a minimum, store the encryption_algorithm selection with each encrypted object so that data can be migrated in the future. Then, implement sufficient support in the various necessary places so that it can be safely changed. Currently as far as I can tell it is globally set once, and impossible to change in the future. This could be done via stealing some bits from either the stored encryption scheme (1 byte) or key version (4 bytes) or adding a new encryption algorithm field which is stored alongside those everywhere (needs thinking).

      Alternatively as an absolute (and even lower) minimum: ensure that changing it once the database is initialized produces a loud and very clear error message to the user.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            jplindst Jan Lindström added a comment -

            This configuration variable does not exists anymore.

            Show
            jplindst Jan Lindström added a comment - This configuration variable does not exists anymore.

              People

              • Assignee:
                jplindst Jan Lindström
                Reporter:
                jplindst Jan Lindström
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Agile