Internet-Draft WBA Verification Outcomes November 2026
Suresh Expires 25 May 2027 [Page]
Workgroup:
Web Bot Auth
Internet-Draft:
draft-suresh-webbotauth-verification-outcome-00
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 25 May 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: the identifier the verifier attributed, or would have attributed, to the request, as defined in "The Signature-Agent URL is the identifier" in [WBA]. It lets an Agent confirm how a verifier normalised the URL it sent.

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 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, or created is later than the verifier's clock allows.
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.

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.

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

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.

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 the verifier actually reached for that request. A verifier MUST NOT report a different outcome or reason from the one that determined how it treated the request.

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. Verifiers that consider cache state sensitive SHOULD use disclosure level 1 on production resources.

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. 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 MUST NOT treat a reported verified outcome as authorization, and 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.

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.

Author's Address

Tejaswi Suresh
RankSaga Ltd
United Kingdom