How to Provide SSE-C CustomerKey (without trailing =) #8376
-
I use velero-plugin-for-aws:v1.10.1 and velero 1.14.1. I want to encrypt my backups with SSE-C with the following steps:
I store that base64 string in the cloud-credentials secret as "customer-key". Next in the BSL I add this config
My Problem is, that the base64 string always contains a trailing "=" (the padding). It looks like I need to provide the encryption key as "raw base64" which does not contain padding. But Kubernetes does not allow to store the "raw base64" without padding. So how can I properly store the key? Currently I receive this error and according to my tests the trailing "=" might be the problem
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
who said so? |
Beta Was this translation helpful? Give feedback.
-
@kaovilai: thanks for your input, but I was completely wrong with my question. Raw Base64 is only needed for minio cli and not applicable to Velero. The raw key is anyway mounted in the container, because during mount of the secret kubernetes decodes base64. The issue above was caused by missing base64 encoding of the velero-plugin-for-aws, which is of course necessary within the HTTP-Header. I created a Pull-Request for this: vmware-tanzu/velero-plugin-for-aws#225 |
Beta Was this translation helpful? Give feedback.
@kaovilai: thanks for your input, but I was completely wrong with my question. Raw Base64 is only needed for minio cli and not applicable to Velero. The raw key is anyway mounted in the container, because during mount of the secret kubernetes decodes base64.
The issue above was caused by missing base64 encoding of the velero-plugin-for-aws, which is of course necessary within the HTTP-Header. I created a Pull-Request for this: vmware-tanzu/velero-plugin-for-aws#225