# Cerbos v0.28.0

## Highlights

This is a quick release close on the heels of [Cerbos v0.27.0](https://docs.cerbos.dev/cerbos/prerelease/releases/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](https://docs.cerbos.dev/cerbos/prerelease/policies/outputs). 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](https://docs.cerbos.dev/cerbos/prerelease/policies/compile) for information on testing.

Audit log entries written to [Kafka](https://docs.cerbos.dev/cerbos/prerelease/configuration/audit#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](https://github.com/cerbos/cerbos/pull/1631))

- Render the condition correctly in an Engine trace ( [#1637](https://github.com/cerbos/cerbos/pull/1637))

### Features

- Ability to verify outputs in policy tests ( [#1634](https://github.com/cerbos/cerbos/pull/1634))

- Support different compression algorithms for kafka audit ( [#1636](https://github.com/cerbos/cerbos/pull/1636))

### Chores

- Add output support to Playground API ( [#1632](https://github.com/cerbos/cerbos/pull/1632))

- Bump version to 0.28.0

- Remove manual setup from overlay E2E test ( [#1633](https://github.com/cerbos/cerbos/pull/1633))
