[MDEV-7609] Improve error messaging when example_key_management_plugin is not preset Created: 2015-02-19  Updated: 2015-09-15  Resolved: 2015-09-15

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1.3
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Jan Lindström (Inactive) Assignee: Jan Lindström (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None

Attachments: File key_manager.diff    

 Description   

Currently we only inform that key version is not found, but the actual reason is not.



 Comments   
Comment by Jan Lindström (Inactive) [ 2015-02-19 ]

Note that this fix changes plugin API for key_management_plugins/service

Comment by Jan Lindström (Inactive) [ 2015-02-19 ]

Not sure if this was the "best" way to do this, but at least it does work.

Comment by Sergei Golubchik [ 2015-09-13 ]

How relevant it is? The code is very different now, e.g. there is no fil_crypt_get_key() function anymore.

Anyway, there is no need to introduce has_encryption_key_manager_func callback and change the API. You can check whether encryption key manager is loaded with encryption_key_id_exists(ENCRYPTION_KEY_SYSTEM_DATA). That key must always exist, if it doesn't — there is no encryption key manager.

Comment by Jan Lindström (Inactive) [ 2015-09-15 ]

Not relevant after MDEV-8764.

Generated at Thu Feb 08 07:20:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.