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 an `in` predicate on `owner_tenant_id` if the
6//! PEP declares that property, plus, under `TenantHierarchy`, an `InTenantSubtree`
7//! on each declared of `owner_tenant_id` / `id`; no constraints if neither applies
8//! - `group_ids` / `ancestor_group_ids` on the resource → `decision: false`
9//! - Nil or missing tenant → `decision: false`
10//!
11//! ## Configuration
12//!
13//! ```yaml
14//! gears:
15//! static-authz-plugin:
16//! config:
17//! vendor: "constructorfabric"
18//! priority: 100
19//! ```
20#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
21
22pub mod config;
23pub mod domain;
24pub mod gear;
25
26pub use gear::StaticAuthZPlugin;