Skip to content

Commit

Permalink
Updates to version v1.0.8
Browse files Browse the repository at this point in the history
- Fix an issue with CSP response header that caused the solution to fail deployment in AWS regions with longer names.
  • Loading branch information
tabdunabi authored May 14, 2024
2 parents 9abd4a0 + 15a116d commit ba62545
Show file tree
Hide file tree
Showing 40 changed files with 78 additions and 72 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

=======

## [1.0.8] - 2024-05-14

### Fixed

- CSP response header name length longer than supported, causing stack failure in ap-southeast-1 and ap-south-east-2

## [1.0.7] - 2024-05-13

### Security
Expand Down
2 changes: 1 addition & 1 deletion source/infrastructure/cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
"solution_id": "SO0281",
"solution_name": "enhanced-document-understanding-on-aws",
"solution_version": "v1.0.7",
"solution_version": "v1.0.8",
"app_namespace": "app.idp",
"app_registry_name": "enhanced-document-understanding",
"application_type": "AWS-Solutions",
Expand Down
4 changes: 2 additions & 2 deletions source/infrastructure/lib/s3web/static-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ export class StaticWebsite extends Construct {
);

const cspResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'CSPResponseHeadersPolicy', {
responseHeadersPolicyName: `eDU-CSPResponseHeadersPolicy-${cdk.Aws.STACK_NAME}-${cdk.Aws.REGION}`,
responseHeadersPolicyName: `eDU-CSP-${cdk.Aws.STACK_NAME}-${cdk.Aws.REGION}`,
comment: 'CSP Response Headers Policy',
securityHeadersBehavior: {
contentSecurityPolicy: {
contentSecurityPolicy:
"default-src 'self' data: https://*.amazonaws.com; img-src 'self' data: https://*.cloudfront.net https://*.amazonaws.com; script-src 'self' http://*.cloudfront.net https://*.amazonaws.com; style-src 'self' 'unsafe-inline' https://*.amazonaws.com; object-src 'self' https://*.amazonaws.com; worker-src 'self' blob:",
"default-src 'self' data: https://*.amazonaws.com; img-src 'self' data: https://*.cloudfront.net https://*.amazonaws.com; script-src 'self' https://*.cloudfront.net https://*.amazonaws.com; style-src 'self' https://*.amazonaws.com; object-src 'self' https://*.amazonaws.com; worker-src 'self' blob:",
override: true
},
frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true }
Expand Down
4 changes: 2 additions & 2 deletions source/infrastructure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/infrastructure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enhanced-document-understanding-on-aws-infrastructure",
"version": "1.0.7",
"version": "1.0.8",
"bin": {
"infrastructure": "bin/dus.js"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>java-lambda</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>

<name>mock-java-lambda</name>

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-lambda",
"version": "1.0.7",
"version": "1.0.8",
"description": "A mock lambda implementation for CDK infrastructure unit",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions source/infrastructure/test/mock-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/infrastructure/test/mock-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-react-app",
"version": "1.0.7",
"version": "1.0.8",
"description": "Mock Reactjs app used for unit testing constructs",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -35,4 +35,4 @@
"last 1 safari version"
]
}
}
}
4 changes: 2 additions & 2 deletions source/lambda/create-presigned-url/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/create-presigned-url/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-presigned-url",
"version": "1.0.7",
"version": "1.0.8",
"description": "This lambda has minimal permissions required to create downloadable presigned URLs for documents.",
"main": "index.js",
"scripts": {
Expand All @@ -24,4 +24,4 @@
"jest": "^29.7.0",
"prettier": "^3.0.3"
}
}
}
4 changes: 2 additions & 2 deletions source/lambda/entity-detection/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/entity-detection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "entity-detection",
"version": "1.0.7",
"version": "1.0.8",
"description": "This lambda function detects entities within Text",
"main": "index.js",
"scripts": {
Expand All @@ -24,4 +24,4 @@
"jest": "^29.7.0",
"prettier": "^3.1.1"
}
}
}
4 changes: 2 additions & 2 deletions source/lambda/fetch-records/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/fetch-records/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetch-records",
"version": "1.0.7",
"version": "1.0.8",
"description": "This lambda backs the ApiGateway REST endpoint to process record and document fetch requests",
"main": "index.js",
"scripts": {
Expand All @@ -27,4 +27,4 @@
"jest": "^29.7.0",
"prettier": "^3.1.1"
}
}
}
4 changes: 2 additions & 2 deletions source/lambda/get-inferences/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/get-inferences/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-inferences",
"version": "1.0.7",
"version": "1.0.8",
"description": "This lambda function is used to get inference results by backing the rest-endpoints",
"main": "index.js",
"scripts": {
Expand All @@ -21,4 +21,4 @@
"jest": "^29.6.2",
"prettier": "^3.0.0"
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/layers/aws-node-user-agent-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-nodesdk-custom-config",
"version": "1.0.7",
"version": "1.0.8",
"description": "AWS Nodejs SDK Config intialization layer",
"main": "index.js",
"scripts": {
Expand All @@ -23,4 +23,4 @@
"url": "https://aws.amazon.com/solutions"
},
"license": "Apache-2.0"
}
}
4 changes: 2 additions & 2 deletions source/lambda/layers/aws-sdk-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/layers/aws-sdk-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-sdk-layer",
"version": "1.0.7",
"version": "1.0.8",
"description": "AWS Nodejs SDK layer",
"dependencies": {
"aws-sdk": "^2.1532.0"
Expand All @@ -10,4 +10,4 @@
"url": "https://aws.amazon.com/solutions"
},
"license": "Apache-2.0"
}
}
4 changes: 2 additions & 2 deletions source/lambda/layers/common-node-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/layers/common-node-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-node-lib",
"version": "1.0.7",
"version": "1.0.8",
"description": "Common libraries shared by all lambda node modules",
"scripts": {
"test": "jest --coverage --silent --verbose",
Expand All @@ -27,4 +27,4 @@
"pdf-lib": "1.17.1",
"uuid": "^9.0.1"
}
}
}
2 changes: 1 addition & 1 deletion source/lambda/layers/custom-java-sdk-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.builder.config</groupId>
<artifactId>custom-java-sdk-config</artifactId>
<packaging>jar</packaging>
<version>1.0.7</version>
<version>1.0.8</version>
<name>custom-java-sdk-config</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion source/lambda/layers/custom_boto3_init/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="custom_boto3_init",
version="1.0.6",
version="1.0.8",
description="Initialize boto config for AWS Python SDK with custom configuration",
url="https://github.com/aws-solutions/enhanced-document-understanding-on-aws",
author="Amazon Web Services",
Expand Down
2 changes: 1 addition & 1 deletion source/lambda/redact-content/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.builder.lambda</groupId>
<artifactId>redact-content</artifactId>
<packaging>jar</packaging>
<version>1.0.7</version>
<version>1.0.8</version>
<name>redact-content</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/search/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search",
"version": "1.0.7",
"version": "1.0.8",
"description": "This lambda function is used to search for queries in the kendra index backing the rest-endpoints",
"main": "index.js",
"scripts": {
Expand All @@ -21,4 +21,4 @@
"jest": "^29.7.0",
"prettier": "^3.1.1"
}
}
}
Loading

0 comments on commit ba62545

Please sign in to comment.