[MDEV-28280] Multiple key management plugins refuse to load with generic error Created: 2022-04-10  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Encryption, Plugins
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
Fix Version/s: 10.11

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-9948 Failing assertion: new_state->key_ver... Closed

 Description   

When more than one key management plugin are turned on either on server startup or at runtime, the second and other plugins fail to load with the error

10.2 27b5d814

MariaDB [test]> install soname 'example_key_management';
ERROR 1123 (HY000): Can't initialize function 'example_key_management'; Plugin initialization function failed.

2022-04-11  0:41:54 140483355105024 [ERROR] Plugin 'example_key_management' registration as a ENCRYPTION failed.

It was a theoretical problem till now, as we only had one "real" plugin, but now with hashicorp being added it becomes more practical.

Probably the rejection is intentional, but it would be good to produce a more comprehensive error message (in the log at least).


Generated at Thu Feb 08 09:59:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.