I want to rotate the vault token inside the keyring.conf file, but I was concerned that if mysql only reads the token at startup and stores it in memory, how would it know when to read a fresh token from the keyring.conf file after the token has expired.
I found Best Practice for Automatic Vault Token Generation and Percona keyring_vault plugin - #2 by LukeYangJMA which mentions that we can run:
mysql> UNINSTALL PLUGIN keyring_vault;
mysql> INSTALL PLUGIN keyring_vault SONAME 'keyring_vault.so';
to refresh the token loaded in memory.
i wanted to ask if this is the best way to handle token rotation or is there something else as well?