Dhivya G Associate Software Engineer | |
Email: dhivya.g@zybisys.com
|
Hi Arnaud,Thanks for your support!I am currently integrating Ceph RADOS Gateway (RGW) with HashiCorp Vault for SSE-S3 encryption and using js to upload objects to an encrypted bucket. I have configured the necessary parameters in my request, but I am encountering an "Invalid Request" error during the upload process.Attachments:
- Screenshot of the code and error logs for reference.
I appreciate any guidance from the community to resolve this issue. Looking forward to your insights
Thanks & Regards,
Dhivya G|Associate Software Engineer
Ph No: (+91) 9894944910
email: dhivya.g@zybisys.com
Zybisys Consulting LLP | Srinivasa Tower' No.29, 39th E Cross, 4th T Block, Jayanagar , Bangalore India - 560041
zybisys.com---- On Fri, 28 Feb 2025 05:03:50 +0530 Arnaud Lefebvre <arnaud.lefebvre@clever-cloud.com> wrote ---Hello,
I've been working on having SSE-S3 work too in the past few days with a v18 cluster (SSE-S3 is only available starting v17 IIRC).
First thing to check are the radosgw logs. Don't hesitate to increase them with `debug rgw 20/20` if possible, you'll see the error and vault interactions.
Then, you need to configure the radosgw properly. I had a bit of a hard time to figure it out from the docs, but here's my test configuration:
```
rgw_crypt_s3_kms_backend = vault
rgw_crypt_sse_s3_vault_secret_engine = transit
rgw_crypt_sse_s3_vault_auth = token
rgw_crypt_sse_s3_vault_token_file = /run/.rgw-vault-token
rgw_crypt_sse_s3_vault_addr = http://172.17.0.1:8200
rgw_crypt_sse_s3_vault_prefix = /v1/transit/
rgw_crypt_sse_s3_vault_verify_ssl = false
rgw_crypt_vault_secret_engine = kv
rgw_crypt_vault_auth = token
rgw_crypt_vault_token_file = /run/.rgw-vault-token
rgw_crypt_vault_addr = http://172.17.0.1:8200
rgw_crypt_vault_prefix = /v1/secret/data/
rgw_crypt_vault_verify_ssl = false
```
The sse_s3 configuration keys are the ones used for SSE-S3 while the other (crypt_vault) are used only for SSE-KMS (if I understood everything well).
From there and once I used the PutBucketEncryption API to use SSE-S3 as default, everything worked fine.
If that still doesn't work on your end, then I guess you'll need to share some logs / errors or request output!
Good hacking!