MySQL Forums
Forum List  »  Security

Re: How to debug keyring_file plugin for TDE
Posted by: Georgi Kodinov
Date: March 09, 2018 11:17AM

I'll talk about 8.0 here. Feel free to find the relevant sections in 5.7 if you need to:

To debug the plugin you want to put breakpoints on the keyring plugin methods in plugin/keyring/keyring.cc:

static struct st_mysql_keyring keyring_descriptor = {
MYSQL_KEYRING_INTERFACE_VERSION,
mysql_key_store,
mysql_key_fetch,
mysql_key_remove,
mysql_key_generate,
mysql_key_iterator_init,
mysql_key_iterator_deinit,
mysql_key_iterator_get_key};

These implement the individual keyring plugin API comamnds.

They pretty much correspond to the SQL functions described in https://dev.mysql.com/doc/refman/8.0/en/keyring-udfs-general-purpose.html

It's all documented in https://dev.mysql.com/doc/refman/8.0/en/writing-keyring-plugins.html too.

Georgi "Joro" Kodinov
MySQL SrvGen team lead
Plovdiv, Bulgaria

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to debug keyring_file plugin for TDE
648
March 09, 2018 11:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.