Skip to content

Commit af1b8d2

Browse files
committed
Address SonarQube warnings
1 parent 3de8742 commit af1b8d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ export class BackendStack extends cdk.Stack {
247247
});
248248

249249
// Add a listener to the NLB
250+
// Security note: This NLB is internal-only within a private subnet and not internet-facing.
251+
// External traffic is secured via API Gateway's HTTPS endpoints, so unencrypted internal
252+
// communication within the VPC's private network boundary is acceptable here.
250253
const listener = nlb.addListener(`${appName}Listener-${props.environment}`, {
251254
port: 80,
252255
protocol: elbv2.Protocol.TCP,
@@ -344,7 +347,7 @@ export class BackendStack extends cdk.Stack {
344347
}),
345348
{
346349
authorizationType: apigateway.AuthorizationType.NONE,
347-
}
350+
},
348351
);
349352

350353
// Add execution role policy to allow API Gateway to access VPC resources

0 commit comments

Comments
 (0)