Skip to content

feat(cloudfront): add sigv4a signing protocol for origin access control - #38629

Open
piotrekwitkowski wants to merge 1 commit into
aws:mainfrom
piotrekwitkowski:feat/cloudfront-oac-sigv4a
Open

feat(cloudfront): add sigv4a signing protocol for origin access control#38629
piotrekwitkowski wants to merge 1 commit into
aws:mainfrom
piotrekwitkowski:feat/cloudfront-oac-sigv4a

Conversation

@piotrekwitkowski

@piotrekwitkowski piotrekwitkowski commented Aug 21, 2026

Copy link
Copy Markdown

Issue # (if applicable)

Part of #38627.

Reason for this change

CloudFront added sigv4a as an origin access control signing protocol, which is needed to sign requests to Amazon S3 Multi-Region Access Point origins. CDK's SigningProtocol enum only has sigv4, so the configuration cannot be expressed.

Description of changes

  • Adds SigningProtocol.SIGV4A.
  • Adds Signing.SIGV4A_ALWAYS, the combination documented for S3 Multi-Region Access Point origins. Other signing behaviors remain available through the public Signing constructor.
  • Documents setting up an OAC for an S3 Multi-Region Access Point origin in the aws-cloudfront-origins README.

S3MrapOrigin is intentionally left out of this PR; see #38627.

Describe any new or updated permissions being added

None.

Description of how you validated changes

Unit tests for both the new static and the Signing constructor with sigv4a. Full aws-cloudfront and aws-cloudfront-origins suites pass (455 tests), and Rosetta compiles the new README example.

The integration test has been deployed and passed in us-east-1:

SUCCESS    integ.origin-access-control-sigv4a 104.388s
Tests:    1 passed, 1 total

It creates a real AWS::CloudFront::OriginAccessControl with SigningProtocol: sigv4a and asserts via getOriginAccessControlConfig that the API returns sigv4a / always / s3. The committed snapshot is unchanged.

The integration snapshot contains non-failing rule F3031 because @aws/cloudformation-validate 1.7.0 bundles an older offline schema that permits only sigv4. The live CloudFormation schema now permits sigv4a; the report conclusion is success, and the deployment passed.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions Bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 labels Aug 21, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team August 21, 2026 19:10
@piotrekwitkowski
piotrekwitkowski marked this pull request as ready for review August 27, 2026 08:35
@piotrekwitkowski piotrekwitkowski changed the title feat(cloudfront): support the sigv4a signing protocol for origin access control feat(cloudfront): add sigv4a signing protocol for origin access control Aug 27, 2026
Adds SigningProtocol.SIGV4A and Signing.SIGV4A_ALWAYS, the combination
documented for Amazon S3 Multi-Region Access Point origins. Other signing
behaviors remain available through the public Signing constructor.

Part of aws#38627.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant