-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE] Backup Operator ignores "*.*" in EncryptionConfiguration #591
Comments
Identified the source of the bug to around here:
Gist being that it only currently allows direct matches and cannot work with wildcards. Looking into potential solutions. |
After further investigation, I've realized that the upstream ability to use this feature (wildcard resource selection for The k8s docs indicate this in their examples: - '*.*' # wildcard match requires Kubernetes 1.27 or later So this is more of an RFE rather than an outright bug. The main reason being that BRO releases are tied to Rancher releases and must support the same range of k8s versions. So ideally a feature like this is included when Rancher minimum k8s matches the version that upstream adds the feature in. Thankfully in this case that lines up with 2.9.x Rancher - so there's no "bake in" time for that window to expire. I have been able to make a lot of progress to be confident on how we can fix backups. However the fix needs to be symmetrical or it will leave restorations broken. Dev notes: To fix we will want to more directly replicate the logic k8s uses when dealing with Because the wildcard feature allows for: true wildcards ( Attached is a backup-encrypt.patch |
The PR work on this is complete but given that it targets Rancher 2.11 it is blocked until after 2.10 release. |
We managed to get QA cycles to get this tested for the 2.10 release so I'll be merging the PR and moving the issue from blocked ;) |
QA notes: Unit and integration testing for this feature were added in a separate PR. Maybe it is part of standard procedure to use the latest RC version, but I'm commenting this here just to make sure. Latest version including the updated tests is 105.0.0+up6.0.0-rc.7 |
Verified on v2.10-alpha ID:
|
Rancher Server Setup
Describe the bug
If you define
*.*
in the resources of a EncryptionConfiguration for an encrypted backup, nothing gets encrypted. Is this intended behaviour?To Reproduce
Expected behavior
All the resources json are encrypted (like when you use
secrets
as resource.The text was updated successfully, but these errors were encountered: