Cerbos v0.28.0

Highlights

This is a quick release close on the heels of Cerbos v0.27.0 to introduce two useful features and a couple of bug fixes.

You can now write policy tests to verify that your policies produce the correct output values. Checking for output values in tests is optional but, if you do define any output expectations, the tests will fail if the produced output does not match the expectations. See Validating and testing policies for information on testing.

Audit log entries written to Kafka can now be compressed using one of the supported compression algorithms. The default algorithm used is Snappy. Thanks to @shangardezi for contributing this feature.

Changelog

Bug Fixes

  • Only produce outputs for activated rules (#1631)

  • Render the condition correctly in an Engine trace (#1637)

Features

  • Ability to verify outputs in policy tests (#1634)

  • Support different compression algorithms for kafka audit (#1636)

Chores

  • Add output support to Playground API (#1632)

  • Bump version to 0.28.0

  • Remove manual setup from overlay E2E test (#1633)