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.dev3

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.dev3
File Size Uploaded Provenance Actions
tba_runtime_authorization_policy-0.4.0.dev3.tar.gz 6.8 kB Without provenance Details for tba_runtime_authorization_policy-0.4.0.dev3.tar.gz

Built distribution (wheel)

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

Total release size: 17.1 kB

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

Download URL tba_runtime_authorization_policy-0.4.0.dev3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
08f514426cc4171e2586139ebc5a98b9ddfff0a201e80696b41caedd82f19b31
BLAKE2b-256 checksum
How to use checksums
be58ddcf947faf70dec06edaef07fc0af933a109e464ccc7f8d6cf1e7e819ccc
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.dev3-py3-none-any.whl

Download URL tba_runtime_authorization_policy-0.4.0.dev3-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c395763ab61e4393497e4e94968a49897746a4290cbeb6b89fea741d479ad4b
BLAKE2b-256 checksum
How to use checksums
7198ab8a16ec29f3c18ee92cd78cddf04b158f58013693e8a04beaa481b304ae
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.dev3

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