This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Description
Hello!
Does Paperclip support server-side encryption using AWS' Key Management Service?
I was hoping it would be possible to set server_side_encryption: 'aws:kms' like so, as described in the aws-sdk docs:
has_attached_file :discharge_papers,
s3_server_side_encryption: 'aws:kms',
ssekms_key_id: ENV['AWS_KMS_KEY_ID']
But I'm getting Aws::Errors::MissingCredentialsErrors despite my credentials being correct (and working without the server_side_encryption option set, or when set to aes256). Note that it also fails when set to aws:kms but without specifying an ssekms_key_id, which is necessary to use customer-generated encryption keys.
Looks like it may be possible based on this comment #1730 (comment) but nothing in the docs so far.
Thank you!