Skip to content

v2.1.1

Compare
Choose a tag to compare
@akshayrane akshayrane released this 04 Nov 19:42
· 116 commits to main since this release
e64fa55

AWS CloudFormation Guard 2.1.1 is a patch release that includes new features, resolves bugs, and addresses feedback from the open source community.

New Features

  1. Docker image for Guard now available in ECR public gallery

Bug fixes

  1. Security fix for denial of service attack
  2. Improved parsing logic and graceful exits in case of parsing failures
  3. Upgraded Lambda to use new evaluation engine

Issues addressed

  1. #210 - [BUG] main thread panic
  2. #160 - cfn-guard test should fail when test file isn't found
  3. #228 - [BUG] Parsing error when comments used at EOF
  4. #224 - [BUG] DoS using Crafted Yaml file
  5. #266 - [BUG] empty Function Broken on Boolean Keys
  6. #252 - [BUG] Message Formatting

Other changes

Full change log: 2.1.0...2.1.1

Details

Guard Docker Image launched on ECR public gallery

Prerequisites

  1. Install docker. Follow this guide.
  2. Have a directory ready on the host you are downloading the docker image to that contains data templates and Guard rules you are planning to use, we may mount this directory and use the files as input to cfn-guard. We'll refer this directory to be called guard-files in the rest of this guide

Usage Guide

To use the binary, we should pull the latest docker image, we may do so using the following command:

docker pull public.ecr.aws/aws-cloudformation/cloudformation-guard:latest

Now go ahead and run the docker image, using the files from directory we have our templates and rules file in, using:

docker run \
  --mount src=/path/to/guard-files,target=/container/guard-files,type=bind \
  -it public.ecr.aws/aws-cloudformation/cloudformation-guard:latest \
  ./cfn-guard validate -d /container/guard-files/template.yml -r /container/guard-files/rule.guard

We should see the evaluation result emitted out on the console.

Tagging convention

  • We use the tag latest for the most recent docker image that gets published in sync with main branch of the cloudformation-guard GitHub repository.
  • We use the convention <branch_name>.<github_shorthand_commit_hash> for tags of historical docker images

New contributors