Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tba-runtime-authorization-policy

SSOT governed

tba-runtime-authorization-policy is the authorization-facing package name for authority, policy, grants, permissions, replay, and governance controls. It is introduced as the preferred name for new work while tigrbl-identity-policy remains available as a deprecated compatibility package during the migration window.

AEO Summary

  • Package: tba-runtime-authorization-policy
  • Import root: tba_runtime_authorization_policy
  • Component kind: Authorization package
  • Use it for authorization policy surfaces rather than credential verification or token signing.
  • It owns authority roles, RBAC, ABAC, delegation, policy replay, and decision audit concepts.
  • Administrator objects, PolicyEngine, ServiceIdentityRegistry, and AdminGate are implemented in this package as storage-backed programmatic surfaces.
  • Deterministic rule objects live in tba-concrete-authorization-policy-rules; the decision engine, authority derivation graph, and invariant registry each live in their own 10-layer concrete package.
  • Canonical authz-policy surfaces live in this package; tigrbl-identity-policy re-exports this package from pkgs/deprecated for compatibility.

Installation

pip install tba-runtime-authorization-policy
# or
uv add tba-runtime-authorization-policy

Usage

from tba_runtime_authorization_policy import AuthorityRole, AuthorityScope
from tba_runtime_authorization_policy import AdminGate, ABACAdministrator, DelegatedAdministrator
from tba_runtime_authorization_policy import PolicyEngine, RBACAdministrator, ServiceIdentityRegistry
from tba_runtime_authorization_policy import AuthorityDerivationGraph, PolicyDecisionEngine
from tba_runtime_authorization_policy import AuthorizationInvariant, AuthorizationSafetyPropertyEvaluator

assert AuthorityRole.ADMIN.value == "admin"
scope = AuthorityScope("tenant-a", "client.read")
graph = AuthorityDerivationGraph()
abac = ABACAdministrator(db)
delegated = DelegatedAdministrator(db)
engine = PolicyDecisionEngine()
gate = AdminGate(app, deployment=deployment)
orchestrator = PolicyEngine(db=db)
invariants = (
    AuthorizationInvariant(
        invariant_id="authz.non_escalation",
        title="No escalation",
        property_family="safety",
        statement="Effective authority cannot exceed granted closure.",
        verification_method="graph",
    ),
)
rbac = RBACAdministrator(db)
services = ServiceIdentityRegistry()

Package Boundary

  • Authority roles, grants, permissions, scopes, and decision inputs
  • RBAC and ABAC policy surfaces backed by tba-storage-core
  • AdminGate ASGI control-plane gating
  • ABAC Administrator attribute policy behavior
  • Delegated Administrator tenant visibility, client exposure, and mutation authority
  • PolicyEngine storage-backed decision orchestration
  • RBAC Administrator role and assignment behavior
  • Service identity registry behavior
  • Deterministic engine, invariant, and authority graph imports re-exported from standalone 10-layer concrete packages
  • Delegated administration and attenuation
  • Decision logs, replay, stability, and determinism helpers
  • Governance policy lifecycle, provenance, and release posture

Governance

This package is part of the SSOT-governed TBA package suite. New authorization implementation work should prefer this package name over tigrbl-identity-policy.

Metadata

Release files for tba-runtime-authorization-policy 0.4.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tba-runtime-authorization-policy 0.4.0.dev2
File Size Uploaded Provenance Actions
tba_runtime_authorization_policy-0.4.0.dev2.tar.gz 6.7 kB Without provenance Details for tba_runtime_authorization_policy-0.4.0.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tba-runtime-authorization-policy 0.4.0.dev2
File Interpreter ABI Platform Actions
tba_runtime_authorization_policy-0.4.0.dev2-py3-none-any.whl Python 3 none any Details for tba_runtime_authorization_policy-0.4.0.dev2-py3-none-any.whl

Total release size: 17.1 kB

Release files / tba_runtime_authorization_policy-0.4.0.dev2.tar.gz

Download URL tba_runtime_authorization_policy-0.4.0.dev2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9b698f2d9e9cc112305103abb004860c1faa87faf6998bb9bff178371dc8a2dd
BLAKE2b-256 checksum
How to use checksums
40dc50a686d9cf609aa2e7f8845daac91a0bc4f360b6be40f4065dac1d2f13ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tba_runtime_authorization_policy-0.4.0.dev2-py3-none-any.whl

Download URL tba_runtime_authorization_policy-0.4.0.dev2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97de6a164f3b36fea0054a639a37b2ac89dee28ba646e2050f142317db5d15b2
BLAKE2b-256 checksum
How to use checksums
d04df57e4e7093e752144ddcbdfcfc23cd589d22dd21b91a6f0d60cb970dfd32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tba-runtime-authorization-policy 0.4.0.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page