Skip to main content

tr_authz_plugin/
lib.rs

1//! TR `AuthZ` Resolver Plugin
2//!
3//! `AuthZ` plugin that resolves tenant hierarchy via `TenantResolverClient`.
4//! Produces `In(owner_tenant_id)` predicates for tenant scoping and
5//! optional `InGroup`/`InGroupSubtree` predicates from request context.
6//!
7//! ## Configuration
8//!
9//! ```yaml
10//! modules:
11//!   tr_authz_plugin:
12//!     config:
13//!       vendor: "hyperspot"
14//!       priority: 50
15//! ```
16#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
17
18pub mod config;
19pub mod domain;
20pub mod module;
21
22pub use module::TrAuthZPlugin;