Skip to content

Unable to Access S3 Videos Encrypted with SSE-C – Request Assistance

0

Hello AWS Community,

I’m facing an urgent issue with accessing older video files stored in an S3 bucket on my platform. These videos were uploaded using a third-party integration, and it appears they were encrypted with Server-Side Encryption with Customer-Provided Keys (SSE-C). Unfortunately, the encryption keys are no longer available, making these files inaccessible.

Details of the Issue:

  1. The bucket is configured with default encryption SSE-S3 for new uploads, and all recently uploaded files are accessible without any issues.
  2. Older files, however, are returning errors when accessed:

Error message: You don't have permission to get the server-side encryption for object "<file-key>" You'll need the s3:getObject permission to edit this object's server-side encryption from the S3 console.

When trying to view additional checksums or metadata for these files, the S3 console reports: Object encrypted with SSE-C. You cannot use the S3 console to view the additional checksums of the objects encrypted with customer-provided encryption keys (SSE-C).

  1. I am logged in as the root user, and the current bucket policy is configured to allow public access for s3:GetObject.

Actions Taken:

  • I have tried accessing the affected objects via the AWS CLI (head-object and get-object commands), but these operations fail due to the missing SSE-C keys.
  • I’ve reviewed the third-party integration, which likely caused the files to be encrypted with SSE-C during the upload process.
  • Contacted the third-party vendor for clarification, but no resolution yet.

Request for Assistance:

  1. Is there any way to recover or re-encrypt objects encrypted with SSE-C if the original keys are not available?
  2. Are there historical logs or metadata that might help identify the keys used during encryption?
  3. Can AWS provide any other workaround to regain access to these files?
  4. This issue affects a live platform with many users, and reuploading the files would be a significant challenge. Any guidance to resolve this without data loss would be immensely appreciated.

Thank you for your support!

Best regards, George

asked 2 years ago353 views

1 Answer
0
Accepted Answer

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:

  1. Continue working with the third-party vendor to see if they have any records of the encryption keys used during the upload process.

  2. If possible, try to locate any backups or copies of the original files that might exist before they were encrypted and uploaded to S3.

  3. 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.

  4. Implement a robust key management system for any future use of SSE-C to prevent similar issues.

  5. 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

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.