-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[velero-plugin-for-aws:v1.9.1] Backup fails with customer provided key encryption #7693
Comments
@robertstrache Could you check the workaround provided in aws-plugin v1.9.2 to skip adding the checksum? |
When using aws-plugin v1.9.2 and adding
to the How do I create the debug bundle? I am using
to manually trigger a backup creation. With which version of the aws-plugin should i create the debug bundle? |
@robertstrache Please gen the debug bundle of aws-plugin v1.9.2 |
I did with version 1.9.2 but I am not sure if I can provide a meaningful debug bundle. What exactly do you need from it?
and I assume these are also used during debug bundle creation. At some point the output of
says
and this command ends with
(which I guess makes sense because it could not communicate with S3) However e.g.
which is also the error we see in our logs. Do you need additional information? |
had the same issue when upgrading from v1.8.2 to v1.9.2
Addding the |
in my case adding
|
same here |
Requirement: Using server-side encryption with customer-provided keys Coding(./velero-plugin-for-aws/object_store.go): func (o *ObjectStore) Init(config map[string]string) error {
...
if customerKeyEncryptionFile != "" {
customerKey, err := readCustomerKey(customerKeyEncryptionFile)
if err != nil {
return err
}
sseCustomerKey := base64.StdEncoding.EncodeToString([]byte(customerKey))
o.sseCustomerKey = sseCustomerKey
hash := md5.Sum([]byte(customerKey))
sseCustomerKeyMd5 := base64.StdEncoding.EncodeToString([]byte(hash))
o.sseCustomerKeyMd5 = sseCustomerKeyMd5
}
...
}
func (o *ObjectStore) PutObject(bucket, key string, body io.Reader) error {
...
case o.sseCustomerKey != "":
input.SSECustomerAlgorithm = aws.String("AES256")
input.SSECustomerKey = &o.sseCustomerKey
input.SSECustomerKeyMD5 = &o.sseCustomerKeyMd5
...
} After adjusting, building a new image, and using |
The code provided by @edric-le seems to fix the issue. |
I believe issue is fixed via vmware-tanzu/velero-plugin-for-aws#225. Please let us know. Closing as completed for now thanks to @gschei |
Looks like images are not being published in https://hub.docker.com/r/velero/velero-plugin-for-aws/tags Probably due to python 2.7 EOL
|
What steps did you take and what happened:
After upgrading velero-plugin-for-aws from 1.8.1 to 1.9.0 (and also 1.9.1) backup creation fails with
What did you expect to happen:
The backup creation should work correctly as it did previously in 1.8.1 (reverting to 1.8.1 makes it work again)
The following information will help us better understand what's going on:
BackupStorageLocation:
Environment:
velero version
): 1.13.1kubectl version
): v1.28.6Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: