Skip to content

Commit be0dcfd

Browse files
author
Bob Strahan
committed
fix: Add security scan suppressions and update workflow permissions
1 parent 930eec9 commit be0dcfd

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.github/workflows/developer-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
contents: read
2121
issues: read
2222
checks: write
23-
pull-requests: write
23+
# pull-requests: write - Not needed: PR comments are disabled (see line 115)
2424

2525
# Use Python 3.13 to match GitLab configuration
2626
container:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SPDX-License-Identifier: MIT-0
55

66
## [Unreleased]
77

8+
89
### Fixed
910

1011
## [0.4.1]

options/bedrockkb/template.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ Resources:
675675
#
676676
KnowledgeBaseServiceRole:
677677
Type: AWS::IAM::Role
678+
Metadata:
679+
cfn_nag:
680+
rules_to_suppress:
681+
- id: W11
682+
reason: "Role requires * resource access for Marketplace"
678683
Properties:
679684
AssumeRolePolicyDocument:
680685
Version: "2012-10-17"

template.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,6 +3621,21 @@ Resources:
36213621
# Lambda function for agent chat resolver
36223622
AgentChatResolverFunction:
36233623
Type: AWS::Serverless::Function
3624+
Metadata:
3625+
cfn_nag:
3626+
rules_to_suppress:
3627+
- id: W89
3628+
reason: "Function does not require VPC access as it only interacts with AWS services via APIs"
3629+
- id: W92
3630+
reason: "Function does not require reserved concurrency as it scales based on demand"
3631+
- id: W58
3632+
reason: "DLQ not required for AppSeync Resolver function"
3633+
- id: W11
3634+
reason: "Role requires * resource access for Marketplace, CloudWatch Metrics and Logs"
3635+
# checkov:skip=CKV_AWS_116: "DLQ not required for analytics processor as it's invoked asynchronously by request handler with error handling and job status tracking in DynamoDB"
3636+
# checkov:skip=CKV_AWS_117: "Function does not require VPC access as it only interacts with AWS services via APIs"
3637+
# checkov:skip=CKV_AWS_115: "Function does not require reserved concurrency as it scales based on demand"
3638+
# checkov:skip=CKV_AWS_173: "Environment variables do not contain sensitive data - only configuration values like feature flags and non-sensitive settings"
36243639
Properties:
36253640
PermissionsBoundary:
36263641
!If [
@@ -6708,6 +6723,8 @@ Resources:
67086723
reason: "Function does not require reserved concurrency as it scales based on demand"
67096724
- id: W12
67106725
reason: "Lambda requires CloudWatch logs permissions"
6726+
- id: W11
6727+
reason: "Role requires * resource access for Marketplace and CloudWatch Metrics and Logs"
67116728
# checkov:skip=CKV_AWS_116: "DLQ not required for AppSync resolver function"
67126729
# checkov:skip=CKV_AWS_117: "Function does not require VPC access as it only interacts with AWS services via APIs"
67136730
# checkov:skip=CKV_AWS_115: "Function does not require reserved concurrency as it scales based on demand"

0 commit comments

Comments
 (0)