Unreleased

No notable changes.

0.8.0 - 2024-01-12

Added

  • grpc_metadata option to Cerbos::Client constructor and request methods to add gRPC metadata (a.k.a. HTTP headers) to requests to the policy decision point (#132)

0.7.0 - 2023-06-07

Added

  • Support for user-defined policy rule outputs (#100)

Requires a policy decision point server running Cerbos 0.27+.

Removed

  • Support for Ruby 2.7 (#90)

0.6.1 - 2023-03-23

Removed

  • Unused generated code (#83)

0.6.0 - 2022-07-01

Added

  • Support for schema validation in Cerbos::Client#plan_resources (#32)

Requires a policy decision point server running Cerbos 0.19+. Cerbos::Output::PlanResources#validation_errors will always return an empty array if the client is connected to an earlier version of Cerbos.

As a result, Cerbos::Output::CheckResources::Result::ValidationError has moved to Cerbos::Output::ValidationError. Attempting to access the class via the old namespace will print a deprecation warning and return the new class.

0.5.0 - 2022-06-09

Added

  • Allow symbol keys in nested attributes hashes (#28)

0.4.0 - 2022-06-03

Added

  • on_validation_error option to Cerbos::Client#initialize (#22)

Changed

  • Minor documentation fixes (#21)

0.3.0 - 2022-05-13

Added

  • More helper methods (#11)
    • Cerbos::Client#allow? for checking a single action on a resource
    • Cerbos::Output::CheckResources#allow_all? and Cerbos::Output::CheckResources::Result#allow_all? for checking if all input actions were allowed

0.2.0 - 2022-05-12

Changed

0.1.0 - 2022-05-12

Added

  • Initial implementation of Cerbos::Client (#2)