Repository navigation
Releases
v0.5.0
Added
- Per-operation credentials in the API description.
openapi/agentic-auth.jsonnow
declares, for every operation, which token it accepts (adminToken,auditToken,
enrollToken,consentToken,humanIdToken,hopToken), andsecurity: []on the
public ones. The declaration is generated from the checks each route runs, and a test
holds the two together. - Admin actions name the person who took them. Ratify, revoke (and, below, reject)
accept an optionalAgentic-Auth-Acting-Admin: <issuer>|<subject>|<display name>header
when made with the admin token. The record keeps the display name inratified_by/
revoked_byand theissuer|subjectin the new*_by_subjectfields; without the header it
saysadmin, as before. The header attributes and never authorises; with any other token it
is ignored, logged without its value, and counted inagentic_auth_acting_admin_ignored.
CLI:--acting-admin(orAGENTIC_AUTH_ACTING_ADMIN) onsandbox ratifyand
identity revoke. SDK:AgenticAuthClient(..., acting_admin=...), and
admin.ratify_proposal(). - A gap-free audit feed.
GET /v1/audit/decisions/feed?after=start|now|<position>reads
the decision log forward, oldest first. A row is served only once every transaction older
than it has finished, so a reader that resumes from the last position it saw never skips a
row that committed late: insertion order (seq) and commit order can differ, and aseq
cursor would miss those rows. Every audit row now carriesseqand an opaque
feed_position. CLI:agentic-auth audit tail [--after ...] [--follow], which prints the
resume position to stderr on exit. SDK:audit.feed()andaudit.tail(), an async iterator
with a.positionto persist. Needs PostgreSQL 13 or later; the control plane refuses to
start on an older server. The newest rows appear once the oldest open transaction in the
database finishes, so setidle_in_transaction_session_timeoutto keep a forgotten session
from holding the feed back. - Reject a cold-start proposal.
POST /v1/agents/{id}/proposed-manifest/rejectwith
{run_id, note}(the note is required) turns a proposal down. It never becomes a manifest:
the agent keeps whatever it had, a new sandbox run can propose again, and the proposal stays
on record with who, when and why. Allowed for a revoked agent. Counted in
agentic_auth_proposals_rejected. CLI:agentic-auth sandbox reject. SDK:
admin.reject_proposal(). - Every proposal, across agents.
GET /v1/proposed-manifests?status=proposed|ratified|rejected|any
lists cold-start proposals newest first with who decided each and the note. The audit-reader
token is enough. CLI:agentic-auth sandbox proposals. SDK:audit.proposals(). - See which step-up challenges are waiting.
GET /v1/consent/step-up?status=pending|approved|declined|expired|any
lists challenges newest first with their session, requested data class, target, reason,
lifetime, and who answered. The audit-reader token is enough. It never includes the
challenge id, which is what completes a challenge, nor anything derived from it, and there
is still no operator route that decides one. Backed by a new append-only table,
step_up_challenges(migration 0012); challenges raised before 0.5.0 are not listed, though
their answers are. CLI:agentic-auth consent step-ups. SDK:audit.step_ups(). - More audit filters.
target,data_classandpolicy_version(exact matches, combinable
with every existing filter) onGET /v1/audit/decisionsand the feed. CLI:--target,
--data-class,--policy-versiononaudit tail. SDK: the same keywords. - Audit summary.
GET /v1/audit/summary?since=&until=returns decisions, denials and
denials by reason for a window of at most 90 days, counted by the database rather than by
paging. CLI:agentic-auth audit summary. SDK:audit.summary(). - Migration 0013 adds indexes for the filters and a covering index for the summary, built with
CREATE INDEX CONCURRENTLYso a large audit log stays writable; it replaces the plaints
index. - Ratify now keeps the optional
noteit always accepted, returned asnoteand on the
proposal read asdecision_note.
Changed
- The API description no longer carries a single global
bearerAuthrequirement; each
operation states its own. - A second decision on a cold-start proposal is refused with
409 proposal_already_decided
(was409 already_ratified), anddetailsnames who decided it, when, and how. The decision
is now a single conditional update, so two concurrent ratifies can no longer both succeed. - Ratifying the proposal of a revoked agent is refused with
409 agent_revoked.
Fixed
GET /v1/agentsfailed with a 500 when any agent's newest manifest row was a pending
cold-start proposal:latest_statusnow allowsproposed.GET /v1/agents/{id}/proposed-manifestreports the proposal's realstatus(proposed,
ratifiedorrejected; it always saidproposed) and who decided it.- Embedded stores created by 0.4.x are refused, as with 0.4.0's upgrade: 0.5.0 adds columns
that creating missing tables cannot add. Re-create the store (agentic-authembedded stores
are for development and testing); server deployments migrate withalembic upgrade head.
v0.4.0
Added
The MCP 2026-07-28 OAuth 2.1 baseline: a standard MCP client can authenticate to Agentic
Auth with no Agentic-Auth-specific code, and the root of every delegation chain can be a
human your IdP actually signed in. Your IdP stays the authorization server: Agentic Auth
never runs a login, an authorization endpoint or client registration. Each milestone is its
own setting, off by default; with all of them off, behaviour is unchanged apart from the
three changes listed under Changed.
- The connector proxy and gateway as OAuth protected resources (M1,
AGENTIC_AUTH_GATEWAY_OAUTH_RESOURCE_ENABLED).- They publish Protected Resource Metadata (RFC 9728) naming your IdP, and answer a missing
or bad token with401and aWWW-Authenticatechallenge pointing at it. - They validate the IdP's access token themselves: signature against its JWKS, issuer,
audience (RFC 8707, exactly this proxy's URL), expiry, and an allowed signing algorithm.
A token that fails is refused before any policy decision. - A valid token starts a session through consent, once per token, and the usual per-call
decision runs with that session's grant. The client's token never goes upstream. - The IdP's keys are fetched before the process serves; if they cannot be, it does not start.
If they become unreachable later with none cached, calls are refused, never allowed.
- They publish Protected Resource Metadata (RFC 9728) naming your IdP, and answer a missing
- Verified consent (M2,
AGENTIC_AUTH_VERIFIED_CONSENT_ENABLED). Consent takes the user's
IdP token assubject_token, verifies it itself, and roots the session atiss#sub. The
session, every audit row and the chain query sayprincipal_source: verified. An asserted
user_subalone is refused, and one that disagrees with the token is refused without being
echoed.- A new
AGENTIC_AUTH_CONSENT_TOKENmay call consent and nothing else. Give it, never the
admin token, to a proxy or gateway.
- A new
- Client mapping (M4,
AGENTIC_AUTH_CLIENT_MAPPING_ENABLED). An admin maps an IdP client
(its tokens'azp) to a registered agent at/v1/agents/{agent_id}/clients, and that
client's sessions run in the agent's scope. An unmapped client, or one whose agent has no
pinned manifest, is refused withCLIENT_NOT_AUTHORIZEDandnext: cold_start: identified,
not authorized. Mappings are soft-removed, so the table is its own history. - Authorization server metadata (M3,
AGENTIC_AUTH_AS_METADATA_ENABLED). The control plane
serves RFC 8414 metadata at/.well-known/oauth-authorization-server: token exchange, JWKS,
consent, and no authorization or registration endpoint. Registration also follows each MCP
server'sauthorization_serversand rejects a declared data class that server does not
issue (DECLARED_EXCEEDS_AUTHORIZATION_SERVER), blocks when it is unreachable
(AUTHORIZATION_SERVER_UNAVAILABLE), and notes when there was nothing to check
(AUTHORIZATION_SERVER_CHECK_SKIPPED, never blocking). - An MCP authorization conformance suite (
tests/conformance/mcp_auth, M5), one test per
named requirement in itsREQUIREMENTS.md, run against the proxy and the gateway, server
and embedded. A release now publishes nothing unless it passes, and the report is
attached to the GitHub release asmcp-conformance.xml. agentic_auth_consent_refusals_total{reason}, for consent refusals, which have no audit row
because no session exists yet.- The embedded control plane supports every new setting, and its test IdP mints MCP-client
access tokens. Sessions it roots are recorded asprincipal_source: embedded-test.
Changed
These apply with every flag off.
- Security: relayed MCP methods no longer carry the client's credentials. The connector
proxy used to relayinitialize,tools/listand every other non-tools/callmethod with
all inbound headers, so the agent's bearer token reached the upstream server. It now strips
Authorization,CookieandProxy-Authorization.- Upgrade: an upstream that needs a credential on those methods gets an operator secret per
route,relay_authorization.
- Upgrade: an upstream that needs a credential on those methods gets an operator secret per
- Security: tokens from the human IdP must use an allowed signing algorithm. Enrollment
binding and step-up used to verify an ID token with whatever algorithm its header named.
They now accept onlyAGENTIC_AUTH_PRINCIPAL_IDP_ALGORITHMS, defaultRS256,ES256,EdDSA;
noneandHS*are refused at startup.- Upgrade: if your IdP signs with another algorithm, such as
PS256, set that variable.
- Upgrade: if your IdP signs with another algorithm, such as
- Embedded stores created by 0.2.0 or 0.3.0 do not open. The schema gained columns, which
an embedded store cannot add in place, so opening one raisesStoreVersionMismatch.- Upgrade: export it with the version that created it, and start a new store. Server
deployments migrate as usual (alembic upgrade head, migration0008_mcp_oauth_baseline).
- Upgrade: export it with the version that created it, and start a new store. Server
- The SDK's
Sessionignores response fields it does not know, so a newer control plane never
breaks an older client'sconsent(). New consent response fields appear only when they
carry information (verified consent on, or a mapped client).
Upgrade notes
- Turning on M3 changes
issin new tokens, because it needsAGENTIC_AUTH_ISSUERto be an
https URL (RFC 8414). Update any offline verifier pinned to the old issuer first. - Removing a client mapping does not end live sessions. They expire within
SESSION_TTL_SECONDS. Revoke the agent for an immediate stop. - Running M1 with verified consent off needs
AGENTIC_AUTH_GATEWAY_ASSERTED_ROOT_SCOPE, and
roots sessions in an asserted subject: refusals sayroot_of_authority: asserted. Turn on
verified consent wherever you can.
v0.3.0
Added
The Phase 5 enforcement points and consent flows. They were declared in 0.1.x (the
agentic-auth-gateway and agentic-auth-boundary commands existed) but their code never
reached this repository, so those commands could not start.
- Gateway (
agentic-auth-gateway,agentic_auth.gateway). A shared, central enforcement
point that runs the sameenforce()as the sidecar, so it reaches the same decisions.- It fails closed when the control plane is unreachable or past its decision deadline.
- It supports observe mode, and runs as several stateless instances.
- Boundary adapters (
agentic-auth-boundary,agentic_auth.boundary), for agents you
cannot modify:- Resource-server guard (
RequireAgenticAuthmiddleware): the tool admits only a
grant plus identity. - MCP connector proxy (
agentic-auth-boundary mcp-proxy): filterstools/listto
what the manifest declares, and decides everytools/call. - Each labels its decisions with the guarantee level it can actually give.
- Resource-server guard (
- Step-up consent. A recoverable refusal (
SCOPE_NOT_CONSENTED) carries a challenge.- The consenting human approves it at
/v1/consent/step-up/completewith their own
credential. The session's grant is not enough, so an agent cannot approve its own
widening. - The blocked hop then resumes, with its hop budget intact.
client.step_up(),client.approve()andclient.resume()now have a server to call.
- The consenting human approves it at
- Cold start. A first-time agent can be registered with no manifest. It then authorizes
nothing. To give it a manifest:- Record what it does under test with
agentic-auth drift record. - Run
agentic-auth sandbox propose-local <trace> --agent <name>, which proposes a manifest
covering exactly what was observed. - A person reviews the proposal, filling in data classes and marking privileged tools,
then registers it. That review is the ratification: nothing governs until then.
- Record what it does under test with
- Consent to a subset (
consent(data_classes=...)), behind
AGENTIC_AUTH_CONSENT_GRANULARITY_ENABLED. - Feature flags. Each new control is off by default:
CONSENT_GRANULARITY_ENABLED,
STEP_UP_ENABLEDandSANDBOX_ENABLED. With them off, no new route is advertised and
every decision is unchanged. - Contracts and testing:
docs/contracts/conformance.mdand
docs/contracts/stepup.openapi.yaml. A conformance test holds the SDK, sidecar and gateway
to the same decisions. - The embedded control plane serves step-up and sandbox too. The embedded/remote conformance
suite now runs the full step-up flow: refused, approved by the human, resumed.
Not yet included
- Server-side sandbox observation.
/v1/agents/{id}/sandboxandagentic-auth sandbox runopen an observation run. Nothing yet feeds a run the agent's calls, so a run ends
empty and its proposal is markedcovers_no_behaviour. Usesandbox propose-local(above)
until then. Ratifying a server-side proposal works. - The egress proxy (network mode).
agentic-auth-boundary egress-cagenerates the
certificate authority, and the connection-inspection logic is in place and tested.
egress-proxyitself does not run yet: it needs a CONNECT-capable listener, and it says
so and exits rather than starting a proxy that cannot enforce.
Fixed
- The OpenAPI document reports the package's version instead of a hard-coded
0.1.0.
v0.2.1
Added
- Move an embedded instance to a deployment. Starting from
EmbeddedControlPlane.export():agentic-auth manifest register-bundle <bundle>re-registers every manifest version, in
order and downstream first, through the admin API. Each version reconciles against the
deployment's real capability discovery.agentic-auth audit import <bundle>appends the exported decisions to a new
append-only table,imported_audit(migration0007), apart from the deployment's own
log. Re-running it adds nothing.- Enrollments are deliberately not carried over: an agent re-enrolls with its own key,
because the bundle holds no private keys and enrollment is proof of possessing one. - A malformed bundle is refused, naming the line.
Changed
- The walkthrough notebook runs on the embedded control plane. It needs
pip install 'authzai[notebook]'and nothing else: no Docker, no PostgreSQL, no Redis
server. Its outputs no longer show machine-specific paths, and
tests/embedded/test_walkthrough_notebook.pyruns it on every pull request. EmbeddedControlPlanegains:configure(**settings): change a setting for the rest of the run, as a redeploy wouldadmin_token,audit_token,enroll_tokenandidp
- Every
/.well-known/oauth-protected-resourcerequest inside an embedded instance is now
answered by the capability source, including for a host with a tool server mounted. - An embedded durable store created by 0.2.0 is moved forward when opened: the new table is
created and existing data is kept. A store from any other schema revision is still
refused.
v0.2.0
Added
-
Published to PyPI as
authzai. Releases are built and published by a tag-triggered
workflow, with no manual upload and no repository secret. Each release carries:- the same wheel and sdist on PyPI and on the GitHub release
SHA256SUMSand signed build provenance- a matching server image,
ghcr.io/xinweiiiii/agentic-auth
RELEASING.mdcovers cutting a release, recovering a half-finished one, and verifying a
download.
-
Install options. The base install is the offline verifier only (
pyjwt[crypto]). The
extras are:client: the agent SDKdrift: the CLI and CI checkembedded: see belowserver: the control plane, sidecar, gateway and boundaryotelandall
Importing a surface without its extra names the extra to install.
-
Embedded control plane (
agentic_auth.embedded,authzai[embedded]). The whole control
plane runs inside your process, on SQLite and an in-process Redis, with no server, database
or open port. It is the same app, PDP, token exchange and audit log a deployment runs, and
cp.client()returns the sameAgenticAuthClient. Instances are isolated from each other.
The store is temporary by default, or a single durable file that one process holds at a
time. On reopen, sessions created before the restart are refused (session_superseded)
rather than honoured without the taint and replay records they had. Embedded mode is for
development and testing only. It says so when it starts, and every decision it records is
labelleddeployment: embedded.tests/conformanceruns every scenario against both
deployments and requires identical results. -
audit_decisions.deployment(server|embedded), migration0006. It is additive:
existing rows read asserver. -
The import root is now
agentic_auth, notapp. A top-levelapppackage collided with
the application package of almost every FastAPI or Flask project that installed this one.
Imports becomefrom agentic_auth.sdk import AgenticAuthClient, and the control plane runs
asuvicorn agentic_auth.main:app. To migrate:
sed -E 's/\b(from|import) app\./\1 agentic_auth./g'. -
Logger names follow the module path, so
app.api.v1.authorizeis now
agentic_auth.api.v1.authorize. Update any logging configuration that names them.
Fixed
- The 0.1.0 notes and the README described the decision log as "hash-chained". It is not:
rows are append-only, enforced by the database, and each decision links to its parent, but
no row carries a hash of the one before it. The README now says what the log actually
guarantees. scripts/export_manifest_schema.pywrote to a path outside this repository. It now writes
docs/contracts/manifest.schema.json, the file the drift test reads.
v0.2.0rc2
Added
-
Published to PyPI as
authzai. Releases are built and published by a tag-triggered
workflow, with no manual upload and no repository secret. Each release carries:- the same wheel and sdist on PyPI and on the GitHub release
SHA256SUMSand signed build provenance- a matching server image,
ghcr.io/xinweiiiii/agentic-auth
RELEASING.mdcovers cutting a release, recovering a half-finished one, and verifying a
download.
-
Install options. The base install is the offline verifier only (
pyjwt[crypto]). The
extras are:client: the agent SDKdrift: the CLI and CI checkembedded: see belowserver: the control plane, sidecar, gateway and boundaryotelandall
Importing a surface without its extra names the extra to install.
-
Embedded control plane (
agentic_auth.embedded,authzai[embedded]). The whole control
plane runs inside your process, on SQLite and an in-process Redis, with no server, database
or open port. It is the same app, PDP, token exchange and audit log a deployment runs, and
cp.client()returns the sameAgenticAuthClient. Instances are isolated from each other.
The store is temporary by default, or a single durable file that one process holds at a
time. On reopen, sessions created before the restart are refused (session_superseded)
rather than honoured without the taint and replay records they had. Embedded mode is for
development and testing only. It says so when it starts, and every decision it records is
labelleddeployment: embedded.tests/conformanceruns every scenario against both
deployments and requires identical results. -
audit_decisions.deployment(server|embedded), migration0006. It is additive:
existing rows read asserver. -
The import root is now
agentic_auth, notapp. A top-levelapppackage collided with
the application package of almost every FastAPI or Flask project that installed this one.
Imports becomefrom agentic_auth.sdk import AgenticAuthClient, and the control plane runs
asuvicorn agentic_auth.main:app. To migrate:
sed -E 's/\b(from|import) app\./\1 agentic_auth./g'. -
Logger names follow the module path, so
app.api.v1.authorizeis now
agentic_auth.api.v1.authorize. Update any logging configuration that names them.
Fixed
- The 0.1.0 notes and the README described the decision log as "hash-chained". It is not:
rows are append-only, enforced by the database, and each decision links to its parent, but
no row carries a hash of the one before it. The README now says what the log actually
guarantees. scripts/export_manifest_schema.pywrote to a path outside this repository. It now writes
docs/contracts/manifest.schema.json, the file the drift test reads.
v0.1.1
Fixed
- A non-editable install (
pip install "agentic-auth @ git+https://...", and the
drift-check action's default install) shipped only the top-levelapppackage, so the
agentic-authcommand failed withModuleNotFoundError: No module named 'app.cli'.
Every subpackage is now included, and CI installs the built package to keep it so. - The secret scan failed on every pull request:
gitleaks-actionnow requires
GITHUB_TOKENthere, and no check here may need a secret. CI runs a pinned,
checksum-verified gitleaks binary instead.
v0.1.0
First public release.
Added
- Control plane — agent manifests, registration, reconciliation against discovered
capabilities, and a compiler that turns declarations into a policy DAG. - PDP — a decision per hop, recorded before anything is dispatched. An allowed call
that cannot be recorded is refused rather than dispatched unrecorded. - Token exchange (RFC 8693) — authority narrows at every hop, carrying an
actchain
naming who acts for whom. - Four enforcement points — sidecar, gateway, boundary adapter, and in-process SDK.
- Audit plane — append-only, hash-chained decision log, queryable by action, agent, or
delegation chain. - Identity — agent enrollment bound to a human principal, proof of possession at
exchange, and revocation that offline verifiers honour. - Taint and provenance — content from untrusted sources is labelled, and the label
follows it into later calls. - Transaction tokens — a privileged call is bound to its exact parameters.
- Step-up consent and cold start — a recoverable deny can ask rather than fail, and a
sandboxed run can propose a manifest. - Observability — Prometheus metrics with no identities in any label, plus opt-in
OpenTelemetry traces and logs that no-op when the SDK is absent. Dashboards and alert
rules included. - CI drift check — a GitHub Action failing a pull request when an agent's observed
calls include an edge its manifests never declared. - Offline verifier library (
app.verify) — installable withpyjwt[crypto]alone.