-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #448 from globaldatanet/4.5.1
4.5.1
- Loading branch information
Showing
66 changed files
with
3,757 additions
and
4,476 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
.github/workflows/waf_test_onlymanagedrulegroupsWithExcludes.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: ManagedRuleGroupsExcludes-Firewall | ||
|
||
env: | ||
AWS_REGION: eu-central-1 | ||
AWS_ROLE: FirewallFactoryGithubPipelineRole | ||
AWS_ACCOUNT: 859220371210 | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
# concurrency: | ||
# group: test_envrionment | ||
# cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'bin/**/*' | ||
- 'lib/**/*' | ||
- 'package*.json' | ||
jobs: | ||
deploy_production_main: | ||
name: Test and deploy OnlyManagedRuleGroups Firewall | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout | ||
uses: actions/checkout@v4.1.1 | ||
- name: 📁 Install Taskfile | ||
run: | | ||
npm install -g @go-task/cli | ||
- name: ☊ Use Node.js | ||
uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: '21.x' | ||
- name: 💾 Cache Node.js modules | ||
uses: actions/cache@v4.0.2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-node- | ||
${{ runner.OS }}- | ||
- name: 🌐 Install CDK and typescript globally | ||
run: | | ||
npm i -g aws-cdk typescript ts-node @types/node yarn | ||
npm link typescript | ||
- name: 📦 Install Packages | ||
run: | | ||
npm install | ||
- name: 🔑 Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4.0.2 | ||
env: | ||
ACCOUNT_ID: ${{ env.AWS_ACCOUNT }} | ||
with: | ||
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.AWS_ROLE }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
role-session-name: GitHubActionsSession | ||
mask-aws-account-id: false | ||
- name: 🚀 Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: 🫙 Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.3.0 | ||
- name: 🔥 Deploy Firewall to AWS | ||
run: | | ||
export STACK_NAME=WAFStack | ||
task deploy config=onlyManagedRuleGroupsWithExcludesTests | ||
- name: 🗑️ Remove Firewall from AWS | ||
run: | | ||
export STACK_NAME=WAFStack | ||
task destroy config=onlyManagedRuleGroupsWithExcludesTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
*.js | ||
!jest.config.js | ||
*.d.ts | ||
node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @packageDocumentation | ||
* # AWS Firewall Factory - Prerequisites Stack | ||
* | ||
* The Prequisites Stack is used to deploy the prerequisites for the AWS Firewall Factory. | ||
* | ||
* It contains the following resources: | ||
* - S3 Bucket for Logging | ||
* - KMS Key for Encryption | ||
* - Lambda Function for Notifications for Managed RuleGroup Updates | ||
* - Lambda Function for Notifications for DDoS (Advanced Shield) | ||
* - Lambda Function for Notifications for Unused WAF (WebACL) | ||
* @description | ||
* | ||
* @example | ||
* import { Prerequisites } from "../../lib/types/config"; | ||
* export const prequisites: Prerequisites = { | ||
* General: { | ||
* Prefix: "aws-firewall-factory", | ||
* }, | ||
* Logging: { | ||
* BucketProperties: { | ||
* BucketName: "aws-firewall-factory-logs", | ||
* KmsEncryptionKey: true, | ||
* ObjectLock: { | ||
* Days: 5, | ||
* Mode: "GOVERNANCE" | ||
* } | ||
* }, | ||
* FireHoseKey: { | ||
* KeyAlias: "aws-firewall-factory-firehosekey" | ||
* }, | ||
* CrossAccountIdforPermissions: "123456789012", | ||
* }, | ||
* DdosNotifications:{WebhookSopsFile: "./values/examples/webhooks/slack.json"} | ||
* }; | ||
*/ | ||
export * from "./stack"; |
Oops, something went wrong.