Skip to content

Commit 4f690e3

Browse files
fix(cdk): add S3 SSL enforcement and COG3 nag suppression for browser construct
1 parent af75ce0 commit 4f690e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cdk/src/constructs/agent-browser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class AgentBrowser extends Construct {
4545
this.screenshotBucket = new s3.Bucket(this, 'ScreenshotBucket', {
4646
encryption: s3.BucketEncryption.S3_MANAGED,
4747
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
48+
enforceSSL: true,
4849
removalPolicy: RemovalPolicy.DESTROY,
4950
autoDeleteObjects: true,
5051
lifecycleRules: [
@@ -174,6 +175,10 @@ export class AgentBrowser extends Construct {
174175
id: 'AwsSolutions-COG2',
175176
reason: 'Gateway default Cognito user pool uses M2M client credentials flow — MFA not applicable',
176177
},
178+
{
179+
id: 'AwsSolutions-COG3',
180+
reason: 'Gateway default Cognito user pool uses M2M client credentials flow — advanced security not required',
181+
},
177182
], true);
178183

179184
NagSuppressions.addResourceSuppressions(this.browser, [

0 commit comments

Comments
 (0)