#access-control #security-framework #authorization #policy #rbac #applications #language

polar-core

Polar core library for oso, an open source policy engine for authorization that’s embedded in your application

45 releases

0.27.3 Jan 13, 2024
0.27.2 Dec 20, 2023
0.27.0 Apr 3, 2023
0.26.4 Dec 5, 2022
0.8.2 Nov 25, 2020

#398 in Development tools

Download history 5883/week @ 2024-08-10 5121/week @ 2024-08-17 6278/week @ 2024-08-24 2997/week @ 2024-08-31 3163/week @ 2024-09-07 3179/week @ 2024-09-14 4999/week @ 2024-09-21 3897/week @ 2024-09-28 3733/week @ 2024-10-05 4591/week @ 2024-10-12 2402/week @ 2024-10-19 3915/week @ 2024-10-26 3001/week @ 2024-11-02 3751/week @ 2024-11-09 3622/week @ 2024-11-16 2104/week @ 2024-11-23

13,280 downloads per month
Used in 3 crates (via oso)

Apache-2.0

780KB
18K SLoC

Deprecated

We have deprecated the legacy Oso open source library. We have plans for the next open source release and we’re looking forward to getting feedback from the community leading up to that point (please reach out to us in the Slack #help channel). In the meantime, if you’re happy using the Oso open source library now, nothing needs to change – i.e., we are not end-of-lifing (EOL) the library and we’ll continue to provide support and critical bug fixes. More context: here.

Oso

Development GitHub release (latest SemVer) Go version Maven version NPM version PyPI version RubyGems version Crates.io version Slack

What is Oso?

Oso is a batteries-included framework for building authorization in your application.

With Oso, you can:

  • Model: Set up common permissions patterns like role-based access control (RBAC) and relationships using Oso’s built-in primitives. Extend them however you need with Oso’s declarative policy language, Polar.
  • Filter: Go beyond yes/no authorization questions. Implement authorization over collections too - e.g., “Show me only the records that Juno can see.”
  • Test: Write unit tests over your authorization logic now that you have a single interface for it. Use the Oso debugger or REPL to track down unexpected behavior.

Oso offers libraries for Node.js, Python, Go, Rust, Ruby, and Java.

Our latest creation Oso Cloud makes authorization across services as easy as oso.authorize(user, action, resource). Learn about it.

Documentation

Community & Support

If you have any questions on Oso or authorization more generally, you can join our engineering team & hundreds of other developers using Oso in our community Slack:

Button

Share your story

We'd love to hear about your use case and experience with Oso. Share your story in our Success Stories issue.

Development

Core

Oso's Rust core is developed against Rust's latest stable release.

Language libraries

Oso's language libraries can be developed without touching the Rust core, but you will still need the Rust stable toolchain installed in order to build the core.

To build the WebAssembly core for the Node.js library, you will need to have wasm-pack installed and available on your system PATH.

Language requirements

To work on a language library, you will need to meet the following version requirements:

  • Java: 11+
    • Maven: 3.6+
  • Node.js: 12.20.0+
    • Yarn 1.22+
  • Python: 3.7+
  • Ruby: 2.4+
    • Bundler 2.1.4+
  • Rust: 1.46+
  • Go: 1.14+

Contributing & Jobs

See: CONTRIBUTING.md.

If you want to work on the Oso codebase full-time, visit our jobs page.

License

See: LICENSE.

Dependencies

~0.5–3MB
~50K SLoC