Skip to main content

static_authz_plugin/
lib.rs

1//! Static `AuthZ` Resolver Plugin
2//!
3//! This plugin provides a static authorization policy for development and testing.
4//!
5//! - Valid tenant → `decision: true` with `in` predicate on `owner_tenant_id`
6//! - Nil or missing tenant → `decision: false`
7//!
8//! ## Configuration
9//!
10//! ```yaml
11//! modules:
12//!   static_authz_plugin:
13//!     config:
14//!       vendor: "hyperspot"
15//!       priority: 100
16//! ```
17#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
18
19pub mod config;
20pub mod domain;
21pub mod module;
22
23pub use module::StaticAuthZPlugin;