github aquasecurity/tfsec v1.0.0

latest releases: v1.28.6, v1.28.5, v1.28.4...
2 years ago

What's Changed

tfsec now uses rules which are defined as part of the defsec project. This means the same rules you're used to from tfsec can now be applied to other technologies (such as CloudFormation via cfsec). The main responsibility of tfsec is now to translate Terraform code into a format that defsec understands in order to apply it's own rules.

The v1 version is largely the summit of a mountain of refactoring efforts. From this point forward we don't expect huge changes to the general architecture of the project, or the way it is used, but instead hope to focus on adding lots more rules and driving up the quality and intelligence of existing rules.

Breaking Changes

  • The --detailed-exit-code flag has been removed. The detailed exit code is now provided by default.
  • As before, tfsec indicates a failure with a non-zero exit code, but not necessarily 1.
  • The deprecated--include, ignore-warnings, and --ignore-info flags have been removed.
  • The behaviour of --out and --format have changed slightly - please read the usage help for more information.
  • The --sort-severityflag has been removed - results are now sorted by severity by default.

Notable Changes

New Features

  • Add --migrate-ignores which will replace all legacy ignore rules with up-to-date IDs by @owenrumney in #1259
  • Add support for grouping of results when they originate in the same module, the same for_each or the same count (disable with -G) by @liamg in #1410
  • Add arm docker images by @owenrumney in #1375
  • Terraform v1.1 Support: Add support for moved blocks tf 1.1.0+ by @martijnvdp in #1204
  • Terraform v1.1 Support: Init module sources by @martijnvdp in #1206

Custom Checks

Rule Changes

  • Add support for unlimited retention policy for azurerm_sql_server by @atombrella in #1243
  • Remove false positive in vault pki by @liamg in #1254
  • Fix elastic search domain logging by @liamg in #1400
  • Whitelist kubernetes_service_account token by @liamg in #1317

Other Changes

  • Ignores can now be specified at any level - attribute, block or module definition by @liamg in #1409

New Contributors

Thanks to all of our awesome new contributors!

Special Thanks

  • @vanesasejdiu for all of their hard work on the defsec rule transition.
  • @gabrielleecredera for their massive contribution to custom checks.
  • @martijnvdp for their quick reaction in getting support added for Terraform v1.1.
  • @atombrella For various changes and suggestions.

Happy dancing

Full Changelog: v0.63.1...v1.0.0

Don't miss a new tfsec release

NewReleases is sending notifications on new releases.