Server Side Encryption with Object Storage (S3)?
Hi,
I was wondering if anyone else is having any issues with trying to upload files to object storage with server side encryption?
I tried following this guide:
https://www.linode.com/docs/guides/server-side-encryption/
I keep getting the following error:
botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutObject operation: Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key.
Uploading unencrypted files is working
1 Reply
Nevermind, it's working. I didn't need to base64 the encryption key. Seems like there's something wrong with terraform
https://www.terraform.io/docs/language/settings/backends/s3.html#sse_customer_key
EDIT:
Fixed by removing the trailing new line
openssl rand -hex 16 | tr -d "\n" | base64