Internet-Draft WBA Verification Outcomes December 2026
Suresh Expires 8 June 2027 [Page]
Workgroup:
Web Bot Auth
Internet-Draft:
draft-suresh-webbotauth-verification-outcome-03
Published:
Intended Status:
Standards Track
Expires:
Author:
T. Suresh
RankSaga Ltd

Reporting Web Bot Auth Verification Outcomes

Abstract

Web Bot Auth lets automated HTTP clients sign requests with HTTP Message Signatures and publish their keys in a directory. Its protocol specification defines three verifier outcomes (verified, invalid and unverified) but no way for a verifier to tell the client which one it reached, or why. A client whose request is refused cannot tell a bad signature from an expired one, or a missing key from a directory the verifier could not fetch.

This document defines a problem type for reporting Web Bot Auth verification outcomes, carried in problem details content or in the Problem-Details header field, a small registry of reason codes, levels of disclosure that let a verifier limit what it reveals, and an optional well-known resource that clients can use to check their signatures against a verifier without affecting any other resource.

About This Document

This note is to be removed before publishing as an RFC.

Status information for this document may be found at https://datatracker.ietf.org/doc/draft-suresh-webbotauth-verification-outcome/.

Discussion of this document takes place on the Web Bot Auth Working Group mailing list (mailto:web-bot-auth@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/web-bot-auth/. Subscribe at https://www.ietf.org/mailman/listinfo/web-bot-auth/.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 8 June 2027.

▲

Table of Contents

1. Introduction

The Web Bot Auth protocol [WBA] defines how an automated client (an Agent) signs HTTP requests with HTTP Message Signatures [HTTP-MESSAGE-SIGNATURES] and names, in the Signature-Agent field, a directory from which the verifier (an Origin) fetches its keys. It asks verifiers to keep three outcomes distinct: verified, invalid and unverified. It does not say how, or whether, the Agent learns which outcome its request produced.

In deployment that gap is costly. A refused request typically carries a 401 or 403 status code and nothing else, so the Agent cannot tell apart:

The last two differ in what they mean for the verifier's cached state (see "Discovery Failure" in [WBA]), and they call for different action by the Agent's operator: publishing a missing key in one case, fixing the directory's availability in the other.

The working group has discussed using Problem Details [PROBLEM] for this purpose [ISSUE-142], and noted that detailed error reports must not disclose sensitive verifier state. Participants have also suggested that a debugging aid would be useful without requiring every website to offer one. This document proposes a concrete design along those lines:

Reporting an outcome is always optional. Nothing in this document changes how a request is verified, what an outcome means, or what an Origin does with it.

1.1. Conventions and Definitions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

This document uses the terms Agent, Origin, verifier, directory, outcome and identifier as defined in [WBA], and the Structured Field types Dictionary, String, Token and Inner List from [STRUCTURED-FIELDS].

2. The web-bot-auth Problem Type

This document defines the problem type identified by the URI https://iana.org/assignments/http-problem-types#web-bot-auth (see Section 9.1). A verifier uses it to report the outcome of verifying the Web Bot Auth signatures on a request.

The problem type is header-compatible as defined in [PROBLEM-HEADER]: all of the extension members below are carried in the Problem-Details header field, with the Structured Types shown.

outcome:

REQUIRED. A Token: verified, invalid or unverified, with the meanings given in "Verifier Outcomes" in [WBA]. When a request carries several signatures, this is the outcome for the signature named by label.

reason:

OPTIONAL. A Token from the Web Bot Auth Verification Reasons registry (Section 3), giving the first check that failed. It MUST NOT be present when outcome is verified.

label:

OPTIONAL. A String: the label of the signature, as used in the Signature-Input and Signature fields, to which outcome and reason apply.

identifier:

OPTIONAL. A String. When outcome is verified, it is the identifier the verifier attributed to the request, as defined in "The Signature-Agent URL is the identifier" in [WBA]: the Signature-Agent URL if the verifier made the association described in "What the URL Endorses" in [WBA], and otherwise the keyid thumbprint ("When No URL Is Available" in [WBA]). For any other outcome, it is the URL the verifier resolved or tried to resolve, which is not an attribution. A verifier MUST NOT report as attributed a URL it did not associate with the signing key (see Section 7.4). The member lets an Agent confirm how a verifier normalised the URL it sent, and whether the request was attributed to it.

association-time:

OPTIONAL. An Integer ([STRUCTURED-FIELDS]): a time, as a number of seconds since 1970-01-01T00:00:00Z excluding leap seconds, the same value as a Structured Fields Date. It is an Integer rather than a Date because recipients of the Problem-Details field ignore Date members ([PROBLEM-HEADER]), and it is a JSON number in problem details content. It MUST NOT be present unless outcome is verified and identifier is the Signature-Agent URL. It is the time at which the association between that URL and the signing key, which the verifier relied on, was produced, in the sense of "What the URL Endorses" in [WBA]: the time of the fetch for a directory the verifier resolved itself, or the created parameter of the directory response signature on redistributed key material. It describes the key set held by the node that verified the request, which another node of the same verifier may not share. Because verifiers cache directories, it can be well before the request. It is absent when the identifier is the key thumbprint, since a key the verifier holds by other means has no such time.

association-time-source:

OPTIONAL. A Token: fetch or directory-signature, naming which of the two times in association-time was reported. It MUST be present when association-time is present, and MUST NOT be present otherwise. The value follows from how the verifier made the association, not from a choice: fetch when it resolved the directory itself, including through a control plane acting for it, and directory-signature when it relied on redistributed key material. The two are statements by different parties (see Section 7.4).

A verifier that sends the problem type in content uses the application/problem+json media type as described in [PROBLEM]. A verifier MAY instead, or also, send it in the Problem-Details header field [PROBLEM-HEADER], which is useful when the response content is a representation of the resource, or when an intermediary performs verification and cannot alter the content.

The title member, if sent, SHOULD be a fixed, human-readable description of the reason. The detail member SHOULD NOT be sent: it invites free text, such as a network error message, that can disclose more than the reason code does (see Section 7).

This problem type does not imply a status code. A verifier that refuses a request because its signature is invalid or unverified typically uses 401 or 403 ([HTTP]), and SHOULD include Accept-Signature as described in "Requesting a Message Signature" in [WBA]. A verifier that refuses a request whose signature verified, for reasons of its own policy, reports verified (see Section 4). A verifier that accepts an unverified request MAY report the outcome on the successful response using the Problem-Details header field; the response is then not an error, and the field only describes how the signature was treated.

For example, an Origin that refused a request because the directory resolved but did not contain the key (long lines are wrapped as described in [RFC8792]):

NOTE: '\' line wrapping per RFC 8792

HTTP/1.1 403 Forbidden
Cache-Control: no-store
Accept-Signature: sig1=("@authority" "signature-agent";key="sig1")\
  ;tag="web-bot-auth"
Problem-Details: type="https://iana.org/assignments/http-problem-\
  types#web-bot-auth", outcome=unverified, reason=key-not-found, \
  label="sig1"

The same problem in content:

{
  "type":
  "https://iana.org/assignments/http-problem-types#web-bot-auth",
  "title": "The directory does not provide the key named by keyid.",
  "outcome": "unverified",
  "reason": "key-not-found",
  "label": "sig1"
}

3. Reason Codes

Reason codes are Tokens. Each is associated with exactly one outcome. A verifier reports the first check that failed, in the order in which it performs them; it is not required to report every failure.

The initial registry contents are:

Table 1: Initial Web Bot Auth Verification Reasons
Reason Outcome Meaning
malformed invalid Signature, Signature-Input or Signature-Agent could not be parsed.
missing-component invalid A component the verifier requires, such as @authority or the Signature-Agent member, is not covered.
missing-parameter invalid A required signature parameter, such as created, expires, keyid or tag, is absent.
unsupported-algorithm invalid The signature uses an algorithm the verifier does not accept.
expired invalid expires has passed, after the verifier's allowance for clock skew.
lifetime-exceeded invalid The interval from created to expires is longer than the verifier's policy allows.
signature-mismatch invalid The signature does not verify over the covered components with the selected key.
replayed invalid The signature or nonce has been used more often than the verifier's policy permits.
agent-unusable unverified There is no usable Signature-Agent member for the signature, for example because the member is absent, carries parameters, or does not use the https scheme.
directory-unavailable unverified The directory could not be obtained: the fetch failed or was refused by the verifier's own limits.
key-not-found unverified The directory was obtained but does not provide a key matching keyid.
created-ahead unverified created is later than the verifier's clock plus its allowance for clock skew.

The distinction between directory-unavailable and key-not-found follows "Discovery Failure" in [WBA]: the first says nothing about the Agent's keys, the second is evidence that the key is not, or is no longer, published. A verifier MUST NOT report key-not-found for a directory it did not obtain.

That evidence is as seen by one verifier at one time. A large verifier is many nodes, each with its own cache, so during key rotation an Agent can get key-not-found from one node and verified from another within the same minute. An Agent's operator SHOULD NOT act on a single report, for example by republishing or withdrawing keys, but on reports that persist across requests and over time.

expired and created-ahead both compare a signature parameter with the verifier's clock, and the verifier cannot tell whose clock is wrong. They are separated by the most likely explanation. A signature past its own expires is most often an old signature presented again, which is what the validity window exists to stop, so it is reported as a fact about the signature (invalid). A created ahead of the clock has no attack behind it, since a signer gains nothing by dating a signature in the future that it could not gain by signing now. What remains is two clocks that disagree, which describes the verifier's situation rather than the signature, so it is reported as unverified. "Verifier Outcomes" in [WBA] lists freshness checks under invalid; this document narrows that to the expires end of the window.

A verifier MUST apply the same allowance for clock skew at both ends of the validity window, so that a verifier clock running ahead does not turn into expired either. For the Agent's operator, created-ahead says to check the signer's clock and says nothing about its keys, in the same way that directory-unavailable says nothing about the directory's contents.

The codes are deliberately coarse. A verifier that distinguishes finer cases internally maps them onto these codes when reporting.

Every reason describes a verification check that failed. None describes an access decision, such as a request being blocked, not allow-listed or rate limited, and none may be registered (see Section 9.2). Some checks depend on local thresholds (lifetime-exceeded, replayed, unsupported-algorithm), but each still describes the signature and not whether the request is served.

4. Disclosure Levels

A verifier chooses, by local policy, one of three levels of disclosure. It MAY choose a different level for different requests, for example by Agent identifier, by outcome or by rate.

Level 0, none:

The verifier does not report outcomes. This is the behaviour of a verifier that does not implement this document.

Level 1, outcome:

The verifier reports outcome, and label if more than one signature is present, but not reason.

Level 2, outcome and reason:

The verifier also reports reason, and MAY report identifier, association-time and association-time-source.

Level 1 already lets an operator separate its own mistakes (invalid) from availability problems (unverified). Level 2 is most useful during deployment and on the check resource (Section 5). Verifiers SHOULD consider the factors in Section 7 before using level 2 on production resources.

Whatever level a verifier uses, the report MUST describe the outcome of verifying the request's signatures, which is not the same as the decision whether to serve it. The two are separate layers: an Origin applies its own policy to each outcome ("Verifier Outcomes" in [WBA]), and this document reports only the outcome. A verifier MUST NOT report a different outcome or reason from the one verification produced.

In particular, a verifier that refuses a request for policy reasons, for example because the identifier is not on a list it maintains or has exceeded a rate limit, reports verified (at level 1 or 2) or nothing (at level 0). It MUST NOT relabel a policy refusal as invalid or unverified, or attach a reason to it. A 403 response that carries outcome=verified and no reason is a complete report: the signature verified, and the refusal is the Origin's own policy, which this document does not describe.

The same holds when an Origin also requires a separate credential bound to the request, such as a signed assertion that a user initiated it, and that credential is absent or fails its checks. For this document, refusing the request on that basis is Origin policy: the outcome of verifying the request's signatures is still verified, and the credential's failure is not a reason in the web-bot-auth problem type. A specification for such a credential can define its own problem type to carry that reason. Since a response carries one problem details object, the order of checks decides which type it uses: the web-bot-auth type if the request's signatures did not verify, and otherwise the credential's own type.

5. The Check Resource

An Origin MAY offer a resource at the well-known path /.well-known/web-bot-auth-check [WELL-KNOWN] so that Agents can test their signatures without consequence for any other resource.

A GET request to the check resource is verified exactly as the Origin would verify a request to any other resource. The Origin responds with 200 (OK) and application/problem+json content using the problem type in Section 2, at disclosure level 2, whatever the outcome, including verified. A verified outcome is reported without reason.

Requests to the check resource:

Responses from the check resource MUST carry Cache-Control: no-store.

Offering the check resource is entirely optional. Its value is that an operator can run it on a host that applies the same verification policy as its production resources, so that an Agent's operator can diagnose a failure without trial requests against production.

6. Caching

A report describes the verification of one request's signatures, which differ on every request. A response that carries a report of this problem type, in content or in the Problem-Details field, MUST NOT be stored by a shared cache; a verifier SHOULD send Cache-Control: no-store or private ([HTTP-CACHE]).

7. Security Considerations

7.1. Verification Oracles

Reporting why a signature failed can help an attacker as well as an honest operator. Reason codes do not help with forging a signature without the key, since signature-mismatch is reported for every such attempt, but finer distinctions can. A verifier that reported, for example, which covered component failed to match would let an attacker search for a component whose value the verifier canonicalises differently. The reason codes in Section 3 stop at the check that failed and say nothing about intermediate values. Verifiers MUST NOT extend them with free text, in detail or elsewhere, that discloses canonicalised components, signature bases or key material.

7.2. Verifier State and Reachability

directory-unavailable and key-not-found reveal what the verifier observed when it fetched a URL that the Agent chose. An attacker who can choose that URL learns whether the verifier could reach it and what it found there. The Web Bot Auth protocol already requires verifiers to restrict which directories they fetch ("Server-Side Request Forgery" in [WBA]). A verifier MUST apply those restrictions before reporting either reason, and SHOULD report directory-unavailable for any fetch it refused under them, without saying why.

These reasons can also reveal whether a directory was served from the verifier's cache, and association-time reveals when the verifier last fetched it. Verifiers that consider cache state sensitive SHOULD use disclosure level 1 on production resources.

At a single Origin, that is the Origin's own cache. A verifier that serves many Origins from one directory cache, such as a CDN or other shared intermediary, turns it into a cross-origin signal: a prober can learn whether any Origin on that platform recently received a request from a given Agent. Verifiers whose directory cache is shared across Origins SHOULD use disclosure level 1 on production resources, and SHOULD NOT report association-time there.

7.3. Amplification and Probing

Reports cost little to produce, but the check resource invites repeated requests, each of which can cause a directory fetch. Verifiers SHOULD apply the same per-directory fetch limits to the check resource as to other resources, and SHOULD rate limit it.

7.4. Outcomes Are Not Authorization

Successful verification establishes that the request was signed with a key the verifier associates with the identifier ("What the URL Endorses" in [WBA]). It is not, by itself, evidence that the signer is authorized to perform the requested action, and [WBA] leaves authorization to Origin policy. Once an outcome is reported, a verified result is easy to read as "allowed". Agents MUST NOT treat a reported verified outcome as authorization, and other parties MUST NOT treat it as a grant of access. This section is intended to state the same rule as [WBA], in the same terms; if the protocol specification adds text on authorization, this section will follow it.

A verified outcome holds as of the key set the verifier used. A later read of the directory does not re-establish it, since removing a key deactivates it without saying why ("Key Rotation" in [WBA]). A party checking a report after the fact can bind association-time next to the identifier, and association-time-source tells it whose statement that time is. A fetch time is the verifier's own statement (see Section 7.5), and is wrong only if the verifier or its clock is. A directory-signature time is the key holder's statement, which does not help if that key was stolen, since the holder of a stolen key can sign a directory response with any created time. That is the case a later checker is most likely to be asking about, so it needs to know which kind of time it holds.

The rule depends on which identifier was attributed. Under "Discovery Failure" in [WBA], a signature can verify by a key the verifier holds by other means while the request MUST NOT be attributed to the Signature-Agent URL; the identifier is then the key thumbprint. A report of that case carries outcome=verified with the thumbprint as identifier, never the URL. Any separate assertion of authorization that a verifier or Agent relies on SHOULD reference the identifier the verifier attributed, not the one the client asserted: by key thumbprint, or by URL only where the verifier made the association described in "What the URL Endorses" in [WBA].

7.5. Integrity of Reports

A report is advisory. An intermediary can add, remove or alter the Problem-Details field, and an Agent cannot authenticate a report without other means. Agents SHOULD use reports only for diagnosis and monitoring.

8. Privacy Considerations

A report does not identify the Agent beyond what its own request disclosed. The identifier member echoes the verifier's normalisation of a URL the Agent sent; it does not reveal information about other Agents. Verifiers that log reports should treat them as they treat other request logs.

9. IANA Considerations

9.1. HTTP Problem Type

IANA is asked to register the following in the "HTTP Problem Types" registry established by [PROBLEM]:

Type URI:

https://iana.org/assignments/http-problem-types#web-bot-auth

Title:

Web Bot Auth verification outcome

Recommended HTTP status code:

403

Reference:

Section 2 of this document

9.2. Web Bot Auth Verification Reasons Registry

IANA is asked to create the "Web Bot Auth Verification Reasons" registry. New registrations follow the Specification Required policy ([IANA-GUIDELINES]). Each entry has:

Reason:

a Token, unique within the registry

Outcome:

invalid or unverified

Description:

a short description of the check that failed

Reference:

the specification that defines the reason

Designated experts are asked to check that a new reason is coarse in the sense of Section 3: that it names a check rather than an intermediate value, and does not raise the concerns in Section 7. Designated experts MUST reject any reason that describes an access decision (for example, blocked, not allow-listed or rate limited) rather than a failed verification check.

The initial contents are the table in Section 3, each with this document as the reference.

9.3. Well-Known URI

IANA is asked to register the following in the "Well-Known URIs" registry [WELL-KNOWN]:

URI suffix:

web-bot-auth-check

Change controller:

IETF

Specification document:

Section 5 of this document

Status:

provisional

Related information:

None

10. References

10.1. Normative References

[HTTP]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/rfc/rfc9110>.
[HTTP-CACHE]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Caching", STD 98, RFC 9111, DOI 10.17487/RFC9111, , <https://www.rfc-editor.org/rfc/rfc9111>.
[HTTP-MESSAGE-SIGNATURES]
Backman, A., Ed., Richer, J., Ed., and M. Sporny, "HTTP Message Signatures", RFC 9421, DOI 10.17487/RFC9421, , <https://www.rfc-editor.org/rfc/rfc9421>.
[IANA-GUIDELINES]
Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, , <https://www.rfc-editor.org/rfc/rfc8126>.
[PROBLEM]
Nottingham, M., Wilde, E., and S. Dalal, "Problem Details for HTTP APIs", RFC 9457, DOI 10.17487/RFC9457, , <https://www.rfc-editor.org/rfc/rfc9457>.
[PROBLEM-HEADER]
Nottingham, M., "The Problem-Details HTTP Header Field", Work in Progress, Internet-Draft, draft-nottingham-problem-header-00, , <https://datatracker.ietf.org/doc/html/draft-nottingham-problem-header-00>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[STRUCTURED-FIELDS]
Nottingham, M. and P. Kamp, "Structured Field Values for HTTP", RFC 9651, DOI 10.17487/RFC9651, , <https://www.rfc-editor.org/rfc/rfc9651>.
[WBA]
Meunier, T. and S. Major, "HTTP Message Signatures for automated traffic", Work in Progress, Internet-Draft, draft-ietf-webbotauth-httpsig-protocol-01, , <https://datatracker.ietf.org/doc/html/draft-ietf-webbotauth-httpsig-protocol-01>.
[WELL-KNOWN]
Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, DOI 10.17487/RFC8615, , <https://www.rfc-editor.org/rfc/rfc8615>.

10.2. Informative References

[ISSUE-142]
Web Bot Auth Working Group, "Consider RFC 9457 for signature verification errors", , <https://github.com/webbotauth/draft-ietf-webbotauth-httpsig-protocol/issues/142>.
[RFC8792]
Watsen, K., Auerswald, E., Farrel, A., and Q. Wu, "Handling Long Lines in Content of Internet-Drafts and RFCs", RFC 8792, DOI 10.17487/RFC8792, , <https://www.rfc-editor.org/rfc/rfc8792>.

Appendix A. Implementation Status

This section is to be removed before publication.

An open conformance suite for Web Bot Auth verifiers, https://github.com/frostyhand/webbotauth-conformance, reads outcomes from verifiers. Its prototype accepts a Web-Bot-Auth-Outcome response header as a stopgap; it will read this problem type instead. Its first runs, in November 2026, showed the cost of the gap: against a production verifier that reports only status codes, invalid and unverified could not be told apart, so the suite had to score those cases at the level of "accepted or rejected".

Acknowledgments

This document follows the discussion in [ISSUE-142], which proposed Problem Details for this purpose and noted the need to avoid disclosing sensitive verifier state, and the suggestion recorded there from the IETF 127 session that a debugging aid would be useful without being required of every website.

Stephen D. Smith (AeP Labs) reviewed -00 in [ISSUE-142] and on the web-bot-auth list. His comments led to the rule that policy refusals are reported as verified, the exclusion of access-decision codes from the registry, and the split of expired from created-ahead.

Kevin Zhang (Tersign) proposed on the web-bot-auth list that a verified outcome carry the time of the key set it rests on, which became association-time, that a result hold only as of that key set, and that a report say whose statement that time is. Brent Maynard (Akamai) pointed out that a verifier shared across Origins makes cache state a cross-origin signal, and that reports are evidence from one node, not from the verifier as a whole. Alejandro Lobos Kunstmann asked where the reason for refusing a request over a separate, request-bound assertion belongs, which led to the text on separate credentials in Section 4.

Change Log

This section is to be removed before publication.

draft-suresh-webbotauth-verification-outcome-03

draft-suresh-webbotauth-verification-outcome-02

draft-suresh-webbotauth-verification-outcome-01

Author's Address

Tejaswi Suresh
RankSaga Ltd
United Kingdom