github open-policy-agent/conftest v0.58.0

2 days ago

Announcements

⚠️ Upcoming Breaking Changes ⚠️

In the v0.59 release of conftest (in April 2025), we will bump the hcl2json library which is used by the HCL2 parser. This makes the behavior of the conversion more consistent by always using arrays for blocks that can be repeated. See #1074 and #1006 for more info.

ℹ️ Breaking Changes Reminder ℹ️

In the v0.60 release of conftest (in May 2025), we will change the default version of Rego syntax from v0 to v1. This will be a breaking change if your Rego policies are not compatible with the v1 syntax.

  • With this release of conftest, users may opt-in to this behavior early by setting the --rego-version flag to v1.
  • Individual policies can be updated gradually, by adding import rego.v1 to the policy.
  • The rego-version flag will remain available indefinitely, and users who do not wish to update their Rego policies can continue to use v0 syntax by setting this flag to v0.

For more information about upgrading to Rego v1 syntax, see the upstream docs at https://www.openpolicyagent.org/docs/latest/v0-upgrade/.

Changelog

New Features

Bug Fixes

  • 4435c65: fix: Conftest can now successfully load files using a file URL (e.g., file:///C:/path/to/data.yaml) on windows (#999) (@pckvcode)

OPA Changes

Other Changes

Don't miss a new conftest release

NewReleases is sending notifications on new releases.