Skip to content

Repository files navigation

Cerbos Query Plan Adapters

These are reference implementations of adapters that take a Cerbos Query Plan (PlanResources API) response and convert it into a filter which can be applied to your data fetching layer to return just the instances of a resource that a user would have access to.

Current supported adapters:

Every adapter is proved against two shared corpora at the root of this repository:

  • conformance/ — deliberately hostile shapes, proving each adapter's filter returns exactly the rows the PDP allows.
  • demo/ — one realistic domain, proving each adapter's published package installs, imports, and composes with its ORM's real query methods.

About

Repo of adapters converting a Cerbos Query Plan to a data fetching layer

Resources

Code of conduct

Contributing

Stars

21 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages