Skip to content

Commit ce0f2d1

Browse files
committed
Merge branch 'fix/security-high-priority-issues' into 'develop'
fix: resolve 23 high priority security issues See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!333
2 parents 22f3077 + 395d1a3 commit ce0f2d1

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

scripts/sdlc/cfn/codepipeline-s3.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ Resources:
110110
reason: "This is a temporary deployment artifact bucket; access logging not required"
111111
- id: W41
112112
reason: "Using default SSE encryption which is applied automatically by S3"
113+
security-matrix:
114+
rules_to_suppress:
115+
- id: S3-001
116+
reason: "This is a temporary deployment artifact bucket; access logging not required"
113117
Properties:
114118
VersioningConfiguration:
115119
Status: Enabled

scripts/sdlc/cfn/sdlc-iam-role.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ Resources:
9191
reason: "PowerUserAccess is required for this SDLC role to perform necessary deployment operations"
9292
- id: W28
9393
reason: "Explicit name required for cross-stack references and predictable resource naming"
94+
# checkov:skip=CKV_AWS_62:PowerUserAccess is required for SDLC pipeline deployment operations
95+
security-matrix:
96+
rules_to_suppress:
97+
- id: EC2-002
98+
reason: "PowerUserAccess is required for SDLC pipeline deployment operations"
9499
Properties:
95100
RoleName: !Ref BuilderRoleName
96101
Description: 'Role for application builders with PowerUser and Limited IAM access'

template.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,15 @@ Resources:
973973
DependsOn:
974974
- IsStacknameLengthOK
975975
Type: AWS::KMS::Key
976+
Metadata:
977+
security-matrix:
978+
rules_to_suppress:
979+
- id: IAM-005
980+
reason: "No cross-account access - only same account root and AWS services"
981+
- id: KMS-007
982+
reason: "KMS monitoring not required for this IDP solution - comprehensive CloudWatch monitoring already in place"
983+
- id: KMS-002
984+
reason: "kms:* permission for account root is standard pattern for administrative access to KMS keys"
976985
Properties:
977986
Description: KMS key for DynamoDB encryption
978987
EnableKeyRotation: true
@@ -1053,6 +1062,10 @@ Resources:
10531062
rules_to_suppress:
10541063
- id: W35
10551064
reason: "This is the logging destination bucket - does not require its own access logging"
1065+
security-matrix:
1066+
rules_to_suppress:
1067+
- id: S3-001
1068+
reason: "This is the logging destination bucket - does not require its own access logging"
10561069
# checkov:skip=CKV_AWS_18: "This is the logging destination bucket - does not require its own access logging"
10571070
DeletionPolicy: Retain
10581071
Properties:
@@ -1083,6 +1096,11 @@ Resources:
10831096

10841097
LoggingBucketPolicy:
10851098
Type: AWS::S3::BucketPolicy
1099+
Metadata:
1100+
security-matrix:
1101+
rules_to_suppress:
1102+
- id: IAM-005
1103+
reason: "Already has aws:SourceAccount condition for confused deputy prevention"
10861104
Properties:
10871105
Bucket: !Ref LoggingBucket
10881106
PolicyDocument:
@@ -1767,6 +1785,7 @@ Resources:
17671785

17681786
DocumentSectionsCrawlerSecurityConfigurationV2:
17691787
Type: AWS::Glue::SecurityConfiguration
1788+
# checkov:skip=CKV_AWS_99:Encryption is already enabled with SSE-KMS
17701789
Properties:
17711790
Name: !Sub "${AWS::StackName}-document-sections-crawler-security-config-v2"
17721791
EncryptionConfiguration:
@@ -6345,6 +6364,7 @@ Resources:
63456364
Comment: !Sub "Web app cloudfront distribution ${AWS::StackName}"
63466365
ViewerCertificate:
63476366
CloudFrontDefaultCertificate: true
6367+
MinimumProtocolVersion: TLSv1.2_2021
63486368
Logging:
63496369
Bucket: !Sub "${LoggingBucket}.s3.${AWS::URLSuffix}"
63506370
Prefix: "cloudfront-logs"

0 commit comments

Comments
 (0)