nextcloud/tests/lib/Files/ObjectStore
Stephen Cuppett cdaeed02b6 feat(objectstore): Add AWS SSE-KMS encryption support for S3 storage
Add support for Server-Side Encryption with AWS Key Management Service
(SSE-KMS) for S3 object storage. This allows Nextcloud to encrypt data
at rest in S3 using AWS-managed keys.

Key features:
- New config options: sse_kms_enabled and sse_kms_key_id
- Backward compatible with existing SSE-C (customer-provided keys)
- SSE-C takes precedence when both SSE-C and SSE-KMS are configured

Implementation details:
- Added getServerSideEncryptionParameters() method to centralize
  encryption parameter logic for both SSE-C and SSE-KMS
- Updated multipart uploads to use unified encryption parameters
- Added comprehensive PHPUnit tests for SSE-KMS scenarios
- Tested with AWS bucket and KMS keys in us-east-1 region

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Stephen Cuppett <steve@cuppett.com>
2026-04-16 13:21:53 -04:00
..
AzureTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
FailDeleteObjectStore.php perf(s3): Expose pre-signed urls for S3 2025-12-09 11:21:35 +01:00
FailWriteObjectStore.php perf(s3): Expose pre-signed urls for S3 2025-12-09 11:21:35 +01:00
LocalTest.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
MapperTest.php fix: make bucket mapper work with new multi-object-store config 2025-08-28 17:51:25 +02:00
ObjectStoreScannerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
ObjectStoreStorageOverwrite.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ObjectStoreStoragesDifferentBucketTest.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
ObjectStoreStoragesSameBucketTest.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
ObjectStoreStorageTest.php fix: make objectstore copy consistent with changed local storage behavior 2026-03-10 16:07:38 +01:00
ObjectStoreTestCase.php fix(tests): Ignore expected warning for s3 tests 2025-09-27 13:05:35 +02:00
PrimaryObjectStoreConfigTest.php refactor(preview): Cleanup the implementation of the new preview backend 2025-10-06 13:37:15 +02:00
S3SSEKMSTest.php feat(objectstore): Add AWS SSE-KMS encryption support for S3 storage 2026-04-16 13:21:53 -04:00
S3Test.php chore(rector): Run rector on apps, core and tests directory 2026-02-06 13:23:23 +01:00
SwiftTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00