ANS: An Agent Identity Assurance Service from the Linux Foundation
#ans#agent-identity#transparency-log#security#ai-agents
Contents
ANS (Agent Name Service) is a service in which a third party checks an agent’s name and registration, records them in a public log, and lets the caller verify them directly against the log’s signatures.
For example, once the MCP server at weather.example.com is registered as ans://v1.0.0.weather.example.com, a caller can look up that name's domain control proof, server certificate, registration time, and current status in the log.
ANS joined the Linux Foundation as a project on November 10, 2026.
1. What Is ANS?
ANS consists of two services: the Registration Authority (RA) and the Transparency Log (TL).
The RA checks the domain control and DNS records of the agent’s operator (Agent Hosting Platform, AHP), and the TL records the registration events the RA signs in an append-only Merkle tree.
A verifier calling the agent never queries the RA; it checks the registration using only DNS records and records signed by the TL.
Transparency Log: RFC 6962 Certificate Transparency
Merkle tree: RFC 6962 Section 2.1 Merkle Hash Trees
Each step is covered in 3.1 Registration, 3.2 Transparency Log, and 3.3 Verification.
An agent registered with ANS gets a name made of a scheme, a semantic version, and a host, such as ans://v1.0.0.weather.example.com.
Registered information cannot be modified, so when the endpoints or metadata change, the operator registers a new version such as v1.1.0.
A name cannot be registered twice, and each name can have one endpoint per protocol (A2A, MCP, HTTP-API).
The operator can optionally register a Verified Identity in did:web or did:key form; once control of the identity is proven with a signature, it is linked to the agent.
2. Usage Examples
2.1 Verifying an Agent Before Connecting
An MCP client or agent orchestrator can check that a remote agent is registered before connecting to it.
The badge tier procedure defined in the specification (ANS-6) is as follows.
- Look up the
_ans-badge.weather.example.comTXT record - Check that the record’s
urlpoints to a trusted TL domain, then fetch the badge- The list of trusted TLs comes from configuration or a separate channel, never from the DNS records being verified
- Check the badge status
- Proceed if
ACTIVE; reject ifEXPIREDorREVOKED
- Proceed if
- Connect over TLS and compare the server certificate
- The certificate fingerprint must match the server certificate fingerprint in the badge
- The host in the badge must match the host actually dialed
2.2 Authorizing a Calling Agent at the Gateway
In the other direction, the side serving an agent can authorize requests by checking the calling agent’s ANS name.
ans-gateway-auth, from the same organization, implements the specification’s agent-to-agent authentication (ANS-6 Method B) as an Envoy ext_authz service, ans-authz.
- The calling agent sends three values in request headers
DPoP: a DPoP proof (RFC 9449) signed with the identity certificate’s keyX-SCITT-Receipt: the receiptX-ANS-Status-Token: the status token
- The gateway asks
ans-authzto check the request through ext_authz ans-authzverifies the request- Receipt and status token: verified offline with cached TL public keys
- Identity certificate: its fingerprint must be in the status token’s
validIdentityCerts - DPoP proof: signed with the certificate’s key, bound to the request method and URL, and not replayed
allowedAnsNames: an optional list of names allowed to call
- The gateway forwards the allowed request to the target agent
- The calling agent’s details are passed in the
X-ANS-Name,X-ANS-Agent-Id,X-ANS-Fingerprint, andX-ANS-JKTheaders
- The calling agent’s details are passed in the
3. Core Flow
3.1 Registration
The operator registers an agent by calling the RA API in this order: the registration request, verify-acme, and verify-dns.
| Call | Operator does first | RA does | Status after the call |
|---|---|---|---|
| Registration request | Nothing | Creates the registration, returns a challenge | PENDING_VALIDATION |
verify-acme | Publishes the challenge | Checks the challenge, issues certificates | PENDING_DNS |
verify-dns | Publishes DNS records | Checks the records, creates the AGENT_REGISTERED event | ACTIVE |
The RA API defines seven registration statuses (AgentLifecycleStatus).
| Status | Meaning |
|---|---|
PENDING_VALIDATION | Just created, waiting for the challenge to be published |
PENDING_DNS | Domain control checked and certificates issued, waiting for DNS records |
ACTIVE | DNS records checked |
REVOKED | Revoked; cancelling a pending registration also leads to REVOKED |
EXPIRED | The deadline passed while pending |
DEPRECATED | The operator marked this version for retirement |
FAILED | Ended in failure while pending |
A registration that ends before reaching ACTIVE is never recorded in the TL.
If the records do not match at verify-dns, the registration stays in PENDING_DNS and the call can be retried.
The specification only defines DEPRECATED and FAILED; no RA operation moves a registration into either status yet.
3.1.1 Domain Control Validation
The RA answers a registration request with an ACME challenge (RFC 8555).
The challenge is a token for checking that the operator actually controls the host, and it must be published in DNS or on a web server before it expires.
After the operator publishes the token and calls verify-acme, the RA looks up the published value and decides whether the operator controls the domain.
There are two methods, depending on where the token is published.
| Method | What the operator publishes |
|---|---|
| DNS-01 | _acme-challenge.weather.example.com TXT record |
| HTTP-01 | http://weather.example.com/.well-known/acme-challenge/<token> resource |
The RA never writes to the operator’s DNS zone.
The operator publishes both the challenge and the production records, and the RA only checks that they are published.
3.1.2 DNS Records
If a registration request omits discoveryProfiles, the default ANS_DNSAID applies.
When one MCP endpoint is registered with this setting, the records returned in the registration detail response during PENDING_DNS are as follows.
| Record | Name | Value | Required |
|---|---|---|---|
| SVCB | weather.example.com | 1 . alpn=mcp port=443 key65400=<metadata URL> key65402=mcp | Yes |
| TXT | _ans-badge.weather.example.com | v=ans-badge1; version=v1.0.0; url=<TL badge URL> | Yes |
| TLSA | _443._tcp.weather.example.com | 3 0 1 <server certificate SHA-256> | No |
- SVCB (RFC 9460): one row per endpoint.
alpngives the protocol, andkey65400gives the location of a metadata document such as an MCP server card or an A2A Agent Card.key65400andkey65402are private-use numbers, because the DNS-AID draft’s parameters are not yet registered with IANA - _ans-badge TXT: points to the badge URL on the TL, and verification starts from this record. The badge is the per-agent registration status response (JSON) served by the TL
- TLSA (RFC 6698): pins the SHA-256 fingerprint of the server certificate in DNS
If the zone is signed with DNSSEC, the validation result for SVCB, HTTPS, and TLSA records (dnssecVerified) is also recorded in the TL.
There is also an ANS_TXT profile that publishes discovery information in _ans TXT records instead of SVCB. Under either profile, the _ans-badge TXT and TLSA records are published in the same form.
3.1.3 Certificate Issuance
Two kinds of certificates are issued at the verify-acme step, and they prove different things.
| Identity certificate | Server certificate | |
|---|---|---|
| SAN | URI ans://v1.0.0.weather.example.com, DNS weather.example.com | DNS weather.example.com |
| Issuer | The RA’s private CA | The configured issuer (such as an ACME CA), or submitted by the operator (BYOC) |
| Use | Client certificate for agent-to-agent mTLS | TLS server certificate |
| Condition | Issued only if the registration request includes a CSR; cannot be added later | Each registration needs exactly one of a CSR or a certificate |
Both certificate fingerprints are included in the TL record.
The server certificate fingerprint equals the TLSA record value, so the same certificate can be checked in both DNS and the TL.
3.2 Transparency Log
TL events are created only when a registration becomes ACTIVE or REVOKED.
Event type (eventType) | When it is recorded |
|---|---|
AGENT_REGISTERED | When verify-dns succeeds and the registration becomes ACTIVE, once per registration |
AGENT_REVOKED | When an ACTIVE registration is revoked |
AGENT_RENEWED, AGENT_DEPRECATED | Reserved names in the specification, not recorded yet |
The AGENT_REGISTERED event contains the name, the host, the DNS records, and both certificate fingerprints.
The RA canonicalizes the event with JCS (RFC 8785) and signs the bytes with its producer key.
The TL seals the signed event in an envelope carrying the TL’s signature, and computes the leaf hash SHA-256(0x00 || JCS(envelope)) over the whole envelope.
The leaf hash format is the same as in Certificate Transparency (RFC 6962).
| Artifact | Format | Contents |
|---|---|---|
| Receipt | SCITT COSE_Sign1 (CBOR tag 18), ES256 | The sealed envelope and a Merkle inclusion proof (tree size, leaf index, path, root) |
| Status token | COSE_Sign1 (CBOR tag 18), ES256, default TTL one hour | agentId, current status, valid certificate fingerprints, metadata hashes |
| Checkpoint | C2SP signed note | Tree size and root hash |
All three artifacts are signed with TL keys, and verifiers check the signatures with the keys the TL publishes at /root-keys.
The status values in a status token (ACTIVE, WARNING, DEPRECATED, EXPIRED, REVOKED) are computed by the TL, and EXPIRED here means certificate expiry.
The RA stores the canonicalized bytes together with the signature, and if delivery to the TL fails, it resends exactly the same bytes. The TL deduplicates by content hash, so a retried event is never recorded twice.
3.3 Verification
The specification (ANS-6) requires a verifier to check all three of the following when authenticating a peer agent.
| Check | Question | Evidence |
|---|---|---|
| Identity | Is this certificate sealed in the TL for this agent? | Receipt, or badge |
| Liveness | Is the registration valid right now? | Status token, or the badge status |
| Possession | Does the peer hold the certificate’s private key? | TLS handshake, or DPoP proof |
The badge tier fetches the badge from the TL as in 2.1, while the SCITT tier verifies the receipt and status token sent by the peer locally.
The SCITT tier procedure recommended by the specification is as follows.
- Connect over TLS and receive the server certificate
- Take the receipt and status token from the
X-SCITT-ReceiptandX-ANS-Status-Tokenresponse headers - Check the receipt’s Merkle path and signature with the public key from
/root-keys - Check the status token’s signature, expiry time, and status
- Bind the artifacts to the connection
- The server certificate fingerprint must be in the status token’s
validServerCerts - The host in the receipt’s event must match the host actually dialed
- Optional: the status token’s
metadataHashesmust match the hash of the fetched Agent Card
- The server certificate fingerprint must be in the status token’s
A receipt only proves that the TL signed the leaf; it does not prove that the TL keeps the log honestly. Where stronger assurance is needed, compare the computed root against the TL's checkpoints and consistency history (ANS-6 11.3).
The default status token TTL is one hour, but adding the clock skew allowance (up to 10 minutes) and the grace period (up to one TTL), a revocation can take up to 2 hours 10 minutes to reach a verifier (ANS-6 11.1).
References
- ANS specification repository: https://github.com/agentnameservice/ans-spec
- ans-gateway-auth: https://github.com/agentnameservice/ans-gateway-auth
- Linux Foundation announcement (2026-11-10): https://www.linuxfoundation.org/press/linux-foundation-welcomes-agent-name-service-to-bring-verifiable-identity-and-discovery-to-ai-agents
- IETF Internet-Draft: https://datatracker.ietf.org/doc/draft-narajala-courtney-ansv2/
- RFC 8555 ACME: https://www.rfc-editor.org/rfc/rfc8555
- RFC 6962 Certificate Transparency: https://www.rfc-editor.org/rfc/rfc6962
- RFC 9052 COSE: https://www.rfc-editor.org/rfc/rfc9052
- RFC 8785 JSON Canonicalization Scheme: https://www.rfc-editor.org/rfc/rfc8785
- RFC 9460 SVCB and HTTPS RRs: https://www.rfc-editor.org/rfc/rfc9460
- RFC 6698 DANE TLSA: https://www.rfc-editor.org/rfc/rfc6698
- RFC 9449 DPoP: https://www.rfc-editor.org/rfc/rfc9449