oso 0.12.1


Other bugs & improvements

  • Correct data filtering bug causing “Unexpected bound variable in constraint” errors on some policies using negation.


derive(PolarClass) is now supported on Rust enums

Rust enums can use the PolarClass derive macro to register as a Polar class. Variants of the enum are registered in Polar as constants. For example, the enum:

#[derive(Clone, Debug, PartialEq, PolarClass)]
enum Role {

is referenced in Polar as:

allow(actor, _, resource) if actor.role == Role::Admin;

Only unit variants are supported currently. Thanks to @seanchen1991 for this contribution!

sqlalchemy_oso 0.6.1

Other bugs & improvements

  • Fixed bug in authorize_model leading to data filtering queries to have a filter even when one policy result was unconditionally true.

Get updates from the Oso Engineering team
Tell our engineers what it's like