Skip to main content

Crate static_authz_plugin

Crate static_authz_plugin 

Source
Expand description

Static AuthZ Resolver Plugin

This plugin provides a static authorization policy for development and testing.

  • Valid tenant → decision: true with an in predicate on owner_tenant_id if the PEP declares that property, plus, under TenantHierarchy, an InTenantSubtree on each declared of owner_tenant_id / id; no constraints if neither applies
  • group_ids / ancestor_group_ids on the resource → decision: false
  • Nil or missing tenant → decision: false

§Configuration

gears:
  static-authz-plugin:
    config:
      vendor: "constructorfabric"
      priority: 100

Re-exports§

pub use gear::StaticAuthZPlugin;

Modules§

config
Configuration for the static AuthZ resolver plugin.
domain
Domain layer for the static AuthZ resolver plugin.
gear
Static AuthZ resolver plugin gear.