# \[PXC 8.0.34\] Keyring Vault plugin issue

**URL:** <https://forums.percona.com/t/pxc-8-0-34-keyring-vault-plugin-issue/26938>\
**Category:** Percona Server for MySQL 8.0\
**Tags:** closed-no-reply\
**Created:** [December 4, 2023, 5:14pm UTC](https://forums.percona.com/t/pxc-8-0-34-keyring-vault-plugin-issue/26938 "2023-12-04T17:14:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbalmon](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bbalmon](https://forums.percona.com/u/bbalmon)\
**Post date:** [December 4, 2023, 5:14pm UTC](https://forums.percona.com/t/pxc-8-0-34-keyring-vault-plugin-issue/26938/1 "2023-12-04T17:14:56Z")

</div>

Hi,

I’ve configured a pxc cluster with keyring vault enable via PXC Operator

Vault is available, and pxc pods can write keys in the secret path

At start up of the first pxc pod, some keys are written in Vault, but then the pod crashes with the following log :

{“log”:“2023-12-01T09:59:45.224081Z 0 [Warning] [MY-013712] [Server] No suitable ‘keyring\_load’ service implementation found to fulfill the request.\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.238191Z 0 [Warning] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Probing mt-rke2percona-tst for being a mount point successful - identified kv-v2 secret engine.’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.256559Z 0 [Warning] [MY-048031] [InnoDB] Setting Percona-specific INNODB\_PARALLEL\_DBLWR\_ENCRYPT is deprecated and has no effect.\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.274082Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Vault Server response data is not an Object’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.274108Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Could not read key from Vault.’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.288819Z 3 [System] [MY-013576] [InnoDB] InnoDB initialization has started.\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:45.957707Z 3 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.186689Z 3 [Note] [MY-000000] [WSREP] wsrep\_init\_schema\_and\_SR (nil)\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.279646Z 3 [System] [MY-000000] [WSREP] PXC upgrade completed successfully\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.837698Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Vault Server response data is not an Object’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.837743Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Could not read key from Vault.’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.869275Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Vault Server response data is not an Object’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.898417Z 0 [System] [MY-011197] [Server] Plugin keyring\_vault reported: ‘Could not read key from Vault.’\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.898478Z 0 [ERROR] [MY-013285] [Repl] Failed to store key, please check if keyring is loaded.\n”,“file”:“/var/lib/mysql/mysqld-error.log”} {“log”:“2023-12-01T09:59:46.898509Z 0 [ERROR] [MY-013288] [Server] Failed to initialize binlog encryption, please check if keyring is loaded.\n”,“file”:“/var/lib/mysql/mysqld-error.log”}

Here is the vault policy used :

path “mt-rke2percona-tst/config”

{ capabilities = [“read”] }  
path “mt-rke2percona-tst/metadata/pxc-cluster2/\*”

{ capabilities = [“list”] }  
path “mt-rke2percona-tst/data/pxc-cluster2/\*”

{ capabilities = [“create”, “read”, “delete”, “update”, “list”] }

Here is the vault secret used in the CRD pxc-cluster for vault secret :

keyring\_vault.conf :  
token =   
vault\_url = https://  
secret\_mount\_point = mt-rke2percona-tst/pxc-cluster2/keyring-vault-keys  
secret\_mount\_point\_version = 2  
vault\_ca = /etc/mysql/vault-keyring-secret/ca.cert

The secret-engine is kv-2.

thank you for the help that you could provide
