Skip to content

feat: support S3 SSE-KMS#2770

Open
jpadilla wants to merge 2 commits into
mozilla:mainfrom
jpadilla:feat/s3-sse-kms
Open

feat: support S3 SSE-KMS#2770
jpadilla wants to merge 2 commits into
mozilla:mainfrom
jpadilla:feat/s3-sse-kms

Conversation

@jpadilla

Copy link
Copy Markdown

Add two S3 config options alongside the existing SSE-S3 toggle:

  • server_side_encryption_aws_kms (SCCACHE_S3_SERVER_SIDE_ENCRYPTION_AWS_KMS) enables SSE-KMS with the AWS-managed key (aws/s3).
  • server_side_encryption_kms_key_id (SCCACHE_S3_SERVER_SIDE_ENCRYPTION_KMS_KEY_ID) enables SSE-KMS with a customer-managed KMS key.

Resolution precedence in the S3 builder: customer-managed KMS key >
AWS-managed KMS > SSE-S3. Existing server_side_encryption configs are unchanged.

@jpadilla
jpadilla force-pushed the feat/s3-sse-kms branch 2 times, most recently from 9e7ac56 to 57e9ccd Compare July 16, 2026 22:26
@jpadilla jpadilla changed the title feat: support S3 SSE-KMS with AWS-managed and customer-managed keys feat: support S3 SSE-KMS Jul 16, 2026
@codecov-commenter

codecov-commenter commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.17647% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.88%. Comparing base (4fcb161) to head (57e9ccd).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/cache/s3.rs 79.16% 5 Missing ⚠️
src/config.rs 97.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2770      +/-   ##
==========================================
- Coverage   74.18%   70.88%   -3.31%     
==========================================
  Files          71       71              
  Lines       40505    40306     -199     
==========================================
- Hits        30049    28571    -1478     
- Misses      10456    11735    +1279     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre

Copy link
Copy Markdown
Collaborator

please run rustfmt

Add two S3 config options alongside the existing SSE-S3 toggle:
- server_side_encryption_aws_kms (SCCACHE_S3_SERVER_SIDE_ENCRYPTION_AWS_KMS)
  enables SSE-KMS with the AWS-managed key (aws/s3).
- server_side_encryption_kms_key_id (SCCACHE_S3_SERVER_SIDE_ENCRYPTION_KMS_KEY_ID)
  enables SSE-KMS with a customer-managed KMS key.

Resolution precedence in the S3 builder: customer-managed KMS key >
AWS-managed KMS > SSE-S3. Existing server_side_encryption configs are
unchanged.

Signed-off-by: José Padilla <jose.padilla@okta.com>
@jpadilla

Copy link
Copy Markdown
Author

@sylvestre should be ready to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants