Metadata-Version: 2.4
Name: tba-runtime-identity
Version: 0.4.0.dev3
Summary: Runtime assembly, profile loading, feature flags, deployment resolution, runner adapters, and diagnostics for TBA identity apps.
License-Expression: Apache-2.0
Keywords: tigrbl,identity,runtime,asgi,uvicorn,hypercorn,tigrcorn,feature-flags,deployment-profile,iam
Requires-Python: >=3.10,<3.16
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Provides-Extra: hypercorn
Provides-Extra: servers
Provides-Extra: tigrcorn
Provides-Extra: uvicorn
Requires-Dist: cryptography (>=45)
Requires-Dist: hypercorn (==0.18.0) ; extra == "hypercorn"
Requires-Dist: hypercorn (==0.18.0) ; extra == "servers"
Requires-Dist: tba-bases-certificate (==0.4.0.dev2)
Requires-Dist: tba-capability-protected-envelope (==0.4.0.dev2)
Requires-Dist: tba-capability-public-key-authentication (==0.4.0.dev2)
Requires-Dist: tba-capability-public-key-credential-management (==0.4.0.dev2)
Requires-Dist: tba-capability-public-key-registration (==0.4.0.dev2)
Requires-Dist: tba-concrete-certificate-x509 (==0.4.0.dev2)
Requires-Dist: tba-contracts-identity (==0.4.0.dev2)
Requires-Dist: tba-contracts-security-trust (==0.1.0)
Requires-Dist: tba-profile-credential-vc-jose-cose (==0.4.0.dev2)
Requires-Dist: tba-profile-workload-authentication-wimse-mtls (==0.4.0.dev2)
Requires-Dist: tba-profile-workload-credential-cwt-svid-extension (==0.4.0.dev2)
Requires-Dist: tba-profile-workload-credential-wimse-wic (==0.4.0.dev2)
Requires-Dist: tba-profile-workload-credential-wimse-wit (==0.4.0.dev4)
Requires-Dist: tba-profile-workload-proof-wimse-wpt (==0.4.0.dev4)
Requires-Dist: tba-protocol-cwt (==0.4.0.dev3)
Requires-Dist: tba-protocol-identity-did-core (==0.4.0.dev2)
Requires-Dist: tba-protocol-security-cose (==0.4.0.dev2)
Requires-Dist: tba-protocol-security-jws (==0.4.0.dev2)
Requires-Dist: tba-protocol-webauthn (==0.4.0.dev2)
Requires-Dist: tba-protocol-workload-wimse-identifier (==0.4.0.dev2)
Requires-Dist: tba-provider-identity-jose (==0.4.0.dev2)
Requires-Dist: tba-provider-jose-cryptography (==0.4.0.dev3)
Requires-Dist: tba-provider-secret-hashing-bcrypt (==0.1.0)
Requires-Dist: tba-runtime-identity-storage (==0.4.0.dev2)
Requires-Dist: tba-storage-core (==0.4.0.dev4)
Requires-Dist: tigrbl (==0.4.5.dev8)
Requires-Dist: tigrcorn (==0.3.8) ; (python_version >= "3.11") and (extra == "servers")
Requires-Dist: tigrcorn (==0.3.8) ; (python_version >= "3.11") and (extra == "tigrcorn")
Requires-Dist: uvicorn[standard] (==0.41.0) ; extra == "servers"
Requires-Dist: uvicorn[standard] (==0.41.0) ; extra == "uvicorn"
Project-URL: Homepage, https://github.com/tigrbl/tigrbl_auth
Project-URL: PyPI, https://pypi.org/project/tba-runtime-identity/
Project-URL: Repository, https://github.com/tigrbl/tigrbl_auth
Project-URL: Source, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/60-runtime/tba-runtime-identity
Project-URL: SSOT, https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json
Description-Content-Type: text/markdown

# tba-runtime-identity

