Testable Authorization With Cerbos | Cerbos

🔐 New: A CISO’s benchmark for authorization maturity ➔ Download the ebook

Testable authorization with Cerbos

Ensure the accuracy and reliability of your authorization policies. With Cerbos, get real-time feedback, continuous testing, and a collaborative IDE for a seamless and confident policy development experience.

The importance of testable authorization

Authorization policies are critical to the security and functionality of applications. Errors can lead to unauthorized access or hinder legitimate users. Testable authorization ensures that policies work as intended, providing a safety net against potential oversights and vulnerabilities.

Real-time feedback, continuous testing, and collaborative development

Sample test suite for a Cerbos policy

expected:
  - resource: document#1
    principal: user#1
    actions:
      create: EFFECT_ALLOW
      read: EFFECT_ALLOW
      update: EFFECT_ALLOW
      delete: EFFECT_DENY
  - resource: document#1
    principal: admin#2
    actions:
      create: EFFECT_ALLOW
      read: EFFECT_ALLOW
      update: EFFECT_ALLOW
      delete: EFFECT_ALLOW

Create detailed test suites for each of your types of users and resources and define the expected decision for each action. These tests can run on every change to policy to ensure expected results.