Cerbos v0.36.0 enhances the efficiency and functionality of policy-driven access controls. This version introduces asynchronous audit logging, refined Kafka backend handling, and new administrative commands, all designed to optimize performance and scalability.
One of the key enhancements in v0.36.0 is the shift to asynchronous audit logging. This change is designed to reduce the overhead associated with writing large audit log entries, particularly when dealing with slow sinks (files and stdout, for example). This change is beneficial for PDPs handling large batch requests with high volumes of data, where response times could be affected by the additional load of logging activities. By moving logging to the background, Cerbos ensures that response times are not adversely affected.
A community contribution from @rcrowe has strengthened the Kafka backend in Cerbos. The system now defaults to using system CA certificates for TLS connections unless otherwise specified. The update also enhanced error handling that prevent blocking writes during downstream outages.
cerbosctl
commandscerbosctl inspect
command is a new addition that provides command-line access to the inspect Admin API, a feature introduced in the previous release. This command allows users to list actions defined in each policy, offering greater visibility into policy configurations. More policy inspection options are planned for future releases.Command-Line Usage:
$ cerbosctl inspect --policies
Command-Line Usage:
💡 Cerbos has renamed the bundle storage driver to maintain consistency across its feature set to hub
. This change is backward compatible, but future versions will require an update to your configuration file from storage.driver: bundle
to storage.driver: hub
.
The v0.36.0 release includes the addition of a Dagger Cerbos module. This module provides a compile function for compiling and testing Cerbos policy repositories and a server service for starting a Cerbos server, enhancing the development workflow.
To install the Dagger Cerbos module, run the following command:
$ dagger install github.com/cerbos/dagger-cerbos
You can find out more about this module on the Daggerverse page.
Further Reading and Resources:
Book a free Policy Workshop to discuss your requirements and get your first policy written by the Cerbos team