Skip to content

Commit

Permalink
fix(forwarder): add parameter validation for source bucket names (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jta committed Jun 7, 2024
1 parent b07d7a4 commit b3c7acf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/forwarder/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Parameters:
files copied to Filedrop, you must also subscribe S3 Bucket Notifications
to the forwarder.
Default: ''
AllowedPattern: "^[a-z0-9-.]*(\\*)?$"
SourceTopicArns:
Type: CommaDelimitedList
Description: >-
Expand Down
1 change: 1 addition & 0 deletions apps/stack/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Parameters:
Description: >-
A list of bucket names which the forwarder is allowed to read from.
Default: ""
AllowedPattern: "^[a-z0-9-.]*(\\*)?$"
ContentTypeOverrides:
Type: CommaDelimitedList
Description: >-
Expand Down
1 change: 1 addition & 0 deletions integration/tests/stack.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ run "install" {
DataAccessPointArn = run.create_bucket.access_point.arn
DestinationUri = "s3://${run.create_bucket.access_point.alias}/"
ConfigDeliveryBucketName = "example-bucket"
SourceBucketNames = "*"
LogGroupNamePatterns = "*"
NameOverride = run.setup.id
}
Expand Down

0 comments on commit b3c7acf

Please sign in to comment.