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

file-key-management plugin disabled in mysql_install_db breaks automated deployments (and container initialization)

Details

    Description

      As noted by https://github.com/MariaDB/mariadb-docker/issues/417, the disabling of the file-key-management plugin in mysql_install_db prevents upgrades or the initialization of containers with encryption.

      This was caused by commit:

      https://github.com/MariaDB/server/commit/e99d3da6381023395c86f679bb76b00b4385dc2d

      This is excessively brutal as the file-key-management-filename may actually be set using scripts and automation (like Ansible) that will deploy a configuration before starting a service.

      As mysql_install_db creates InnoDB tables, a user specified innodb_encrypt_tables = ON will cause the installation to fail. With file-key-management plugin explicitly disabled, the only innodb system table space encryption is available with another encryption plugin, or using mysqld --bootstrap directly.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment - - edited

            Docker Library release update submitted

            danblack Daniel Black added a comment - - edited Docker Library release update submitted
            otto Otto Kekäläinen added a comment - This was applied in the Debian packaging repo in https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/4781120e8cb33fe03261d9f8b2adad4ea82ebc1d for 10.6.7
            danblack Daniel Black added a comment -

            Thanks for the revert serg

            danblack Daniel Black added a comment - Thanks for the revert serg

            People

              serg Sergei Golubchik
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.