MySQL Server Enterprise edition integrates with Hashicorp to encrypt data at rest. The encryption key is stored in HashiCorp vault as described in MySQL documentation.
Based on HashiCorp documentation [1] [2], we can use Azure Key Vault to store secrets.
Is it possible to integrate MySQL - HashiCorp - Azure Key Vault so
- MySQL Enterprise Edition is encrypted using HashiCorp
- The encryption key is stored in AKV.
Edit with more details: I am already saving and reading the MySQL encryption key in the kv(Hashicop) vault. But I want to configure to read and store this key from the Azure Key Vault.
Configuring the MySQL server with something like this:
[mysqld]
early-plugin-load=keyring_hashicorp.so
keyring_hashicorp_role_id='XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX'
keyring_hashicorp_secret_id='XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX'
keyring_hashicorp_store_path='/azure/mysql'
In Azure, I have set up
vault read azure/creds/my-role
Key Value
--- -----
lease_id azure/creds/my-role/XXXXXXXX
lease_duration 1h
lease_renewable true
client_id XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX
client_secret XXXXXXXX
How can I set up keyring_hashicorp_store_path to get the key from Azure?
I cannot find any configuration option, tutorials or documentation to make the three works together.