Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

(aws-s3): Add blockedEncryptionTypes field to L2 s3.Bucket construct #36988

Copy link
Copy link

Description

@ysthakur
Issue body actions

Describe the feature

S3 recently added a new BlockedEncryptionTypes field to server-side encryption rules (docs). This field allows users to explicitly block or unblock SSE-C encryption on their bucket.

It would be good to add a corresponding blockedEncryptionTypes to the L2 Bucket construct so that one can block or unblock SSE-C when creating a bucket.

Use Case

I have buckets in which I want SSE-C to be blocked and others in which I want SSE-C to be unblocked. Currently, I have to modify SSE-C blocking after CDK creates my buckets.

This will become more important after SSE-C starts being blocked by default in April (blog post), since I won't be able to upload SSE-C objects to new buckets without unblocking SSE-C first.

Proposed Solution

The s3.Bucket construct should add a new blockedEncryptionTypes field that can be set to either ["NONE"] or ["SSE-C"]. When creating a bucket, if this field is set, a PutBucketEncryption should be sent with the BlockedEncryptionTypes field set to the value of this field (along with whatever default server-side encryption configuration has been set through the encryption, encryptionKey, and bucketKeyEnabled fields).

If this field is not set, any PutBucketEncryption request sent while creating the bucket should not have a BlockedEncryptionTypes field (i.e., CDK shouldn't be choosing a default value for this field).

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.x

AWS CDK CLI version

2.x

Environment details (OS name and version, etc.)

all

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-s3Related to Amazon S3Related to Amazon S3effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.