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.

Set up a 1x1 with an Oso Engineer

Our team is happy to help you get started with Oso. If you'd like to learn more about using Oso in your app or have any questions about this guide, schedule a 1x1 with an Oso engineer.