Skip to content

Comments

feat(storage): add support for encryption enforcement configurations#8937

Open
thiyaguk09 wants to merge 2 commits intogoogleapis:mainfrom
thiyaguk09:feat/bucket-encryption-config
Open

feat(storage): add support for encryption enforcement configurations#8937
thiyaguk09 wants to merge 2 commits intogoogleapis:mainfrom
thiyaguk09:feat/bucket-encryption-config

Conversation

@thiyaguk09
Copy link
Contributor

This pull request enhances Google Cloud Storage bucket capabilities by introducing support for encryption enforcement configurations. It allows users to define and manage policies for Google-managed, customer-managed (KMS), and customer-supplied encryption keys, ensuring that objects stored in a bucket adhere to specified encryption requirements. The changes include updates to the API definitions, client libraries, and comprehensive test coverage to validate the new functionality.

Highlights

  • New Encryption Enforcement Configurations: Added metadata support for customerManagedEncryptionEnforcementConfig and customerSuppliedEncryptionEnforcementConfig to the Bucket resource, allowing for stricter control over encryption policies.
  • Unit Test Coverage: Included unit tests in BucketTest and StorageClientTest to verify the correct mapping and handling of the new encryption enforcement metadata.
  • System Test Validation: Implemented system tests in KmsTest to validate FullyRestricted enforcement and ensure proper 412 error handling when encryption policies are violated.

Adds metadata support for `customerManagedEncryptionEnforcementConfig`
and `customerSuppliedEncryptionEnforcementConfig` to the Bucket
resource.

Includes:
- Unit tests in BucketTest and StorageClientTest for metadata mapping.
- System tests in KmsTest verifying FullyRestricted enforcement and 412
error handling.
Improving the robustness of the tests
@thiyaguk09 thiyaguk09 requested review from a team as code owners February 20, 2026 17:42
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant