@mavogel/awscdk-rootmail 0.0.214 → 0.0.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +30 -12
- package/API.md +14 -0
- package/CONTRIBUTING.md +3 -3
- package/README.md +3 -3
- package/integ-tests/README.md +11 -4
- package/integ-tests/common.ts +2 -0
- package/integ-tests/create-e2e-cfn-stack.bash +35 -0
- package/integ-tests/delete-e2e-cfn-stack.bash +26 -0
- package/integ-tests/integ.rootmail-custom-santa.ts +1 -2
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/RootmailIntegTestStack.assets.json +8 -8
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/RootmailIntegTestStack.template.json +4 -4
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/SetupTestIntegStackDefaultTestDeployAssert6EB6FF77.assets.json +2 -2
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/SetupTestIntegStackDefaultTestDeployAssert6EB6FF77.template.json +2 -2
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/{asset.0649b5bfaa322d6bd173d2daef3177389cf0778b556b300ac6bf451704cc3a49 → asset.97724f55c990db7c62d85b80d4afb032e60011490da173e3551e6a131013b79d}/index.js +17458 -464
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/{asset.f9b17c134d24cf60e1d26c033b5f4f247b759149619ac0aac341b950a10ccf14 → asset.f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad}/index.js +2 -0
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.rootmail-custom-santa.ts.snapshot/tree.json +3 -3
- package/integ-tests/integ.rootmail.ts +1 -2
- package/integ-tests/integ.rootmail.ts.snapshot/RootmailIntegTestStack.assets.json +8 -8
- package/integ-tests/integ.rootmail.ts.snapshot/RootmailIntegTestStack.template.json +4 -4
- package/integ-tests/integ.rootmail.ts.snapshot/SetupTestIntegStackDefaultTestDeployAssert6EB6FF77.assets.json +2 -2
- package/integ-tests/integ.rootmail.ts.snapshot/SetupTestIntegStackDefaultTestDeployAssert6EB6FF77.template.json +3 -3
- package/integ-tests/integ.rootmail.ts.snapshot/{asset.de67316e819b929cc1aa19838de373be5c9ede7a11e8132fabd28dbc730a92fd → asset.3fe096136c1d1292627baeb9b860b3206032deebb5a03ea407d7d04833a222d7}/index.js +17489 -474
- package/integ-tests/integ.rootmail.ts.snapshot/{asset.f9b17c134d24cf60e1d26c033b5f4f247b759149619ac0aac341b950a10ccf14 → asset.f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad}/index.js +2 -0
- package/integ-tests/integ.rootmail.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.rootmail.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.rootmail.ts.snapshot/tree.json +3 -3
- package/lib/rootmail.d.ts +7 -1
- package/lib/rootmail.js +4 -2
- package/lib/ses-receive.js +1 -1
- package/lib/ses-receive.ops-santa-handler.js +32 -11
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +2 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +13 -13
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +19 -19
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +31 -30
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +12 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +10 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/node_modules/axios/CHANGELOG.md +38 -0
- package/node_modules/axios/README.md +20 -8
- package/node_modules/axios/dist/axios.js +34 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +40 -71
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +40 -71
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +45 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +38 -29
- package/node_modules/axios/index.d.ts +75 -561
- package/node_modules/axios/lib/adapters/http.js +4 -4
- package/node_modules/axios/lib/core/Axios.js +7 -2
- package/node_modules/axios/lib/core/mergeConfig.js +5 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/package.json +3 -3
- package/node_modules/cdk-nag/.jsii +2 -2
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/package.json +1 -1
- package/package.json +6 -6
|
@@ -54,6 +54,8 @@ async function handler(event) {
|
|
|
54
54
|
[ATTR_DKIM_TOKENS]: dkimTokens
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
+
// TODO check if delete should do nothing: https://github.com/superwerker/superwerker/blob/main/templates/rootmail.yaml#L170
|
|
58
|
+
// we store in Parameter Store as well
|
|
57
59
|
case "Delete":
|
|
58
60
|
console.log(`Deleting Domain identity for domain '${domain}' with PhysicalResourceId '${event.PhysicalResourceId}'`);
|
|
59
61
|
const deleteResponse = await ses.deleteIdentity({ Identity: domain });
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"validateOnSynth": false,
|
|
18
18
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
19
19
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
20
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
20
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c8ec203309c2c203c70b59d98084241414aa0642a0880d346858b3467db17aa9.json",
|
|
21
21
|
"requiresBootstrapStackVersion": 6,
|
|
22
22
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
23
23
|
"additionalDependencies": [
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
"validateOnSynth": false,
|
|
659
659
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
660
660
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
661
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
661
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/609212f0e28dcfd78dd3dab36ef82ce3dcc3d5d2b06cb4493bcc46552a5b0811.json",
|
|
662
662
|
"requiresBootstrapStackVersion": 6,
|
|
663
663
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
664
664
|
"additionalDependencies": [
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"s3Bucket": {
|
|
145
145
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
146
146
|
},
|
|
147
|
-
"s3Key": "
|
|
147
|
+
"s3Key": "97724f55c990db7c62d85b80d4afb032e60011490da173e3551e6a131013b79d.zip"
|
|
148
148
|
},
|
|
149
149
|
"environment": {
|
|
150
150
|
"variables": {
|
|
@@ -1348,7 +1348,7 @@
|
|
|
1348
1348
|
"s3Bucket": {
|
|
1349
1349
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
1350
1350
|
},
|
|
1351
|
-
"s3Key": "
|
|
1351
|
+
"s3Key": "f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad.zip"
|
|
1352
1352
|
},
|
|
1353
1353
|
"environment": {
|
|
1354
1354
|
"variables": {
|
|
@@ -2007,7 +2007,7 @@
|
|
|
2007
2007
|
"route53:ListResourceRecordSets"
|
|
2008
2008
|
],
|
|
2009
2009
|
"Effect": "Allow",
|
|
2010
|
-
"Resource": "arn:aws:route53:::hostedzone/
|
|
2010
|
+
"Resource": "arn:aws:route53:::hostedzone/Z01336592122MNIWKOZSV"
|
|
2011
2011
|
}
|
|
2012
2012
|
],
|
|
2013
2013
|
"Version": "2012-10-17"
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from 'aws-cdk-lib';
|
|
12
12
|
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
|
|
13
13
|
import { Rootmail } from '../src/rootmail';
|
|
14
|
+
import { testDomain, hostedZoneId } from './common';
|
|
14
15
|
// CDK App for Integration Tests
|
|
15
16
|
const app = new App();
|
|
16
17
|
// Stack under test
|
|
@@ -19,8 +20,6 @@ const stackUnderTest = new Stack(app, stackUnderTestName, {
|
|
|
19
20
|
description: "This stack includes the application's resources for integration testing.",
|
|
20
21
|
});
|
|
21
22
|
|
|
22
|
-
const testDomain = 'rootmail-test.mavogel.xyz';
|
|
23
|
-
const hostedZoneId = 'Z066250529JROZU7IIY3Q';
|
|
24
23
|
const randomTestId = 'b647df97';
|
|
25
24
|
const testSubdomain = `${randomTestId}-${Stack.of(stackUnderTest).region}`;
|
|
26
25
|
const fullDomain = `${testSubdomain}.${testDomain}`;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "33.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad",
|
|
7
7
|
"packaging": "zip"
|
|
8
8
|
},
|
|
9
9
|
"destinations": {
|
|
10
10
|
"current_account-current_region": {
|
|
11
11
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
-
"objectKey": "
|
|
12
|
+
"objectKey": "f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad.zip",
|
|
13
13
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
"
|
|
95
|
+
"3fe096136c1d1292627baeb9b860b3206032deebb5a03ea407d7d04833a222d7": {
|
|
96
96
|
"source": {
|
|
97
|
-
"path": "asset.
|
|
97
|
+
"path": "asset.3fe096136c1d1292627baeb9b860b3206032deebb5a03ea407d7d04833a222d7",
|
|
98
98
|
"packaging": "zip"
|
|
99
99
|
},
|
|
100
100
|
"destinations": {
|
|
101
101
|
"current_account-current_region": {
|
|
102
102
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
103
|
-
"objectKey": "
|
|
103
|
+
"objectKey": "3fe096136c1d1292627baeb9b860b3206032deebb5a03ea407d7d04833a222d7.zip",
|
|
104
104
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
"
|
|
160
|
+
"0c6695535d361eb1b54f0d030f4fe10d11036cab6772ade6d1a74e5662d811fc": {
|
|
161
161
|
"source": {
|
|
162
162
|
"path": "RootmailIntegTestStack.template.json",
|
|
163
163
|
"packaging": "file"
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"destinations": {
|
|
166
166
|
"current_account-current_region": {
|
|
167
167
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
168
|
-
"objectKey": "
|
|
168
|
+
"objectKey": "0c6695535d361eb1b54f0d030f4fe10d11036cab6772ade6d1a74e5662d811fc.json",
|
|
169
169
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
]
|
|
415
415
|
]
|
|
416
416
|
},
|
|
417
|
-
"ParentHostedZoneId": "
|
|
417
|
+
"ParentHostedZoneId": "Z01336592122MNIWKOZSV",
|
|
418
418
|
"HostedZoneParameterName": {
|
|
419
419
|
"Ref": "testRootmailHostedZoneSSMParameter574DA41C"
|
|
420
420
|
},
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
"S3Bucket": {
|
|
560
560
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
561
561
|
},
|
|
562
|
-
"S3Key": "
|
|
562
|
+
"S3Key": "3fe096136c1d1292627baeb9b860b3206032deebb5a03ea407d7d04833a222d7.zip"
|
|
563
563
|
},
|
|
564
564
|
"Environment": {
|
|
565
565
|
"Variables": {
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
"S3Bucket": {
|
|
757
757
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
758
758
|
},
|
|
759
|
-
"S3Key": "
|
|
759
|
+
"S3Key": "f75274dd7677b6ef41f29d2dfc2c885b4f4e069d3fb8e67636bd89efd3f0fcad.zip"
|
|
760
760
|
},
|
|
761
761
|
"Environment": {
|
|
762
762
|
"Variables": {
|
|
@@ -1398,7 +1398,7 @@
|
|
|
1398
1398
|
"route53:ListResourceRecordSets"
|
|
1399
1399
|
],
|
|
1400
1400
|
"Effect": "Allow",
|
|
1401
|
-
"Resource": "arn:aws:route53:::hostedzone/
|
|
1401
|
+
"Resource": "arn:aws:route53:::hostedzone/Z01336592122MNIWKOZSV"
|
|
1402
1402
|
}
|
|
1403
1403
|
],
|
|
1404
1404
|
"Version": "2012-10-17"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"da70fb6c6f4ab07690ab5aad465c70e2b8caca384237a5407a691c1e9f2aff78": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "SetupTestIntegStackDefaultTestDeployAssert6EB6FF77.template.json",
|
|
20
20
|
"packaging": "file"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"destinations": {
|
|
23
23
|
"current_account-current_region": {
|
|
24
24
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
25
|
-
"objectKey": "
|
|
25
|
+
"objectKey": "da70fb6c6f4ab07690ab5aad465c70e2b8caca384237a5407a691c1e9f2aff78.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"flattenResponse": "false",
|
|
48
|
-
"salt": "
|
|
48
|
+
"salt": "1732471230263"
|
|
49
49
|
},
|
|
50
50
|
"DependsOn": [
|
|
51
51
|
"AwsApiCallSSMgetParameterd4c847c906a9dd9484fbf0d62db16d9b"
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
"flattenResponse": "false",
|
|
256
|
-
"salt": "
|
|
256
|
+
"salt": "1732471230263"
|
|
257
257
|
},
|
|
258
258
|
"DependsOn": [
|
|
259
259
|
"LambdaInvoke683c845d9bea165a967a76b79d7da1c1",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"Name": "\"/rootmail/domain_name_servers\""
|
|
298
298
|
},
|
|
299
299
|
"flattenResponse": "false",
|
|
300
|
-
"salt": "
|
|
300
|
+
"salt": "1732471230263"
|
|
301
301
|
},
|
|
302
302
|
"UpdateReplacePolicy": "Delete",
|
|
303
303
|
"DeletionPolicy": "Delete"
|