Skip to content

Commit d7aa196

Browse files
authored
feat(signer): Notation-OCI-SHA384-ECDSA platform (#28612)
Adds support for the `Notation-OCI-SHA384-ECDSA` signing profile platform. Also, refactors the `Platform` class to an enum-like class to allow custom platforms (and prevent blocking users if added platforms are missing on the `enum` declaration). Closes #28580. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 0f38b6e commit d7aa196

11 files changed

+491
-20
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/aws-cdk-signer-signing-profile.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"Resources": {
3+
"SigningProfileLambda4B150CCB": {
4+
"Type": "AWS::Signer::SigningProfile",
5+
"Properties": {
6+
"PlatformId": "AWSLambda-SHA384-ECDSA",
7+
"SignatureValidityPeriod": {
8+
"Type": "MONTHS",
9+
"Value": 135
10+
}
11+
}
12+
},
13+
"SigningProfileOCI1EA741C3": {
14+
"Type": "AWS::Signer::SigningProfile",
15+
"Properties": {
16+
"PlatformId": "Notation-OCI-SHA384-ECDSA",
17+
"SignatureValidityPeriod": {
18+
"Type": "DAYS",
19+
"Value": 60
20+
}
21+
}
22+
}
23+
},
24+
"Parameters": {
25+
"BootstrapVersion": {
26+
"Type": "AWS::SSM::Parameter::Value<String>",
27+
"Default": "/cdk-bootstrap/hnb659fds/version",
28+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
29+
}
30+
},
31+
"Rules": {
32+
"CheckBootstrapVersion": {
33+
"Assertions": [
34+
{
35+
"Assert": {
36+
"Fn::Not": [
37+
{
38+
"Fn::Contains": [
39+
[
40+
"1",
41+
"2",
42+
"3",
43+
"4",
44+
"5"
45+
],
46+
{
47+
"Ref": "BootstrapVersion"
48+
}
49+
]
50+
}
51+
]
52+
},
53+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
54+
}
55+
]
56+
}
57+
}
58+
}

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/cdkintegsignersigningprofileDefaultTestDeployAssertE50BA0E5.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/cdkintegsignersigningprofileDefaultTestDeployAssertE50BA0E5.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.js.snapshot/manifest.json

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)