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

Make encryption plugins "pure", not exporting mysqld entry points directly

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Fix Version/s: 10.1.23
    • Component/s: Backup
    • Labels:
      None

      Description

      Encryption plugins can be loaded by both server and xtrabackup. On Windows, all server plugins are linked with mysqld.exe (because they export server entry points, and shared library cannot have unresolved symbols on Windows). Loading plugins from the process that is not mysqld.exe requires subverting Windows loader. To make it possible, non-trivial amount of hacks are required. On Solaris, plugins also cannot be loaded into xtrabackup, and currently all encryption tests fail there.

      The task is to make shared library plugins "pure", not having unresolved symbols, not depending on mysqld to load. For that,
      a) We should add more server services. Currently, AES encryption, reporting (to client with mysql_print_error, or to error log with sql_print_information) is used inside plugins.
      b) Rewrite functionality that is possible to achieve with standard system libraries - get rid of my_open/my_read, my_malloc, dynamic_array etc

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: