Add support for restoring encrypted backup - #2359
Conversation
egegunes
left a comment
There was a problem hiding this comment.
I see a lot of unrelated changes. @yashdaga-24 could you please rebase your branch to main? And please add a description of your changes.
|
Hi @egegunes, Sorry I hadn't meant to raise it for review, I just raised it to share the changes to someone from our team. I'll break this and raise 2 separate PRs 1)Add extraPVC to restore pod. From my understanding currently keyring component is only handled for vault and not for file based and that too for pxc>=8.4. So I wanted to ask if you would want to merge the second PR? |
I don't see any reason to not merge it. @hors wdyt? But please keep in mind that we have two different backup implementations: SST and XtrabackupSidecar. This needs to be implemented in both. |
1d3d2eb to
e2b445c
Compare
- Add auto-detection for component keyring configs in recovery scripts
- Check for component_keyring_file.cnf in addition to vault config
- Detect component vs plugin based on config file content ("path" key for component, "vault_url" for plugin)
- Support XtraBackup 8.0.25+ with component-based keyring
- Support XtraBackup 8.4.0+ which always uses components
e2b445c to
854cf21
Compare
commit: d9921a6 |
CHANGE DESCRIPTION
Problem:
Restore operations fail when backups contain tables encrypted using file-based keyring components (component_keyring_file). The recovery scripts only support vault-based keyring configurations and do not detect or handle file-based keyring component configurations, causing restore and prepare jobs to fail with keyring-related errors.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Update the recovery scripts to properly detect and support file-based keyring components:
Component mode: --component-keyring-config
Plugin mode: --keyring-vault-config with --early-plugin-load
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability