# Overview

> Every page of this site: /visado/llms.txt

<img src="https://raw.githubusercontent.com/dyokto/.github/main/assets/projects/visado.png" width="96" alt="visado">


visado is an ext_authz service for AI agent traffic that runs behind Envoy, Istio or agentgateway. For each request it verifies the caller's workload credential and the delegation chain behind the request, asks an [AuthZEN](https://openid.net/specs/authorization-api-1_0.html) policy decision point, and passes the verified chain downstream as an [OAuth Transaction Token](https://datatracker.ietf.org/doc/draft-ietf-oauth-transaction-tokens/).

:::caution
visado is pre-alpha and implements Internet-Drafts that are still changing. AAT, asor and RFC 8693 `act` are the delegation-chain formats so far. See the [roadmap](https://dyokto.github.io/visado/roadmap/).
:::

## How it fits

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://github.com/dyokto/visado/raw/main/docs/assets/flow-dark.svg">
  <img alt="Agent A calls through Envoy; Envoy asks visado over ext_authz; visado asks the PDP over AuthZEN and the request reaches agent B with a Transaction Token" src="https://github.com/dyokto/visado/raw/main/docs/assets/flow-light.svg">
</picture>

It follows the composition in [draft-ietf-wimse-aims](https://datatracker.ietf.org/doc/draft-ietf-wimse-aims/). It does not issue identities, log users in, evaluate policy or route traffic; see [docs/scope.md](https://dyokto.github.io/visado/concepts/scope/).

## Components

| Component | Spec | Status |
| --- | --- | --- |
| [`visado-txn-token`](https://github.com/dyokto/visado/tree/main/crates/txn-token) | draft-ietf-oauth-transaction-tokens-11 | alpha: mint, verify, replace, request parsing, conformance vectors |
| [`visado-credentials`](https://github.com/dyokto/visado/tree/main/crates/credentials) | WIMSE WIT with WPT or HTTP signatures (draft-ietf-wimse-http-signature-08) and mTLS via [wimsey](https://github.com/dyokto/wimsey), SPIFFE JWT-SVIDs, OAuth access tokens (bearer or DPoP, RFC 9449) | alpha |
| [`visado-authzen`](https://github.com/dyokto/visado/tree/main/crates/authzen) | AuthZEN 1.0 | alpha: evaluation and discovery; batch and search not used |
| [`visado-ssf`](https://github.com/dyokto/visado/tree/main/crates/ssf) | OpenID SSF 1.0, CAEP 1.0, RISC 1.0 (RFC 8417, RFC 8935, RFC 8936, RFC 9493) | pre-alpha: Receiver by push or poll, revocations enforced by the gate, 51 own vectors |
| [`visado-extauthz`](https://github.com/dyokto/visado/tree/main/crates/extauthz) | Envoy ext_authz v3 | alpha |
| [`visado`](https://github.com/dyokto/visado/tree/main/crates/server) | | alpha: server binary |
| [`visado-chain`](https://github.com/dyokto/visado/tree/main/crates/chain) | | alpha: normalized chain model and decoder trait |
| [`visado-chain-aat`](https://github.com/dyokto/visado/tree/main/crates/chain-aat) | draft-niyikiza-oauth-attenuating-agent-tokens-02 | alpha: §8 verification, 229/229 published vectors, enforced by the gate |
| [`visado-chain-asor`](https://github.com/dyokto/visado/tree/main/crates/chain-asor) | draft-asor-wimse-agent-delegation-chain-03 | alpha: §6 verification with DPoP and Token Status Lists, 36/36 published vectors, enforced by the gate |
| [`visado-chain-act`](https://github.com/dyokto/visado/tree/main/crates/chain-act) | RFC 8693 `act` claim | alpha: the current actor bound to the caller, prior actors kept out of the PDP, enforced by the gate |
| Chain view, OpenTelemetry | | alpha: `visado.authorize` spans over OTLP; an opt-in page of recent decisions and their chains at `/chain` ([design](https://dyokto.github.io/visado/concepts/design/#chain-view)) |

## Install

```bash
cargo install visado
```

Signed binaries for Linux and macOS (x86-64 and arm64), with an SPDX SBOM and SLSA provenance, are on the [releases page](https://github.com/dyokto/visado/releases). The library crates are on [crates.io](https://crates.io/search?q=visado).

## Try it

```bash
git clone https://github.com/dyokto/visado
cd visado
cargo test --workspace
cargo run -p visado -- deploy/local/visado.toml
```

To see it behind Envoy and agentgateway with a real PDP, run the [lab](https://dyokto.github.io/visado/getting-started/): `docker compose up -d --build && docker compose run --rm --no-deps demo` in `deploy/lab`, with only Docker on the host. That runs OPA as the PDP, the MCP route and four attack demos ([deploy/lab/attacks](https://github.com/dyokto/visado/blob/main/deploy/lab/attacks/README.md)); `docker compose -f compose.yaml -f compose.cerbos.yaml up -d --build` runs Cerbos instead. The Transaction Token conformance vectors in [conformance/](https://github.com/dyokto/visado/tree/main/conformance) can be used to test other implementations; the AAT vectors there are a copy of the suite from [tenuo-ai/tenuo](https://github.com/tenuo-ai/tenuo), and the asor vectors a copy of the set from [attenu-io/attenu-guard](https://github.com/attenu-io/attenu-guard).

## Documentation

- [docs/scope.md](https://dyokto.github.io/visado/concepts/scope/): what visado covers and what it leaves to other projects
- [docs/design.md](https://dyokto.github.io/visado/concepts/design/): request pipeline and plugin interfaces
- [SPEC-MAP.md](https://dyokto.github.io/visado/spec-map/): pinned draft revisions and known divergences
- [docs/assurance-case.md](https://dyokto.github.io/visado/security/assurance-case/): what visado protects against, what it does not, and the evidence
- [docs/research/](https://dyokto.github.io/visado/research/): background research

## Contributing

See [CONTRIBUTING.md](https://dyokto.github.io/visado/contributing/). Commits need a DCO sign-off. visado follows the [CNCF Code of Conduct](https://dyokto.github.io/visado/code-of-conduct/).

## Security

Do not open a public issue for a vulnerability. Follow [SECURITY.md](https://dyokto.github.io/visado/security/policy/).

## License

[Apache-2.0](https://github.com/dyokto/visado/blob/main/LICENSE)
