How to determine if an object is encrypted with a "regular" S3-SSE KMS key, or an S3 Bucket Key with S3 Inventory?

0

I have a very large bucket with many files. The bucket contains a mix of mostly "old" files encrypted with a non bucket key KMS key, and some new files that are using the new BucketKey.

I do not want to call a HEAD operation on all of them to determine if ServerSideEncryptionConfiguration contains BucketyKeyEnabled for performance and cost reasons. However, I can't just check the bucket level settings, as the bucket contains a mix of encrypted objects.

Documentation for S3 Inventory indicates that Encryption Status will not contain this info:

Encryption status – Set to SSE-S3, SSE-C, SSE-KMS, or NOT-SSE. The server-side encryption status for SSE-S3, SSE-KMS, and SSE with customer-provided keys (SSE-C).

I believe both old and new files will just return SSE-KMS.

Is there a way to access this info either via S3 Inventory (through yet undocumented behavior/config), or via another efficient method?

I do not want to just use a "all files before the date the Bucket Key was turned on" method, as while that may work for this specific use case, I need a solution with a broader scope for the future.

AWS
질문됨 3년 전1409회 조회
1개 답변
0
수락된 답변

As of today this information is not available in inventory report and you will have to use S3 HEAD api calls to generate bucket key status on an object. However, we are aware of this feedback and are working on an update to release Bucket Key status in the inventory report

AWS
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