Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Fork Sync: Update from parent repository #10

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
02e8118
v4.0.0 updates
shsenior Jun 6, 2019
58095d3
Added manifest generator
shsenior Jun 10, 2019
a1b3eb6
Readme Update
shsenior Jun 13, 2019
9ccdb71
Update readme
shsenior Jul 31, 2019
a7ee268
Updated to Version 4.1.
georgebearden Dec 16, 2019
19cbc3c
Updated to Version 4.2
georgebearden Feb 6, 2020
cab57be
Update to version v5.0.0
aassadza Aug 31, 2020
698e4ea
Update to re-add files accidentally deleted
aassadza Aug 31, 2020
2c0327c
Updated build script
hnishar Sep 2, 2020
6a98ad9
Update to version v5.1.0
Nov 19, 2020
1930e37
dependency update
Jan 7, 2021
c5db6f7
Update to version v5.2.0
Jan 29, 2021
4c9e349
Update README.md
tomnight Sep 9, 2021
76558b7
Update to version v6.0.0
fisenkodv Dec 21, 2021
e6655c6
Merge pull request #316 from aws-solutions/develop
beomseoklee Dec 21, 2021
bf400cd
Update to version v6.0.0
G-Lenz Dec 21, 2021
31b2148
Merge pull request #318 from aws-solutions/develop
beomseoklee Dec 21, 2021
2ffe18a
chore: added close inactive issues GitHub workflow
beomseoklee Dec 21, 2021
1bc3f9f
Merge pull request #319 from aws-solutions/develop
beomseoklee Dec 21, 2021
83296c8
docs: update 'Customizing the Solution' section
fisenkodv Feb 3, 2022
b6a4f88
Merge pull request #333 from aws-solutions/feature/update-readme
beomseoklee Feb 3, 2022
2c74c58
update to version v6.1.0
Nov 10, 2022
7d2ad04
Merge pull request #395 from aws-solutions/release/v6.1.0
evanwieren Nov 10, 2022
166a820
Add github actions
gsingh04 Dec 9, 2022
4e42ee1
Move workflow files
gsingh04 Dec 9, 2022
6ae6e49
Remove redundant workflow file
gsingh04 Dec 9, 2022
d5fa2f8
Run pipeline job for only aws solutions owned repo
gsingh04 Dec 9, 2022
3912c4d
Run unit test workflow on push in forks
gsingh04 Dec 20, 2022
5ae1ee4
Fix workflow file syntax
gsingh04 Dec 20, 2022
7201343
Run workflow with push on forks
gsingh04 Dec 20, 2022
b6c02f4
Merge pull request #402 from gsingh04/develop
gsingh04 Dec 20, 2022
4d989bc
Address eslint, CodeQL recommendations and issues
Dec 23, 2022
d0ead90
Merge pull request #413 from dougtoppin/feature/eslint
dougtoppin Dec 23, 2022
50ad5e8
Add package-lock to gitignore
Dec 28, 2022
130afa6
Merge branch 'develop' into chore/ignore-package-lock
dougtoppin Dec 28, 2022
c71bc7e
Add pipeline related configuration files
Jan 4, 2023
025e81d
Merge pull request #419 from aws-solutions/chore/pipeline-config
dougtoppin Jan 5, 2023
8cfd4a3
Merge branch 'develop' into chore/ignore-package-lock
dougtoppin Jan 6, 2023
c72ba3b
Merge pull request #415 from aws-solutions/chore/ignore-package-lock
dougtoppin Jan 6, 2023
75c6b24
chore(docs): Update contributing for develop branch and PR steps (#421)
dougtoppin Jan 13, 2023
e4689f5
Resolve #416 demo-ui unicode support (#422)
dougtoppin Jan 17, 2023
66fa67a
Update code-style-lint.yml (#425)
gsingh04 Jan 18, 2023
4ea6c93
chore(package-lock): Add package dependency files (#426)
dougtoppin Jan 19, 2023
f69392b
Bump json5 from 1.0.1 to 1.0.2 in /source (#428)
dependabot[bot] Jan 19, 2023
aeb0d01
Refactor build script
gsingh04 Jan 20, 2023
7c73c97
Add support for cdk deploy
gsingh04 Jan 23, 2023
1659062
CHANGELOG additions and version set to 6.1.1 (#431)
dougtoppin Jan 23, 2023
a25fcd1
Use NodejsFunction as package builder for lambda
gsingh04 Jan 23, 2023
685c432
Update cdk-lib version to 2.61.1 and cleanup source-code-bucket refer…
gsingh04 Jan 25, 2023
73e08cf
Add npm scripts to install dependencies before cdk synth
gsingh04 Jan 25, 2023
d865b43
Remove enableDiffNoFail flag from cdk context
gsingh04 Jan 25, 2023
c327156
Update snapshot test for cdk
gsingh04 Jan 25, 2023
4799229
Cleanup run-unit-test script and placeholder file for cdk solution he…
gsingh04 Jan 25, 2023
989ed86
Update deployment instructions in README
gsingh04 Jan 25, 2023
026e7c5
Add cdk solution helper for updating lambda references
gsingh04 Jan 27, 2023
c63c033
Remove TODO
gsingh04 Jan 27, 2023
02eaed2
Remove unnecessary npm scripts
gsingh04 Jan 30, 2023
f25336c
Add bundling option for image handler function
gsingh04 Jan 30, 2023
e5cda64
Clean npm scripts from image handler function
gsingh04 Jan 30, 2023
3842a0e
Replace npm i with npm ci
gsingh04 Jan 30, 2023
a4225ff
Install Sharp for target lambda platform architecture
gsingh04 Jan 30, 2023
dbeceab
Add TODO to update build step to use cdk generated binaries
gsingh04 Jan 30, 2023
c91c1ba
Fix esbuild for image handler function and update sharp to 0.31.3
gsingh04 Jan 30, 2023
7db0922
Fix sharp node_module for esbuild
gsingh04 Jan 31, 2023
967ac0f
Update npm script
gsingh04 Jan 31, 2023
29c658b
Add helper method to update bucket reference in template
gsingh04 Feb 1, 2023
738ca2b
Update build process to use cdk synthesized assets in internal pipelines
gsingh04 Feb 1, 2023
dc7ef97
Remove extraneous install in buildspec
gsingh04 Feb 1, 2023
74e914b
Rename solution template and use parameter properties
gsingh04 Feb 1, 2023
a0f0837
Add Readme for cdk solution helper
gsingh04 Feb 1, 2023
a2076d0
Add cdk-helper modules
gsingh04 Feb 7, 2023
92de066
Remove build open source script
gsingh04 Feb 7, 2023
ff51a3b
Add unit tests for cdk helper module
gsingh04 Feb 8, 2023
4568804
Add unit tests to asset-packager
gsingh04 Feb 8, 2023
353cd4c
Add template builder unit tests
gsingh04 Feb 8, 2023
1826412
Release/v6.1.1 (#443)
dougtoppin Feb 8, 2023
e951a01
Add mock template and update template builder unit tests
gsingh04 Feb 10, 2023
f6a7ccd
Add folders when creating zip
gsingh04 Feb 10, 2023
84a7ea6
Fix build scripts
gsingh04 Feb 10, 2023
8750482
Resolve sonar code-smells (#440)
dougtoppin Feb 14, 2023
2ae1bee
Resolve #429 jpeg magic number (#433)
dougtoppin Feb 14, 2023
3051d5c
fix for thumbor watermark issue, add unit tests (#432)
dougtoppin Feb 14, 2023
66de9f8
Fix build process
gsingh04 Feb 16, 2023
cb93bf6
Update unit test workflow to use pre-requisite node14
gsingh04 Feb 16, 2023
e9a85b7
Merge branch 'develop' into develop
dougtoppin Feb 16, 2023
442a3ce
Merge pull request #441 from gsingh04/develop
gsingh04 Feb 16, 2023
a9ab99b
Bump xml2js and aws-sdk in /source/custom-resource (#461)
dependabot[bot] Apr 11, 2023
957b2c5
Bump xml2js and aws-sdk in /source/image-handler (#462)
dependabot[bot] Apr 13, 2023
5c79a44
add support for CloudFront logging to s3 object ownership changes (#468)
dougtoppin Apr 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/workflows/ @aws-solutions/sb-csne
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
<!-- A clear and concise description of what the bug is. -->

**To Reproduce**
<!-- Steps to reproduce the behavior. -->

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->

**Please complete the following information about the solution:**
- [ ] Version: [e.g. v1.0.0]
- [ ] Region: [e.g. us-east-1]
- [ ] Was the solution modified from the version published on this repository?
- [ ] If the answer to the previous question was yes, are the changes available on GitHub?
- [ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the sevices this solution uses?
- [ ] Were there any errors in the CloudWatch Logs?

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information). -->

**Additional context**
<!-- Add any other context about the problem here. -->
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this solution
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the feature you'd like**
<!-- A clear and concise description of what you want to happen.-->

**Additional context**
<!-- Add any other context or screenshots about the feature request here.-->
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/general_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: General question
about: Ask a general question
title: ''
labels: question
assignees: ''

---

**What is your question?**
<!-- Describe your question as detail as possible. -->
13 changes: 11 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
*Issue #, if available:*
**Issue #, if available:**
<!-- If there're any related issues, please add the issue number here. -->

*Description of changes:*


**Description of changes:**
<!-- Please describe the changes you made -->


**Checklist**
- [ ] :wave: I have added unit tests for all code changes.
- [ ] :wave: I have run the unit tests, and all unit tests have passed.
- [ ] :warning: This pull request might incur a breaking change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
26 changes: 26 additions & 0 deletions .github/workflows/cdk-nag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Workflow that runs unit test
name: CDK Nag Test

on:
push:
branches:
- '*'
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
cdk-nag:
name: CDK Nag Check
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
cd source/constructs && npm i --only=dev
npx cdk synth
36 changes: 36 additions & 0 deletions .github/workflows/code-style-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Workflow that runs prettier code style check.
name: Code Style and Lint

on:
push:
branches:
- '*'
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
prettier:
name: Style Check
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- run: npx --y prettier --config source/.prettierrc.yml --check 'source/**/*.ts'
linter:
name: Lint Check
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
cd source && npm i
npx --y eslint . --ext .ts
24 changes: 24 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Security Scans

on:
push:
branches:
- '*'
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
codeql:
name: CodeQL Check
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ javascript, typescript ]
steps:
- uses: actions/checkout@v3
- uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/analyze@v2
26 changes: 26 additions & 0 deletions .github/workflows/pipeline-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pipeline Workflow

env:
REGION: us-east-1

on: push

jobs:
pipeline-job:
name: Pipeline Job
if: github.repository_owner == 'aws-solutions'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.DISPATCHER_ROLE_ARN }}
aws-region: ${{ env.REGION }}
role-duration-seconds: 900
role-session-name: OIDCSession
- name: Run CodeBuild
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: ${{ secrets.DISPATCHER_CODEBUILD_PROJECT_NAME }}
26 changes: 26 additions & 0 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pull Request Workflow

on:
push:
branches:
- '*'
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
pull-request-job:
name: Status Checks
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Viperlight
run: |
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/viperlight.zip
unzip -q viperlight.zip -d ../viperlight
rm -r ./viperlight.zip
echo "Content scanning utility installation complete `date`"
echo "Starting content scanning `date` in `pwd`"
../viperlight/bin/viperlight scan -m files-contents -m files-aws -m files-binary -m files-entropy -m files-secrets
echo "Completed content scanning `date`"
26 changes: 26 additions & 0 deletions .github/workflows/run-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Workflow that runs unit test
name: Unit Test

on:
push:
branches:
- '*'
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
unittest:
name: Unit Test Check
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
cd deployment
chmod +x ./run-unit-tests.sh && DEBUG=true ./run-unit-tests.sh
22 changes: 22 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close Stale Issues and PRs

on:
schedule:
- cron: "0 0 * * *"

jobs:
close-issues:
name: Close Stale Issues
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v3
with:
days-before-stale: 90
days-before-close: 7
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
close-issue-message: This issue was closed because it has been inactive for 7 days since being marked as stale.
stale-pr-message: This pr has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
close-pr-message: This pr was closed because it has been inactive for 7 days since being marked as stale.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# compiled output
**/dist
**/global-s3-assets
**/regional-s3-assets
**/staging
**/open-source
**/.zip
**/tmp
**/out-tsc

# dependencies
**/node_modules

# test assets
**/coverage
**/coverage-reports
**/.nyc_output
**/mock-*

# misc
**/npm-debug.log
**/testem.log
**/.vscode/settings.json
demo-ui-config.js

# System Files
**/.DS_Store
**/.vscode
**/.idea
5 changes: 5 additions & 0 deletions .viperlightignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/*
CONTRIBUTING.md:46
CODE_OF_CONDUCT.md:4
coverage/*
.zip
4 changes: 4 additions & 0 deletions .viperlightrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"all": true,
"failOn": "medium"
}
Loading