Comment 3 for bug 1893471

Revision history for this message
James Page (james-page) wrote :

In terms of feasibility it may be possible to use the "operator migrate" commands to facilitate a secure backup and restore between a MySQL backend and a filesystem.

https://www.vaultproject.io/docs/commands/operator/migrate

This is a direct backend migration i.e. no decryption is involved so the unseal keys will remain the same throughout the process.

This would also require a different path to initialisation of vault during deployment where a migrate from filesystem -> mysql is performed rather than the init process. We'd also need to deal with how the charm then gains access to vault so backup of the approle information the vault charm uses and direct injection of that during redeployment would need to be done.