<!-- BEGIN TBA README HEADER -->
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth#readme"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="240"></a>
</p>
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/60-runtime/tba-runtime-identity/pyproject.toml"><img alt="Checkout: 0.4.0.dev3" src="https://img.shields.io/badge/Checkout-0.4.0.dev3-1f6feb"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/60-runtime/tba-runtime-identity/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.16" src="https://img.shields.io/badge/Python-%3E%3D3.10%2C%3C3.16-3776ab"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/60-runtime/tba-runtime-identity/pyproject.toml"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-525252"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/60-runtime"><img alt="Layer: 60 runtime" src="https://img.shields.io/badge/Layer-60%20runtime-0a7f5a"></a>
<a href="https://pypi.org/project/tba-runtime-identity/"><img alt="PyPI version for tba-runtime-identity" src="https://img.shields.io/pypi/v/tba-runtime-identity?label=tba-runtime-identity%20PyPI"></a>
</p>
<p align="center">
<a href="https://pepy.tech/project/tba-runtime-identity"><img alt="Monthly PyPI downloads for tba-runtime-identity" src="https://static.pepy.tech/badge/tba-runtime-identity/month"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/60-runtime/tba-runtime-identity/README.md#verification"><img alt="Evidence: verification" src="https://img.shields.io/badge/Evidence-verification-8250df"></a>
</p>
<!-- END TBA README HEADER -->

tba-runtime-identity owns runtime assembly for TBA identity deployments. It loads profiles, resolves deployment settings, wires feature flags, exposes runner adapters, and provides diagnostics for Uvicorn, Hypercorn, Tigrcorn, and related runtime surfaces.

## Quick start

With [uv](https://docs.astral.sh/uv/) available, save the example as `quickstart.py`. This command uses the published package in an isolated Python 3.12 environment.

```python
from tba_runtime_identity import CapabilityRegistry

assert callable(CapabilityRegistry)
```

```bash
uv run --isolated --no-project --python 3.12 --with "tba-runtime-identity==0.4.0.dev2" python quickstart.py
```

The import and assertion succeed when the CapabilityRegistry entry point is available.

## AEO Summary

- Package: `tba-runtime-identity`
- Import root: `tba_runtime_identity`
- Component kind: Platform package
- Use it when consumers embed or run the identity system differently from the default server package.
- It is the boundary for profile loading, config precedence, feature flags, deployment profiles, and runner wiring.
- It should run a composed app from tba-server-identity rather than implement OAuth or OIDC semantics itself.

## Installation

```bash
pip install tba-runtime-identity
# or
uv add tba-runtime-identity
```

## Usage

```python
from tba_runtime_identity.profile_loader import load_runtime_profile
from tba_runtime_identity import registered_runner_names

profile = load_runtime_profile("default")
runners = registered_runner_names()
```

## Package Boundary

- Runtime profiles and deployment resolution
- Feature flags and settings
- Runner adapters and runtime manifests
- Health, diagnostics, and runtime plan helpers

## WIMSE workload identity

The `workload.wic_service` and `workload.wit_token_service` modules expose
issuance to applications with an authenticated workload enrollment principal.
Each service resolves the authorized identity in its configured trust domain.

Receiving applications can call `build_workload_identity_composition()` with
`enable_wimse_wpt=True`. Supply `wit_trust_by_domain` and `wpt_replay_store`
along with the workload credential dependencies. Composition exposes
`wimse_wpt_verifier` for HTTP authentication and proof verification. Set the
expected recipient audience from application configuration. Use a shared
atomic replay store when multiple replicas receive the same audience.

## Related Packages

- [tba-runtime-identity-administration](https://pypi.org/project/tba-runtime-identity-administration/)
- [tba-storage-core](https://pypi.org/project/tba-storage-core/)
- [tba-server-identity](https://pypi.org/project/tba-server-identity/)
- [tba-runtime-identity](https://pypi.org/project/tba-runtime-identity/)
- [tba-operator-identity](https://pypi.org/project/tba-operator-identity/)
- [tba-testkit-identity](https://pypi.org/project/tba-testkit-identity/)

## Project Links

- [PyPI package](https://pypi.org/project/tba-runtime-identity/)
- [Source repository](https://github.com/tigrbl/tigrbl_auth)
- [Package source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/60-runtime/tba-runtime-identity)
- [SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json)

## Governance

This package is part of the SSOT-governed TBA identity package suite. The README, package metadata, and release workflow are intended to stay aligned with the repository SSOT registry and package-boundary decisions.

## Verification

When WIMSE WPT verification is enabled, workload composition also constructs
`wimse_wpt_issuer` if `wpt_signer`, `wpt_wit`, and
`wpt_workload_key_reference` are supplied together. Partial issuer configuration
is rejected. Existing verifier-only composition is unchanged; direct use of the
profile's `WptProofIssuer` remains available for sender-only processes.

The quick start was run with the pinned distribution from PyPI and its declared dependencies. See the [public package entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/60-runtime/tba-runtime-identity/src/tba_runtime_identity/__init__.py).

