-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removing bin details * fix mapping rule set failure * setup ci for publish branch
- Loading branch information
Showing
60 changed files
with
322 additions
and
318 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- publish | ||
tags: '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
env: | ||
AWS_DEFAULT_REGION: ${{ secrets.ECR_REGION }} | ||
AWS_DEFAULT_OUTPUT: json | ||
AWS_ACCESS_KEY_ID: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }} | ||
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }} | ||
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} | ||
|
||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
testRules: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run guard rules tests | ||
shell: bash | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | sh | ||
export PATH=${PATH}:~/.guard/bin | ||
cfn-guard test -d ./rules/ | ||
## If test fails run step to pull out only failed tests | ||
- name: Display Failed Rules Only | ||
if: ${{ failure() }} | ||
shell: bash | ||
run: | | ||
cfn-guard test -d ./rules/ | grep "FAIL Rules:" -B 2 -A 1 | ||
buildRuleSet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- run: | | ||
chmod +x ./mappings/build.py | ||
python3 ./mappings/build.py | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ruleset-build | ||
path: docker/output/ | ||
if-no-files-found: error | ||
|
||
buildDockerRelease: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- run: | | ||
chmod +x ./mappings/build.py | ||
python3 ./mappings/build.py | ||
shell: bash | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.ECR_REGION }} | ||
- name: Retrieve git tag for version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
- name: Build, tag, and push image to Amazon ECR | ||
run: | | ||
aws ecr-public get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $ECR_REGISTRY | ||
cd ./docker | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.get_version.outputs.VERSION }} . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.get_version.outputs.VERSION }} |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Guard Registry Rule Set Releases | ||
|
||
Guard Rule Sets are versioned and tracked in the Guard Rule Registry managed rules release process.The process entails our open-source community creating Pull-Request from forking and submitting the Pull-Request targeting the main branch. Upon Pull-Request approval, all Guard Registry Rule Sets located in the [./mapping](../mappings/) directory are tested, built and bundled into a single artifact zip file suffixed with timestamp. The artifacts are available for download and beta testing. A formal publishing process will happen when the Guard Rules Registry admin team create a version tag, release notes, and merge the main branch into the publish branch. The publishing branch entails a pipeline that builds the Guard Registry Rule Set based on the git tag version and updates the AWS ECR docker image with the latest tag. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "ABS-CCIGv2-Material", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for ABS Cloud Computing Implementation Guide 2.0 - Material Workloads", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "ABS-CCIGv2-Standard", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for ABS Cloud Computing Implementation Guide 2.0 - Standard Workloads", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "FDA-21CFR-Part-11", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Title 21 of the Code of Federal Regulations (CFR) Part 11", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "acsc-essential-8", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Australian Cyber Security Centre (ACSC) Essential Eight Maturity Model", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "acsc-ism", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Australian Cyber Security Centre (ACSC) Information Security Manual (ISM) 2020-06", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "apra-cpg-234", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Australian Prudential Regulation Authority (APRA) CPG 234", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "bnm-rmit", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Bank Negara Malaysia (BNM) Risk Management in Technology (RMiT)", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
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,7 +1,7 @@ | ||
{ | ||
"owner": "AWS", | ||
"ruleSetName": "cis-aws-benchmark-level-1", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "AWS Guard rule set for Center for Internet Security (CIS) Amazon Web Services Foundation v1.4 Level 1", | ||
"contact": "[email protected]", | ||
"mappings": [ | ||
|
Oops, something went wrong.