- Newest
- Most votes
- Most comments
I understand your urgent situation with accessing older video files encrypted using Server-Side Encryption with Customer-Provided Keys (SSE-C) in your S3 bucket. Unfortunately, I have to inform you that there is no way to recover or re-encrypt objects that were encrypted with SSE-C if the original encryption keys are not available.
When using SSE-C, Amazon S3 does not store the encryption keys. Instead, it only stores a salted Hash-based Message Authentication Code (HMAC) value of the encryption key for validation purposes. This means that without the original encryption key, the data cannot be decrypted, even by AWS.
There are no historical logs or metadata that can help identify the keys used during encryption. The security model of SSE-C is designed so that the customer has full control and responsibility for the encryption keys.
Unfortunately, there is no workaround provided by AWS to regain access to these files if the encryption keys are lost. The data in these objects is effectively lost without the original encryption keys.
Given the impact on your live platform and the challenge of reuploading files, here are some suggestions for moving forward:
-
Continue working with the third-party vendor to see if they have any records of the encryption keys used during the upload process.
-
If possible, try to locate any backups or copies of the original files that might exist before they were encrypted and uploaded to S3.
-
For future uploads, consider using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) instead of SSE-C. These options provide strong encryption while allowing Amazon to manage the keys, reducing the risk of key loss.
-
Implement a robust key management system for any future use of SSE-C to prevent similar issues.
-
Review and update your data management policies to ensure proper backup and key management practices are in place.
I apologize that I couldn't provide a more positive solution to your current situation. This underscores the critical importance of securely managing encryption keys when using SSE-C with Amazon S3.
Sources
Using server-side encryption with customer-provided keys (SSE-C) - Amazon Simple Storage Service
Specifying server-side encryption with Amazon S3 managed keys (SSE-S3) - Amazon Simple Storage Service
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated a year ago
