<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-mcgraw-httpapi-agent-budget-06" category="std" consensus="true" submissionType="IETF" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <front>
    <title abbrev="Delegation">The Delegation HTTP Authentication Scheme for Request-Bound Authority</title>
    <seriesInfo name="Internet-Draft" value="draft-mcgraw-httpapi-agent-budget-06"/>
    <author initials="J." surname="McGraw" fullname="John Paul McGraw, Jr.">
      <organization abbrev="TaskHawk">TaskHawk Systems LLC</organization>
      <address>
        <postal>
          <city>Charlottesville</city>
          <region>VA</region>
          <country>United States of America</country>
        </postal>
        <email>j.mcgraw@taskhawktech.com</email>
      </address>
    </author>
    <date year="2026" month="December" day="04"/>
    <area>Web and Internet Transport</area>
    <keyword>HTTP</keyword>
    <keyword>authentication</keyword>
    <keyword>delegated authority</keyword>
    <keyword>authority proof</keyword>
    <keyword>protected processing</keyword>
    <keyword>budget profile</keyword>
    <keyword>RateLimit</keyword>
    <keyword>COSE</keyword>
    <keyword>JOSE</keyword>
    <keyword>ML-DSA</keyword>
    <keyword>CBOR</keyword>
    <abstract>

<t>This document defines Delegation, an HTTP authentication scheme that allows a
client to present proof of authority to act on behalf of a principal.  The
client can send the proof with the protected request or submit it to a
preflight endpoint and use the resulting credential with the protected
request.  The Budget profile defines limits on spending and resource use.
It encodes claims in Concise Binary Object Representation (CBOR) and uses
CBOR Object Signing and Encryption (COSE) with the Module-Lattice-Based
Digital Signature Algorithm (ML-DSA) to sign them.</t>
    </abstract>
  </front>
  <middle>

<section anchor="introduction">
      <name>Introduction</name>
      <t>An HTTP request can allocate resources, disclose data, or incur a charge on
behalf of a principal other than the requester.  The origin server might
require proof of that principal's authority before processing the request.
The Delegation authentication scheme lets an origin challenge for a proof and
lets the requester present it with the protected request or in a separate
preflight exchange.</t>
      <t>The scheme defines the <tt>WWW-Authenticate: Delegation</tt> challenge and uses
<tt>Authorization: Delegation</tt> to present a credential.  It defines
<tt>Delegation-Proof</tt> for
requests that use <tt>Authorization</tt> for another credential.  Challenges and
failures use the existing 401 and 403 status codes (<xref target="challenge-responses"/>).
An authority profile specifies the proof format, claims, and validation rules.
The Budget profile in <xref target="budget-envelope"/> is the first such profile.</t>
      <t>The Budget profile uses CBOR <xref target="RFC8949"/> and COSE <xref target="RFC9052"/>.  Its
<tt>cose-ml-dsa</tt> proof format uses ML-DSA <xref target="FIPS204"/> with the JOSE and COSE
algorithm identifiers defined by <xref target="RFC9964"/>.  Implementations of this profile
<bcp14>MUST</bcp14> support ML-DSA-65 and <bcp14>MAY</bcp14> support ML-DSA-87.  A deployment <bcp14>MAY</bcp14> require
ML-DSA-87 or another ML-DSA algorithm registered by <xref target="RFC9964"/>.  The profile
has one Issuer signature in a COSE_Sign1 object; another signature
construction requires a separate profile.</t>
      <section anchor="conventions-and-definitions">
        <name>Conventions and Definitions</name>
        <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>

<dl>
          <dt>Principal:</dt>
          <dd>
            <t>A person, organization, service, or other entity on whose behalf a
requester acts.</t>
          </dd>
          <dt>Issuer:</dt>
          <dd>
            <t>An entity that issues a Delegation proof on behalf of a principal.  In the
Budget profile, the Issuer issues a Budget-Attestation.</t>
          </dd>
          <dt>Requester:</dt>
          <dd>
            <t>The HTTP client that presents a Delegation proof on behalf of a principal.</t>
          </dd>
          <dt>Verifier:</dt>
          <dd>
            <t>An origin server, or a gateway or reverse proxy authorized by the origin
for the same protection space, that verifies a Delegation proof before
protected processing.  This specification defines origin-server
authentication; a forward proxy is not a Verifier by virtue of forwarding
the request.</t>
          </dd>
          <dt>Protected Processing:</dt>
          <dd>
            <t>Application processing for which the origin requires a valid Delegation
proof.</t>
          </dd>
          <dt>Delegation Proof:</dt>
          <dd>
            <t>An object that a requester presents to demonstrate authority
granted by a principal for a request or class of requests.</t>
          </dd>
          <dt>Protected request:</dt>
          <dd>
            <t>The HTTP request for which the origin server requires delegated authority.
In a preflight exchange, the protected request is distinct from the POST
that carries the proof.</t>
          </dd>
          <dt>Authority Profile:</dt>
          <dd>
            <t>A specification of the claims, proof format, bounds, and verification
rules for a class of delegated authority.</t>
          </dd>
          <dt>Budget Authority Profile:</dt>
          <dd>
            <t>The Authority Profile defined in <xref target="budget-envelope"/> for bounded spending,
metered service use, and resource commitments.</t>
          </dd>
          <dt>Budget-Attestation:</dt>
          <dd>
            <t>The CBOR-encoded, COSE-signed Delegation proof defined by the Budget
Authority Profile.</t>
          </dd>
          <dt>Settlement Rail:</dt>
          <dd>
            <t>A payment or resource-accounting system that may be identified in
Budget-Claims field 7.  Rail operation is outside this specification.</t>
          </dd>
        </dl>
      </section>
      <section anchor="applicability">
        <name>Applicability</name>
        <t>Delegation applies when a protected origin requires proof of delegated
authority in addition to, or instead of, ordinary client authentication.  A
requester can be a service, scheduled job, device, or agent.  The
Budget profile defines bounds on spending, metered service use, and resource
commitments.  Other authority profiles can define bounds for other actions.</t>
        <t>Budget-Claims field 3 identifies the requester.  A deployment <bcp14>MAY</bcp14>
use an agent identifier, service account identifier, workload identity, device
identifier, job identifier, or alias.  The field encodes an identifier as
specified in <xref target="budget-envelope"/>; names used by a deployment API do not change
the signed CBOR claims map.</t>
      </section>
      <section anchor="relationship-to-oauth-gnap-and-token-exchange">
        <name>Relationship to OAuth, GNAP, and Token Exchange</name>
        <t>OAuth Token Exchange <xref target="RFC8693"/> and the Grant Negotiation and Authorization
Protocol (GNAP) <xref target="RFC9635"/> specify how clients obtain access tokens.
Delegation specifies how an origin server challenges for a proof of delegated
authority and how the client presents
the proof for that request.  An OAuth service, GNAP service, or other Issuer
can issue the proof.  The principal and requester remain distinct.</t>
      </section>
      <section anchor="relationship-to-sender-constrained-tokens-and-dpop">
        <name>Relationship to Sender-Constrained Tokens and DPoP</name>
        <t>OAuth 2.0 Demonstrating Proof of Possession (DPoP) <xref target="RFC9449"/> binds an
access token to a client key.  A client using a DPoP-bound access token
provides a DPoP proof with its request.  The origin server validates the
access token and DPoP proof separately from the Delegation proof.</t>
        <t>If <tt>Authorization</tt> carries a DPoP or other identity credential, a full
Delegation proof can be carried in <tt>Delegation-Proof</tt> when the selected
profile permits field carriage.  A request <bcp14>MUST NOT</bcp14> concatenate credentials
for different authentication schemes in one <tt>Authorization</tt> field.  The
composition rules are specified in <xref target="delegation-proof-field"/>.</t>
      </section>
      <section anchor="relationship-to-attribute-certificates">
        <name>Relationship to Attribute Certificates</name>
        <t>X.509 attribute certificates <xref target="RFC5755"/> convey privileges separately from
public-key identity certificates.  Delegation specifies HTTP challenges and
proof carriage for request-bound authority; it does not specify an X.509
attribute-certificate profile.</t>
      </section>
      <section anchor="ratelimit-fields">
        <name>Relationship to RateLimit Fields</name>
        <t>RateLimit fields <xref target="I-D.ietf-httpapi-ratelimit-headers"/> describe limits set by
the server and the remaining capacity under those limits.  A Delegation proof
states authority granted by a principal to a requester.  A server <bcp14>MAY</bcp14>
send RateLimit fields with a Delegation response.  RateLimit fields <bcp14>MUST NOT</bcp14>
substitute for a Delegation proof, and a Budget-Attestation <bcp14>MUST NOT</bcp14> be
interpreted as a quota advertised by the server.</t>
      </section>
      <section anchor="relationship-to-http-message-signatures">
        <name>Relationship to HTTP Message Signatures</name>
        <t>HTTP Message Signatures <xref target="RFC9421"/> protect selected components of an HTTP
message.  A Delegation proof carries the Issuer's authority claims.  A
deployment can require both on the same protected request.  A message
signature can cover the request as transmitted, while Request-Binding in a
Budget-Attestation identifies the protected request.</t>
        <t>For preflight, the target-binding fields identify the subsequent request.
The Verifier compares the method and target URI using the corresponding HTTP
Message Signatures derived-component semantics, including <tt>@method</tt> and
<tt>@target-uri</tt>.  It compares request content as specified in
<xref target="preflight-target-fields"/>.  These fields identify the subsequent protected
request; they do not authenticate the preflight POST.</t>
      </section>
      <section anchor="relationship-to-http-402">
        <name>Relationship to HTTP 402</name>
        <t>Some payment systems use 402 (Payment Required) <xref target="RFC9110"/>.  Delegation uses
401 and 403 for its challenges and failures (<xref target="challenge-responses"/>).  An
origin <bcp14>MAY</bcp14> validate a Budget-Attestation before invoking a payment system;
this specification does not define the payment exchange.</t>
      </section>
    </section>
    <section anchor="overview-operation">
      <name>Overview of Operation</name>
      <t>In the examples below, a space replaces each displayed line break and
indentation within an HTTP field value.  Each field occupies one line
on the wire.  The application request body is the 31 UTF-8 octets shown,
with no trailing newline.</t>
      <t>A protected origin determines that a request requires delegated authority and
that no acceptable Delegation credential is present:</t>
      <sourcecode type="http-message"><![CDATA[
POST /export HTTP/1.1
Host: api.example
Content-Type: application/json
Content-Length: 31

{"format":"jsonl","limit":1000}
]]></sourcecode>
      <t>It returns:</t>
      <sourcecode type="http-message"><![CDATA[
HTTP/1.1 401 Unauthorized
Date: Tue, 02 Jun 2026 18:00:00 GMT
Cache-Control: no-store
Content-Type: application/problem+json
Connection: close
Delegation-Version: 1
WWW-Authenticate: Delegation realm="api.example",
                  version=1,
                  profile="budget",
                  proof-format="cose-ml-dsa",
                  alg="ML-DSA-65",
                  nonce="QMjVqg5Xb6yV0bO_t9X8gQ",
                  preflight-uri="https://api.example/preflight",
                  max-age=300

{
  "type": "https://example.com/problems/delegation-required",
  "title": "Delegated authority proof required",
  "status": 401,
  "detail": "A valid Delegation proof is required.",
  "authority_requirements": {
    "profile": "budget",
    "proof_formats": ["cose-ml-dsa"],
    "actions": ["dataset:export"],
    "min_amount": "2.50",
    "currency": "USD",
    "proof_required": true,
    "verifier_required": true,
    "preflight_uri": "https://api.example/preflight",
    "nonce": "QMjVqg5Xb6yV0bO_t9X8gQ",
    "max_age": 300
  }
}
]]></sourcecode>
      <t>The requester obtains a Delegation proof from its Issuer by means
outside this document and submits the large proof to the advertised preflight
URI.  In this example the proof uses the Budget authority profile:</t>
      <sourcecode type="http-message"><![CDATA[
POST /preflight HTTP/1.1
Host: api.example
Content-Type: application/delegation-proof+cose
Delegation-Target-Method: "POST"
Delegation-Target-URI: "https://api.example/export"
Delegation-Target-Content-Digest:
  sha-256=:HG95fDRRp7wgHTyfRTg0IsEbafysDz7b8Msztdx6KnU=:
Content-Length: 4217

[4217 octets of a tag-18 COSE_Sign1 proof omitted]
]]></sourcecode>
      <t>The proof body is omitted.  The digest is that of the application request
body, not of the proof body.</t>
      <t>If the attestation is valid for the request and local policy, the Verifier
returns a compact, verifier-issued Delegation credential bound to the original
method, origin, target, nonce, expiry, and representation digest:</t>
      <sourcecode type="http-message"><![CDATA[
HTTP/1.1 200 OK
Cache-Control: no-store
Content-Type: application/json
Connection: close

{
  "credential_type": "delegation-compact",
  "credential": "kdc1.Pz9leGFtcGxlLW9wYXF1ZS10b2tlbg",
  "authorization": "Delegation kdc1.Pz9leGFtcGxlLW9wYXF1ZS10b2tlbg",
  "expires_in": 120,
  "target": {
    "method": "POST",
    "uri": "https://api.example/export",
    "content_digest":
      "sha-256=:HG95fDRRp7wgHTyfRTg0IsEbafysDz7b8Msztdx6KnU=:"
  }
}
]]></sourcecode>
      <t>The requester sends the protected request with the compact credential in
<tt>Authorization</tt>.  Its application content is unchanged:</t>
      <sourcecode type="http-message"><![CDATA[
POST /export HTTP/1.1
Host: api.example
Authorization: Delegation kdc1.Pz9leGFtcGxlLW9wYXF1ZS10b2tlbg
Content-Type: application/json
Content-Length: 31

{"format":"jsonl","limit":1000}
]]></sourcecode>
    </section>
    <section anchor="challenge-responses">
      <name>Delegation Challenge Responses</name>
      <t>When a Delegation credential is absent, invalid, or incomplete, the Verifier
<bcp14>SHOULD</bcp14> respond with 401 (Unauthorized) and at least one <tt>Delegation</tt> challenge
in <tt>WWW-Authenticate</tt>, as specified by <xref target="RFC9110"/>.</t>
      <t>When a Delegation credential is syntactically valid and authenticated but
does not authorize the requested operation, the Verifier <bcp14>SHOULD</bcp14> respond with
403 (Forbidden).  It <bcp14>MAY</bcp14> include a
<tt>Delegation</tt> challenge if another credential could authorize the request, but
<bcp14>MUST NOT</bcp14> do so if local policy forbids the operation regardless of the
credential.</t>
      <t>A Delegation challenge response <bcp14>SHOULD</bcp14> include <tt>Cache-Control: no-store</tt>
        <xref target="RFC9111"/>.  It <bcp14>MUST</bcp14> include <tt>no-store</tt> if it contains a nonce,
requester-specific policy, or other sensitive information.</t>
      <t>A Delegation challenge response <bcp14>SHOULD</bcp14> include an <tt>application/problem+json</tt>
body <xref target="RFC9457"/>.  When the Verifier can describe the required authority, the
Problem Details object <bcp14>SHOULD</bcp14> include an <tt>authority_requirements</tt> extension
member.  Profiles <bcp14>MAY</bcp14> define further members, such as permitted actions or
Budget bounds.  If a value appears in both the challenge and the Problem
Details body, the challenge value controls authentication.</t>
      <t>Server quota exhaustion is indicated with 429 (Too Many Requests), as defined
in <xref target="RFC9110"/>.</t>
      <section anchor="delegation-error-tokens">
        <name>Delegation Error Tokens</name>
        <t>When a presented Delegation credential fails validation or does not authorize
the request, the Problem Details object <bcp14>SHOULD</bcp14> include a <tt>reason</tt> extension
member.  The following tokens identify the failure:</t>
        <ul spacing="normal">
          <li>
            <t><tt>token_expired</tt>: The presented Budget-Attestation has reached its expiry.</t>
          </li>
          <li>
            <t><tt>nonce_stale</tt>: The nonce in the attestation does not match a valid,
unexpired challenge window.</t>
          </li>
          <li>
            <t><tt>nonce_replay</tt>: The nonce has already been accepted by the Verifier within
its replay-tracking window.</t>
          </li>
          <li>
            <t><tt>bad_signature</tt>: Cryptographic validation of the primary Issuer signature
failed.</t>
          </li>
          <li>
            <t><tt>untrusted_issuer</tt>: The issuer identifier in Budget-Claims field 2 identifies
an issuer for which the Verifier has no explicit trust relationship.</t>
          </li>
          <li>
            <t><tt>authority_insufficient</tt>: The signed authority bounds do not satisfy the
requirement advertised by the resource server.</t>
          </li>
          <li>
            <t><tt>budget_insufficient</tt>: The signed budget bounds in Budget-Claims fields 4
and 5 do not satisfy the budget requirement advertised by the resource
server.</t>
          </li>
          <li>
            <t><tt>version_unsupported</tt>: The Budget-Claims field 1 value,
<tt>Delegation-Version</tt> field, or <tt>version</tt> challenge parameter is not supported
by the Verifier.</t>
          </li>
          <li>
            <t><tt>binding_mismatch</tt>: The request target URI, method, origin, or body digest
does not match the signed request-binding values.</t>
          </li>
        </ul>
      </section>
    </section>
    <section anchor="auth-scheme">
      <name>The "Delegation" Authentication Scheme</name>
      <t>The <tt>Delegation</tt> authentication scheme is used in <tt>WWW-Authenticate</tt> and
<tt>Authorization</tt> fields.</t>
      <section anchor="challenge-syntax">
        <name>Challenge Syntax</name>
        <t>The Delegation authentication scheme challenge uses the <tt>auth-param</tt> syntax
defined by <xref target="RFC9110"/>, Section 11.2:</t>
        <sourcecode type="abnf"><![CDATA[
delegation-challenge = "Delegation" 1*SP 1#auth-param
]]></sourcecode>
        <t>The <tt>realm</tt> and <tt>nonce</tt> parameters are <bcp14>REQUIRED</bcp14>.  The <tt>profile</tt> parameter
identifies an acceptable authority profile, such as <tt>budget</tt>.
<tt>proof-format</tt> identifies its serialization, such as <tt>cose-ml-dsa</tt>, and
<tt>alg</tt> identifies one primary signature algorithm.  A Verifier that accepts
multiple algorithms <bcp14>SHOULD</bcp14> send a separate <tt>Delegation</tt> challenge for each
one.  A challenge <bcp14>MUST NOT</bcp14> contain more than one <tt>alg</tt> parameter.  Authority
profiles <bcp14>MAY</bcp14> define additional challenge parameters.</t>
        <t>The optional <tt>preflight-uri</tt> parameter identifies the preflight endpoint for
the challenged protection space.  A profile that requires preflight <bcp14>SHOULD</bcp14>
provide that URI in the challenge or through authenticated discovery.  A
Problem Details <tt>authority_requirements.preflight_uri</tt> member can also provide
the URI; the challenge parameter takes precedence when both are present.</t>
        <t>The profile identifier defined here is <tt>budget</tt>.  A deployment <bcp14>MAY</bcp14> use a
local identifier if authenticated configuration or discovery maps it to the
same Budget claims and verification rules.  Such identifiers are local to that
deployment.</t>
        <t>After <tt>auth-param</tt> parsing, the <tt>nonce</tt> value <bcp14>MUST</bcp14> use canonical base64url
encoding without padding <xref target="RFC4648"/>.  The Verifier <bcp14>MUST</bcp14> reject invalid or
noncanonical encodings.  The decoded nonce <bcp14>MUST</bcp14> be 16 to 64 octets.
Budget-Claims field 10 contains those octets as a CBOR bstr; the Issuer and
Verifier <bcp14>MUST</bcp14> compare the octets exactly.</t>
        <t>The Verifier <bcp14>MUST</bcp14> generate each <tt>nonce</tt> for the protection space identified
by <tt>realm</tt>, using at least 128 bits of unpredictable entropy.  It <bcp14>MUST</bcp14> accept
a nonce at most once and <bcp14>MUST</bcp14> reject a request if it cannot determine whether
the nonce has already been accepted.</t>
        <t>Verifiers <bcp14>SHOULD</bcp14> support self-authenticating nonces to avoid retaining every
issued challenge.  Such a nonce combines unpredictable bytes with
integrity-protected information about its protection space and issuance.  It
<bcp14>MUST NOT</bcp14> disclose the server's authentication secret.  The Verifier still
needs replay tracking until the challenge expires.</t>
        <t>The <tt>max-age</tt> parameter, when present, is the lifetime in seconds of the
challenge parameters and nonce, measured from challenge issuance.  A
Verifier <bcp14>MUST</bcp14> reject a proof at or after that challenge deadline.  Neither
preflight nor a retry restarts the window or extends the proof lifetime.  If
<tt>max-age</tt> is omitted, Verifiers <bcp14>SHOULD</bcp14> apply a local default and that
default <bcp14>SHOULD NOT</bcp14> exceed 900 seconds.</t>
      </section>
      <section anchor="credentials-syntax">
        <name>Credentials Syntax</name>
        <sourcecode type="abnf"><![CDATA[
delegation-credentials = "Delegation" 1*SP delegation-token
delegation-token       = token68
]]></sourcecode>
        <t>The token carries a base64url-encoded Delegation proof or a compact credential
issued after preflight.  The Budget <tt>cose-ml-dsa</tt> profile <bcp14>MUST</bcp14> support the
preflight flow in <xref target="preflight-flow"/> for proofs too large for field carriage.</t>
        <t>Before decoding an <tt>Authorization: Delegation</tt> token, the Verifier <bcp14>MUST</bcp14>
identify whether it is a full proof or a compact credential using challenge
state or an authenticated token discriminator.  If it cannot identify exactly
one kind, it <bcp14>MUST</bcp14> reject the token.  A validation failure <bcp14>MUST NOT</bcp14> cause the
Verifier to try the other kind.</t>
        <t>A client <bcp14>MUST NOT</bcp14> reuse a Delegation credential solely because a subsequent
request is in the same realm or protection space.  A client can reuse a
compact Delegation credential only if its profile permits
reuse and the new request satisfies the credential's authority, expiry, and
request binding.</t>
        <t>Requesters using the Budget <tt>cose-ml-dsa</tt> profile <bcp14>SHOULD</bcp14> use preflight because
an ML-DSA proof may exceed HTTP field limits <xref target="RFC9958"/>.  A deployment profile
<bcp14>MAY</bcp14> permit <tt>Authorization: Delegation</tt> field carriage when it defines accepted
field sizes and failure behavior.  A Verifier <bcp14>MAY</bcp14> reject an oversized field
before CBOR or COSE decoding.</t>
        <t>The Budget <tt>cose-ml-dsa</tt> profile <bcp14>MUST NOT</bcp14> carry a Delegation proof in GET or
HEAD request content because that content has no generally defined semantics
in HTTP.  For a large proof, the requester <bcp14>MUST</bcp14> use preflight or another
negotiated profile that does not rely on GET or HEAD request content.</t>
        <t>When the protected request has application content, the base Budget profile
sends a body-carried proof only in the separate preflight POST.  Direct
presentation on the protected request uses field carriage within the
deployment's size limit.  A deployment profile <bcp14>MAY</bcp14> specify a media type that
carries both proof and application content in one request.  Such a profile
<bcp14>MUST</bcp14> define how to extract both objects, compute the digest over application
content without a circular signature input, and bind the proof to that
content.  The request-binding rules in <xref target="request-binding"/> still apply.</t>
      </section>
      <section anchor="proof-content-completeness">
        <name>HTTP Message Completeness and Incremental Processing</name>
        <t>The Verifier <bcp14>MUST</bcp14> receive the complete request carrying the proof before accepting
its proof, issuing a compact credential, returning verified claims, or
performing the protected operation.  When the proof is a field on the
protected request, the Verifier <bcp14>MUST</bcp14> also receive and validate all
application content and any trailer-carried <tt>Content-Digest</tt> before taking
those actions.  Successful parsing of a field alone does not complete the
request.  Abort, timeout, missing message completion, or invalid bound content
<bcp14>MUST</bcp14> cause rejection.</t>
        <t>For <tt>application/delegation-proof+cose</tt>, the Verifier <bcp14>MUST</bcp14> process exactly
the ordered request-content octets and then decode any accepted content
coding.  TLS record, HTTP frame, transport read, and buffer boundaries <bcp14>MUST
NOT</bcp14> change the derived proof or verification result.  The Verifier <bcp14>MAY</bcp14> parse
incrementally, but <bcp14>MUST NOT</bcp14> omit, duplicate, insert, or reorder octets.
Another proof media type <bcp14>MUST</bcp14> specify its object framing and completeness
rules.</t>
        <t>After content decoding, a body-carried Budget proof <bcp14>MUST</bcp14> contain exactly one
complete COSE_Sign1 value permitted by <xref target="budget-envelope"/>, with no trailing
octets.  Incomplete content, decoding failure, or trailing octets <bcp14>MUST</bcp14> cause
verification failure.  Values from partial decoding <bcp14>MUST NOT</bcp14> be used as
verified claims or authorize protected processing.</t>
        <t>The Verifier <bcp14>MUST</bcp14> enforce its cumulative limits on coded request content and
decoded proof octets.  Counter overflow <bcp14>MUST</bcp14> cause rejection; exceeding a
configured body limit <bcp14>SHOULD</bcp14> produce 413 (Content Too Large).  Field-carried
proofs use the field-size limits of <xref target="auth-scheme"/> and
<xref target="delegation-proof-field"/>.  A field limit <bcp14>MUST</bcp14> be applied to the complete
serialized field value, including the <tt>Authorization</tt> scheme and token or the
<tt>Delegation-Proof</tt> Structured Field framing, rather than only to decoded
COSE octets.  This document sets no universal proof-size limit.</t>
      </section>
      <section anchor="preflight-flow">
        <name>Large-Proof Preflight Flow</name>
        <t>Preflight carries the full proof in a separate POST.  Budget <tt>cose-ml-dsa</tt>
implementations <bcp14>MUST</bcp14> support this flow.</t>
        <t>A profile that supports preflight <bcp14>SHOULD</bcp14> provide its URI in the
<tt>preflight-uri</tt> challenge parameter, in the Problem Details
<tt>authority_requirements</tt> object, or through profile-defined discovery.  A
Verifier that requires Budget <tt>cose-ml-dsa</tt> preflight for a challenged request
<bcp14>MUST</bcp14> provide the URI.  The challenge parameter takes precedence over a
Problem Details value; a value supplied for this challenge takes precedence
over a stable URI from discovery.  The endpoint accepts the proof without
performing the protected operation.</t>
        <t>The requester <bcp14>MUST</bcp14> obtain the URI from a TLS-authenticated challenge from the
protected origin, or from authenticated configuration or discovery for that
protection space.  The URI <bcp14>MUST</bcp14> be absolute HTTPS, without userinfo or a
fragment.  The requester <bcp14>MUST</bcp14> authenticate the endpoint and send the proof
only to an endpoint authorized for that protection space.  A cross-origin
endpoint requires explicit authorization in authenticated configuration or
discovery; a challenge or redirect alone does not authorize it.</t>
        <t>Before following a preflight redirect with the proof, the requester <bcp14>MUST</bcp14>
authenticate and authorize the new destination under the same rules.  It <bcp14>MUST
NOT</bcp14> forward the proof or credentials to an unauthorized endpoint or follow a
redirect to HTTP.  The requester <bcp14>MUST NOT</bcp14> forward identity or session
credentials unrelated to preflight, even to an endpoint authorized to receive
Delegation proofs.</t>
        <t>The requester POSTs the full proof to the preflight URI.  Its content type
<bcp14>MUST</bcp14> be <tt>application/delegation-proof+cose</tt> for the Budget profile; another
versioned profile can specify a different media type.  The proof and preflight
fields bind the future protected request by method, origin, target URI, nonce,
expiry, and content digest when request content is present
(<xref target="preflight-target-fields"/>).</t>
        <t>When Budget-Claims field 14 is present in a preflight proof, it <bcp14>MUST</bcp14> bind
the subsequent protected request identified by
the validated <tt>Delegation-Target-*</tt> fields.  Request-Binding <tt>body-h</tt>
covers the protected application content, not the preflight POST or its COSE
proof bytes.</t>
        <t>The Verifier <bcp14>MUST NOT</bcp14> perform the protected operation during preflight.  A
successful Budget preflight returns the compact credential defined in
<xref target="compact-credential-response"/>.  Any Verifier serving the protection space
needs access to the information required to validate it and enforce replay
policy.</t>
        <t>The requester then sends the protected request with
<tt>Authorization: Delegation</tt>.  GET and HEAD requests do not carry proof
content.  If the protected request has content, that content remains the
application representation.</t>
        <t>The Verifier <bcp14>MUST</bcp14> reject the compact credential when the protected request's
method, origin, target URI, nonce, expiry, or content digest differs from the
preflight binding.  For a non-idempotent operation, repeated preflight
requests with the same proof nonce <bcp14>MUST NOT</bcp14> issue multiple credentials.  The
Verifier can enforce this by atomically consuming the proof nonce when it
issues the credential.  Acceptance of the final request consumes the compact
credential's replay key as specified in <xref target="compact-credential-response"/>.</t>
      </section>
      <section anchor="preflight-target-fields">
        <name>Preflight Target Binding Fields</name>
        <t>The Budget <tt>cose-ml-dsa</tt> preflight request uses the following HTTP fields to
identify the protected request to which the full Delegation proof is being
bound.  These fields are Structured Fields <xref target="RFC9651"/>.</t>
        <dl>
          <dt><tt>Delegation-Target-Method</tt>:</dt>
          <dd>
            <t>A Structured Field Item whose bare item is the protected request's method
token as a String.  HTTP methods are case-sensitive, so the Verifier <bcp14>MUST</bcp14>
compare the exact token.  This corresponds to the HTTP Message Signatures
<tt>@method</tt> derived component.</t>
          </dd>
          <dt><tt>Delegation-Target-URI</tt>:</dt>
          <dd>
            <t>A Structured Field Item whose bare item is the absolute protected target
URI as a String.  The Verifier <bcp14>MUST</bcp14> derive its scheme and authority from
connection context, origin configuration, or trusted gateway metadata; it
<bcp14>MUST</bcp14> ignore untrusted <tt>Forwarded</tt>, <tt>X-Forwarded-*</tt>, and similar fields.  It
<bcp14>MUST</bcp14> reject a target it cannot reconstruct, one outside the challenged
resource's authority scope, or a request-target form the profile does not
define, such as CONNECT authority-form or OPTIONS asterisk-form.  This
corresponds to the HTTP Message Signatures <tt>@target-uri</tt> derived component.</t>
          </dd>
          <dt><tt>Delegation-Target-Content-Digest</tt>:</dt>
          <dd>
            <t>A Structured Field Dictionary containing the digest of protected request
content using <xref target="RFC9530"/> syntax.  The Budget <tt>cose-ml-dsa</tt> profile <bcp14>MUST</bcp14>
support <tt>sha-256</tt>.  This field is <bcp14>REQUIRED</bcp14> if the protected request has
content, including explicitly framed zero-length content, and <bcp14>MUST</bcp14> be
omitted otherwise.  The Verifier <bcp14>MUST</bcp14> compute the digest of the complete
protected content and compare it with the preflight value and, when present,
Budget-Claims field 14 <tt>body-h</tt>.  If the protected request contains
<tt>Content-Digest</tt>, the Verifier <bcp14>MUST</bcp14> also validate its <tt>sha-256</tt> value
against the actual content and preflight value.  A trailer-carried
<tt>Content-Digest</tt> <bcp14>MUST</bcp14> be received and validated before protected processing.</t>
          </dd>
        </dl>
        <t>The Verifier <bcp14>MUST</bcp14> reject the preflight request if any required target-binding
field is absent, malformed, ambiguous, inconsistent with the challenged
resource, or inconsistent with the request-binding claims in the Delegation
proof.  The Verifier <bcp14>MUST</bcp14> reject the later protected request if its observed
method, effective request URI, or content digest differs from the target
accepted during preflight.</t>
      </section>
      <section anchor="compact-credential-response">
        <name>Compact Credential Response</name>
        <t>A successful Budget <tt>cose-ml-dsa</tt> preflight response <bcp14>SHOULD</bcp14> use 200 (OK).
It <bcp14>MAY</bcp14> use 201 (Created) when the credential has a distinct resource URI.
The response <bcp14>MUST</bcp14> include <tt>Cache-Control: no-store</tt>.</t>
        <t>The response body <bcp14>MUST</bcp14> be a JSON object containing these members:</t>
        <dl>
          <dt><tt>credential_type</tt>:</dt>
          <dd>
            <t>The string <tt>delegation-compact</tt>.</t>
          </dd>
          <dt><tt>credential</tt>:</dt>
          <dd>
            <t>An opaque <tt>token68</tt> compact Delegation credential.  Clients <bcp14>MUST</bcp14> treat its
value as opaque.</t>
          </dd>
          <dt><tt>authorization</tt>:</dt>
          <dd>
            <t>The string <tt>Delegation </tt> followed by the <tt>credential</tt> value.  The client
<bcp14>MAY</bcp14> use it as the protected request's <tt>Authorization</tt> field value.</t>
          </dd>
          <dt><tt>expires_in</tt>:</dt>
          <dd>
            <t>The remaining lifetime in seconds when the response is generated, rounded
down to a non-negative integer.  The credential <bcp14>MUST</bcp14> expire no later than
the original challenge or underlying proof, whichever expires first.
Local policy <bcp14>MAY</bcp14> shorten that lifetime.  The Verifier determines the
challenge deadline from its challenge state or an authenticated nonce.
It <bcp14>MUST NOT</bcp14> issue an expired credential or accept one at or after expiry.</t>
          </dd>
          <dt><tt>target</tt>:</dt>
          <dd>
            <t>A JSON object restating the accepted protected-request binding.  It <bcp14>MUST</bcp14>
include <tt>method</tt> and <tt>uri</tt>.  It <bcp14>MUST</bcp14> include <tt>content_digest</tt> when the
protected request content digest was part of the preflight binding.  The
<tt>content_digest</tt> value uses the Digest Fields syntax defined by <xref target="RFC9530"/>.</t>
          </dd>
        </dl>
        <t>A compact credential <bcp14>MUST</bcp14> be integrity protected by the Verifier and bound
to the verified proof, available Issuer and requester identifiers, method,
origin, target URI, content digest when present, nonce, expiry, and authority
requirements.  Every Verifier serving the protection space <bcp14>MUST</bcp14> be able to
validate it and enforce replay policy.  A Verifier can issue a
self-authenticating token or a handle backed by shared validation and
consumption state.  It <bcp14>MUST</bcp14> reject a credential that it cannot validate or
consume.  A credential for a non-idempotent operation <bcp14>MUST</bcp14> be accepted at
most once.</t>
        <t>When accepting the protected request, the Verifier <bcp14>MUST</bcp14> apply its authority
policy and establish that the original Issuer signing key remains authorized.
If it cannot establish that authorization, it <bcp14>MUST</bcp14> reject the credential.  The
credential or its protected validation state <bcp14>MUST</bcp14> identify that Issuer, key,
and policy context.  The Verifier <bcp14>MUST</bcp14> reject the credential if the key has
expired, been revoked, or is no longer authorized, or if the request violates the
applicable policy.  Rotation does not invalidate a credential while its
original key remains authorized.</t>
        <t>The Verifier selects the compact credential's replay key.  The accepted
challenge nonce <bcp14>MUST</bcp14> remain bound to the credential or its protected
validation state.  A self-authenticating credential <bcp14>SHOULD</bcp14> provide a protected
identifier for replay tracking.  Otherwise, the Verifier <bcp14>MAY</bcp14> hash the
credential, protection space, and accepted request binding to derive a replay
key.  It <bcp14>MUST NOT</bcp14> trust an unauthenticated client-supplied identifier.  For
non-idempotent operations, unavailable replay state or failure to consume the
key atomically is a validation failure.</t>
      </section>
      <section anchor="delegation-proof-field">
        <name>The Delegation-Proof Request Field</name>
        <t>The <tt>Delegation-Proof</tt> request field carries a signed Delegation proof.
A client can use this field when <tt>Authorization</tt> carries another credential
or when the application uses separate fields for authentication and delegated
authority.</t>
        <t>Its value is a Structured Field Item <xref target="RFC9651"/> with a Byte Sequence bare
item containing the COSE/CBOR proof.  The example abbreviates the Base64
data; the ellipses are not sent:</t>
        <sourcecode type="http-message"><![CDATA[
Delegation-Proof: :2BhA...base64-cose...kQ:
]]></sourcecode>
        <t>If a request contains both <tt>Authorization: Delegation</tt> and
<tt>Delegation-Proof</tt>, the Verifier <bcp14>MUST</bcp14> reject it unless a selected deployment
profile defines how the two credentials are validated together.</t>
        <t>A requester <bcp14>MUST NOT</bcp14> concatenate a non-Delegation credential and a
Delegation credential in one <tt>Authorization</tt> value unless an authentication
scheme defines that syntax.  When another credential occupies
<tt>Authorization</tt>, a Delegation proof that fits the deployment's field-size
limit <bcp14>SHOULD</bcp14> use <tt>Delegation-Proof</tt>.  Use of a preflight compact credential
with such a request requires a companion profile defining its field and
request binding.</t>
        <t>The Verifier <bcp14>MUST</bcp14> validate the identity credential and Delegation proof
separately.  Identity authentication failures use the response rules of that
authentication scheme; Delegation failures use <xref target="challenge-responses"/>.</t>
        <t>If a response depends on <tt>Delegation-Proof</tt>, the origin server <bcp14>SHOULD</bcp14> send
<tt>Cache-Control: no-store</tt> or <tt>Cache-Control: private</tt> unless the response is
safe for shared caching.  An intentionally cacheable response <bcp14>MUST</bcp14> identify
the request fields that affect its selection, for example with
<tt>Vary: Delegation-Proof</tt> <xref target="RFC9111"/>.  Challenge and preflight responses
remain subject to their <tt>no-store</tt> requirements.</t>
        <t>The Budget <tt>cose-ml-dsa</tt> profile <bcp14>MUST</bcp14> support preflight body carriage with
<tt>application/delegation-proof+cose</tt>.  A deployment profile <bcp14>MAY</bcp14> permit
<tt>Delegation-Proof</tt> field carriage if it defines accepted field sizes and
failure behavior.  The field-carried proof and application content are bound
using <xref target="request-binding"/> and the complete-message checks in
<xref target="proof-content-completeness"/>.  Another versioned profile can define a
different body media type or carriage format.</t>
      </section>
    </section>
    <section anchor="budget-envelope">
      <name>Budget Authority Profile: Budget-Attestation Envelope</name>
      <section anchor="budget-profile-selection">
        <name>Profile and Version Selection</name>
        <t>Before decoding Budget-Claims, a Verifier <bcp14>MUST</bcp14> select the Delegation version,
authority profile, proof format, algorithm policy, and carriage location from
the challenge and authenticated configuration for the protection space.  The
carriage location is request content, <tt>Authorization</tt>, or <tt>Delegation-Proof</tt>.
For request content, the selection includes the proof media type and permitted
parameters.  Field carriage has no HTTP proof media type; the Verifier <bcp14>MUST
NOT</bcp14> infer one from the COSE object.</t>
        <t>For <tt>Authorization</tt>, the Verifier <bcp14>MUST</bcp14> select full proof or compact credential
before decoding the token, as specified in <xref target="auth-scheme"/>.  It <bcp14>MUST NOT</bcp14> try
the other form after a decoding or verification failure.</t>
        <t>For a body-carried proof, the Verifier <bcp14>MUST</bcp14> parse <tt>Content-Type</tt> using
<xref target="RFC9110"/>, Sections 5.6.6 and 8.3.1, and compare the parsed media type
and parameters with the selected profile.  Type, subtype, and parameter
names are case-insensitive.  The only permitted parameter for
<tt>application/delegation-proof+cose</tt> is <tt>cose-type</tt>.  Duplicate parameters,
unrecognized parameters, or a value other than <tt>cose-sign1</tt> for
<tt>cose-type</tt> <bcp14>MUST</bcp14> cause rejection.  The Verifier <bcp14>MUST</bcp14> check the tag and
parameter together as specified in <xref target="iana-media-type"/>.  Neither selects
a different proof profile.</t>
        <table>
          <thead>
            <tr>
              <th align="left">Preflight proof body</th>
              <th align="left">No cose-type</th>
              <th align="left">cose-type=cose-sign1</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">COSE_Sign1 with tag 18</td>
              <td align="left">Permitted</td>
              <td align="left">Permitted</td>
            </tr>
            <tr>
              <td align="left">Untagged COSE_Sign1</td>
              <td align="left">Rejected</td>
              <td align="left">Permitted</td>
            </tr>
          </tbody>
        </table>
        <t>In the base profile, the body of the preflight POST carries the proof.
Field carriage, when permitted under <xref target="auth-scheme"/> or
<xref target="delegation-proof-field"/>, has no HTTP proof media type or parameters.</t>
        <t>The Verifier <bcp14>MUST</bcp14> associate that selection, including credential kind and media
metadata where applicable, with the challenge nonce.  After decoding field 10
under the selected schema, it <bcp14>MUST</bcp14> confirm that the nonce identifies the same
selection.  Request values <bcp14>MUST NOT</bcp14> change the selection.  The Verifier <bcp14>MUST NOT</bcp14>
select a claim schema by trying multiple decoders or examining the CBOR type of
a claim.  This profile uses Delegation version 1, authority profile <tt>budget</tt>,
proof format <tt>cose-ml-dsa</tt>, and Budget-Claims version 1, subject to the
advertised and locally required algorithm policy.</t>
        <t>The outer COSE structure and Budget-Claims field 1 confirm the selected format
and version.  A mismatch, unknown claim label, claim from another profile, or
mixture of profile versions <bcp14>MUST</bcp14> cause rejection.  Duplicate map keys <bcp14>MUST</bcp14>
cause rejection before claims are used.  Label 14 has only the Request-Binding
type and meaning defined here; other values <bcp14>MUST</bcp14> cause rejection.</t>
      </section>
      <section anchor="cosesign1-and-budget-claims-encoding">
        <name>COSE_Sign1 and Budget-Claims Encoding</name>
        <t>The Budget-Attestation envelope is one COSE_Sign1 object <xref target="RFC9052"/> whose
payload is a Budget-Claims map encoded in deterministic CBOR <xref target="RFC8949"/>.  The
CDDL notation below uses <xref target="RFC8610"/>.  Encoders <bcp14>MUST</bcp14> follow <xref target="RFC8949"/>,
Section 4.2.1, and Verifiers <bcp14>MUST</bcp14> reject non-deterministic encodings.
Verifiers <bcp14>MUST</bcp14> use the protected-header bstr and payload bstr as received when
constructing Sig_structure; they <bcp14>MUST NOT</bcp14> re-encode either one first.</t>
        <t>Verifiers <bcp14>MUST</bcp14> reject duplicate keys in the COSE header maps, Budget-Claims,
and Request-Binding.  Duplicate detection <bcp14>MUST</bcp14> occur before encoded pairs are
collapsed into a map.  A header label present in both the protected and
unprotected header maps also causes rejection.  Budget-Claims uses integer
labels; the names in the CDDL comments are descriptive and are not encoded.</t>
        <t>The COSE_Sign1 object can use tag 18 or the untagged four-element array.
Verifiers <bcp14>SHOULD</bcp14> accept both forms subject to the carriage rules; Issuers
<bcp14>SHOULD</bcp14> send the tagged form unless a deployment profile specifies otherwise.
An untagged proof in an HTTP body requires the <tt>cose-type</tt> parameter
(<xref target="iana-media-type"/>); field carriage does not.  The payload <bcp14>MUST</bcp14> contain the
Budget-Claims bstr; a detached <tt>null</tt> payload <bcp14>MUST</bcp14> be rejected.  The protected
header map <bcp14>MUST</bcp14> contain the algorithm header parameter and, when multiple
Issuer keys are available, a <tt>kid</tt> that identifies the key.  The unprotected
header map <bcp14>MUST</bcp14> be empty.  A <tt>crit</tt> protected header parameter <bcp14>MUST</bcp14> be
understood before the proof is accepted.</t>
        <t>The base profile assigns no COSE content type to Budget-Claims.  Issuers <bcp14>MUST</bcp14>
omit <tt>ctyp</tt>, and Verifiers <bcp14>MUST</bcp14> reject it.  A separately selected and versioned
extension can define an exact protected <tt>ctyp</tt> value and its verification
rules.  It <bcp14>MUST</bcp14> treat <tt>ctyp</tt> as a signed consistency check and <bcp14>MUST NOT</bcp14> use it
to select an authority profile.  The HTTP media type
<tt>application/delegation-proof+cose</tt> describes the outer representation, not
the COSE payload.</t>
        <t>This profile permits exactly one Issuer signature: the signature element of
COSE_Sign1.  Issuers <bcp14>MUST NOT</bcp14> use COSE_Sign, a countersignature, a
signature-bearing Budget-Claims field, a second signature slot, or a trailing
signature object.  Verifiers <bcp14>MUST</bcp14> reject these constructions.</t>
        <t>The signature input is the COSE_Sign1 Sig_structure defined by <xref target="RFC9052"/>:
context string <tt>Signature1</tt>, the received protected-header bstr, an empty
external_aad bstr unless another profile specifies a value, and the received
Budget-Claims payload bstr.  Verifiers <bcp14>MUST</bcp14> reject a non-deterministically
encoded protected header or Budget-Claims payload.</t>
        <sourcecode type="cddl"><![CDATA[
Budget-Claims = {
  1  => uint,                ; version
  2  => tstr,                ; issuer identifier
  3  => tstr,                ; delegated requester identifier
  4  => tstr,                ; authorized budget total or limit
  5  => tstr,                ; remaining budget
  6  => tstr,                ; currency or metered-unit identifier
  7  => [+ tstr],            ; permitted rails/actions/classes
  8  => uint,                ; issued-at ms since Unix epoch
  9  => uint,                ; expires-at ms since Unix epoch
  10 => bstr .size (16..64), ; nonce from the Delegation challenge
  ? 11 => bstr,              ; reserved profile extension slot
  ? 12 => bstr .size 32,     ; reserved digest extension slot
  13 => tstr,                ; verifier or merchant binding
  ? 14 => Request-Binding    ; signed request binding
}

Request-Binding = {
  "method"  => tstr,
  "uri-h"   => bstr .size 32,
  "origin"  => tstr,
  ? "body-h" => bstr .size 32
}

]]></sourcecode>
        <t>Fields 4 and 5 carry decimal strings.  A Verifier <bcp14>MUST</bcp14> parse them according
to the selected currency or metered-unit policy and <bcp14>MUST</bcp14> reject ambiguous or
unparseable values.  A minimum budget, unit, or action advertised in a
challenge is authoritative only if it appears in the signed claims.</t>
        <t>Fields 11 and 12 are optional extension slots.  Issuers using the base
<tt>cose-ml-dsa</tt> profile <bcp14>MUST</bcp14> omit them; Verifiers <bcp14>MUST</bcp14> accept their absence.  A
Verifier <bcp14>MUST</bcp14> reject either field unless the selected extension profile
defines and the Verifier supports its type, byte semantics, verification,
failure behavior, and version negotiation.  A profile that uses field 12 <bcp14>MUST</bcp14>
also define its digest algorithm and covered bytes.  The Verifier <bcp14>MUST NOT</bcp14>
infer the profile from a field's length or contents or retry under another
profile after rejection.</t>
        <t>Field 12 does not replace field 14, the preflight target-content digest,
validation of any <tt>Content-Digest</tt> field, or computation of the protected
request's content digest.</t>
        <t>Field 14, when present, carries a signed <tt>Request-Binding</tt> structure.  An
Issuer binding a Budget-Attestation to a specific protected request <bcp14>MUST</bcp14> use
field 14 as defined in <xref target="request-binding"/>.  Other types or meanings for label
14 <bcp14>MUST</bcp14> be rejected.  Without field 14, the signed claims describe authorized
actions and bounds rather than one HTTP target.  The Verifier can still issue
a compact credential bound to a particular protected request after preflight.</t>
      </section>
      <section anchor="request-binding">
        <name>Request-Binding Canonicalization</name>
        <t>When a Budget-Attestation is bound to a protected request, the Issuer
and Verifier <bcp14>MUST</bcp14> use the same canonical target-request components:</t>
        <ul spacing="normal">
          <li>
            <t><tt>method</tt> is the HTTP method token as received by the origin server.  HTTP
method tokens are case-sensitive; Verifiers <bcp14>MUST NOT</bcp14> case-normalize this
value before comparison.</t>
          </li>
          <li>
            <t><tt>origin</tt> is <tt>scheme "://" authority</tt> for the effective request URI as
reconstructed by the Verifier after applying only trusted origin,
gateway, or reverse-proxy configuration.  The scheme and host are serialized
in lowercase.  A default port for the scheme is omitted; a non-default port
is included.  Verifiers <bcp14>MUST NOT</bcp14> use untrusted <tt>Forwarded</tt>,
<tt>X-Forwarded-*</tt>, or similar fields when reconstructing the origin.</t>
          </li>
          <li>
            <t><tt>uri-h</tt> is SHA-256 over the UTF-8 serialization of the origin-form target.
An empty path is serialized as <tt>/</tt>.  An absent query contributes no <tt>?</tt>,
while a present but empty query contributes a final <tt>?</tt>; otherwise the path
is followed by <tt>"?"</tt> and the query component.  Verifiers <bcp14>MUST NOT</bcp14> reorder
query parameters,
percent-decode and re-encode octets, remove dot segments, or otherwise
transform the target before hashing.  Verifiers <bcp14>MUST</bcp14> reject target forms
they cannot bind deterministically, including CONNECT authority-form and
OPTIONS asterisk-form unless a profile explicitly defines those cases.</t>
          </li>
          <li>
            <t><tt>body-h</tt> is SHA-256 over the HTTP request content bytes after transfer-coding
removal and before application parsing or content-coding transformation.
It is <bcp14>REQUIRED</bcp14> when the protected request has content, including
explicitly framed zero-length content, and <bcp14>MUST</bcp14> be omitted when the request
has no content.</t>
          </li>
        </ul>
        <t>The Issuer constructs the Request-Binding map from those components, encodes
that map as Budget-Claims field 14 before constructing the Budget-Claims payload
bstr, and signs that payload through the COSE_Sign1 Sig_structure.  No member
other than those defined by <tt>Request-Binding</tt> is permitted in this version.
The Verifier independently reconstructs the method, origin, target, and body
digest when present and compares them with the signed values.  A missing
required member, an unknown member, a type mismatch, or any unequal component
<bcp14>MUST</bcp14> cause rejection.</t>
        <t>When the proof is in <tt>Authorization</tt> or <tt>Delegation-Proof</tt>, the Verifier
reconstructs Request-Binding from the request containing that field.  For
preflight, it uses the validated <tt>Delegation-Target-*</tt> fields that identify
the subsequent protected request.  It <bcp14>MUST NOT</bcp14> use the method, URI, or COSE
content of the preflight POST to verify field 14.  A profile that carries
both proof and application content in the same request <bcp14>MUST</bcp14> specify how
to extract and hash the application content for <tt>body-h</tt> without including
the proof in its own signature input (<xref target="auth-scheme"/>).</t>
        <t>If the Verifier cannot reconstruct these components, it <bcp14>MUST</bcp14> reject the proof.</t>
      </section>
      <section anchor="primary-signature">
        <name>Primary Signature</name>
        <t>Every Budget-Attestation <bcp14>MUST</bcp14> contain exactly one primary Issuer
signature.  The protected COSE algorithm header <bcp14>MUST</bcp14> use the COSE algorithm
identifier registered for the selected ML-DSA algorithm by <xref target="RFC9964"/>.
The textual <tt>alg</tt> challenge name identifies that same algorithm; it is not
the integer encoded in the protected COSE header.</t>
        <t>The Budget <tt>cose-ml-dsa</tt> profile specifies the following algorithms:</t>
        <ul spacing="normal">
          <li>
            <t>Implementations of this profile <bcp14>MUST</bcp14> support ML-DSA-65.</t>
          </li>
          <li>
            <t>Implementations <bcp14>MAY</bcp14> support ML-DSA-87.</t>
          </li>
          <li>
            <t>Deployments <bcp14>MAY</bcp14> require ML-DSA-87 or another ML-DSA algorithm registered by
<xref target="RFC9964"/> under local policy.  Supporting ML-DSA-65 does not require a
Verifier to accept it when the selected deployment policy requires ML-DSA-87.</t>
          </li>
          <li>
            <t>Verifiers <bcp14>MUST</bcp14> validate that the signed protected-header algorithm matches
local policy and <bcp14>MUST</bcp14> reject algorithm downgrades.</t>
          </li>
        </ul>
        <t>ML-DSA processing follows <xref target="RFC9964"/>, including its empty <tt>ctx</tt> parameter.
The message being signed is the complete COSE Sig_structure.  The ML-DSA
<tt>ctx</tt> parameter is distinct from the COSE context string <tt>Signature1</tt> and
from COSE <tt>external_aad</tt>.  HashML-DSA and nonempty ML-DSA contexts are not
defined by the algorithm identifiers used by this profile.</t>
        <t>The Budget <tt>cose-ml-dsa</tt> profile accepts one COSE_Sign1 Issuer signature.
COSE_Sign, countersignatures, private-use algorithms, and other signature
constructions require a separately selected and versioned profile.  They <bcp14>MUST
NOT</bcp14> be advertised or accepted as values of <tt>cose-ml-dsa</tt>.</t>
      </section>
      <section anchor="issuer-key-discovery">
        <name>Issuer Key Discovery</name>
        <t>The Verifier obtains the Issuer's public key from authenticated configuration
or from a key set at an HTTPS URI authorized by that configuration.  The
key distribution format specified here is a COSE_KeySet with media type
<tt>application/cose-key-set</tt> (<xref target="RFC9052"/>).  The path of the HTTPS URI is
deployment specific.</t>
        <t>An ML-DSA public key in the set uses the Algorithm Key Pair (AKP) parameters
of <xref target="RFC9964"/>, Section 3.  The key type (<tt>kty</tt>, label 1) is 7; the algorithm
(<tt>alg</tt>, label 3) identifies the ML-DSA algorithm; and <tt>pub</tt> (label -1) is
a CBOR byte string containing the public key.  A published key <bcp14>MUST NOT</bcp14>
contain the private key parameter <tt>priv</tt> (label -2).  Each key used in this
profile <bcp14>MUST</bcp14> have a key identifier (<tt>kid</tt>, label 2) encoded as a CBOR
byte string.</t>
        <section anchor="issuer-trust-context">
          <name>Issuer Identification and Key Selection</name>
          <t>The Verifier <bcp14>MUST</bcp14> match the Issuer in Budget-Claims field 2 to an Issuer
in its configuration and select a public key authorized for that Issuer.
If the proof includes a <tt>kid</tt>, the Verifier <bcp14>MUST</bcp14> match it within that
Issuer's authorized key set.  If more than one Issuer key is available,
the proof <bcp14>MUST</bcp14> contain <tt>kid</tt> in the protected header.  The key's <tt>alg</tt>
            <bcp14>MUST</bcp14> match the algorithm in the COSE
protected header and be permitted for the Issuer and profile.  The same
<tt>kid</tt> can identify different keys for different Issuers.  Neither a
key supplied in a proof nor a URI supplied by the requester identifies
a trusted Issuer.</t>
          <t>When retrieving a key set, the Verifier <bcp14>MUST</bcp14> authenticate the HTTPS service
identity as specified in <xref target="RFC9525"/>.  A DNS alias or resolved IP address
does not replace the configured reference identifier.  The Verifier <bcp14>MUST
NOT</bcp14> follow a redirect to a different origin unless its configuration
authorizes that origin for the Issuer, and <bcp14>MUST NOT</bcp14> follow a redirect to
a non-HTTPS URI.</t>
        </section>
        <section anchor="issuer-trust-lifecycle">
          <name>Key Rotation and Revocation</name>
          <t>An Issuer <bcp14>SHOULD</bcp14> keep its previous public key available during rotation
while proofs signed with that key remain valid, unless the key has been
revoked.  Rotation alone does not invalidate those proofs.  The Verifier
<bcp14>MUST</bcp14> reject a proof, or a compact credential issued for that proof, if it
knows the signing key has been revoked or is no longer authorized for the
Issuer.  Reassigning a <tt>kid</tt> does not change which key signed an earlier
proof.  Changes to authorized Issuers, keys, or algorithms <bcp14>MUST</bcp14> come from
a source authorized to make those changes.</t>
        </section>
        <section anchor="issuer-dnssec-composition">
          <name>DNSSEC</name>
          <t>A Verifier <bcp14>MAY</bcp14> use the DNS Security Extensions (DNSSEC) to authenticate DNS
records used to locate an authorized HTTPS key-set service (<xref target="RFC4033"/>,
<xref target="RFC4035"/>).  If local policy requires DNSSEC, the Verifier <bcp14>MUST NOT</bcp14> use
an answer that fails to validate from a configured DNSSEC trust anchor.
If policy requires signatures from two algorithms on each resource record
set (RRset) in the chain, the Verifier <bcp14>MUST</bcp14> validate both.</t>
          <t>DNSSEC authenticates DNS data.  The Verifier authenticates the HTTPS
service and selects an authorized Issuer key as specified in
<xref target="issuer-trust-context"/>.</t>
        </section>
      </section>
      <section anchor="verification">
        <name>Verification</name>
        <t>A Verifier processing a Budget-Attestation <bcp14>MUST</bcp14>:</t>
        <ol spacing="normal" type="1"><li>
            <t>Select the Delegation version, authority profile, proof format, algorithm
policy, carriage location, credential kind, and applicable media metadata
under <xref target="budget-profile-selection"/>.  Reject an unsupported or mixed
selection without trying another decoder.</t>
          </li>
          <li>
            <t>Apply <xref target="proof-content-completeness"/>.  Decode exactly one COSE_Sign1 value
from the selected body or field, rejecting non-deterministic encoding,
malformed or incomplete data, trailing octets, and disallowed signatures
or headers.  For body carriage, apply the tag and parameter rules in
<xref target="iana-media-type"/>.</t>
          </li>
          <li>
            <t>Confirm that field 1 matches the selected Budget-Claims version.  Reject
unknown or duplicate labels, incorrect types, and any field 14 value other
than Request-Binding.  Apply the extension-profile rules to fields 11 and
12 when present.</t>
          </li>
          <li>
            <t>Verify the one primary signature against an Issuer key authorized for the
issuer and <tt>kid</tt>.</t>
          </li>
          <li>
            <t>Verify that field 13 matches the verifier or merchant identifier established by authenticated local configuration
for the protected resource, whether or not field 14 is present.</t>
          </li>
          <li>
            <t>Parse fields 4 and 5 under the selected unit policy, check field 6 against
the required currency or metered unit, and enforce the signed bounds for
the protected resource.  Reject ambiguous, unsupported, or insufficient
values.</t>
          </li>
          <li>
            <t>Check that the verification time is within the interval specified by fields
8 and 9 (issuance and expiration, in milliseconds since the Unix epoch),
subject to clock-skew tolerance.  Reject an expiration time earlier than
the issuance time before computing the lifetime.  Reject a lifetime
greater than 900000 milliseconds.  Verifiers <bcp14>SHOULD</bcp14> allow no more than
60000 milliseconds of clock skew.</t>
          </li>
          <li>
            <t>Verify that field 10 matches an unexpired, unused challenge nonce.</t>
          </li>
          <li>
            <t>If field 14 is present, compare its method, origin, target URI hash, and
applicable body hash with the protected request.  In preflight,
construct the target from validated <tt>Delegation-Target-*</tt> fields rather
than the request carrying the proof.  If field 14 is absent, the Verifier <bcp14>MUST</bcp14>
enforce the action, resource class, and compact-credential binding required
by local policy before processing the protected request.</t>
          </li>
          <li>
            <t>Verify the permitted rail, action, or resource class in field 7.</t>
          </li>
        </ol>
        <t>Failure at any step <bcp14>MUST</bcp14> cause rejection.  The Verifier <bcp14>MUST NOT</bcp14> report claims
from a rejected proof as verified, issue a compact credential, or process the
protected operation.</t>
      </section>
    </section>
    <section anchor="versioning">
      <name>Versioning</name>
      <t>This document defines version 1 of the Delegation authentication scheme and
version 1 of the Budget-Claims map.  These are distinct version numbers.</t>
      <t>A Delegation challenge response <bcp14>MUST</bcp14> include a <tt>Delegation-Version</tt> response
field containing a Structured Field Integer <xref target="RFC9651"/>.  A <tt>Delegation</tt>
challenge <bcp14>SHOULD</bcp14> also include a <tt>version</tt> auth-param if the Verifier supports
multiple versions or requires a particular version.  If both values appear in
one response, they <bcp14>MUST</bcp14> agree.  A client <bcp14>MUST</bcp14> treat conflicting or unsupported
values as an unsupported challenge.</t>
      <t>A client <bcp14>MAY</bcp14> retry with another supported version only when the server
advertises that version or authenticated local configuration specifies it.
If a credential or a <tt>Delegation-Version</tt> request field specifies an
unsupported version, the server <bcp14>MUST</bcp14> reject the request as specified in
<xref target="challenge-responses"/> and use the <tt>version_unsupported</tt> reason code.</t>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>The registrations below follow <xref target="RFC8126"/> and <xref target="RFC9205"/>.</t>
      <section anchor="http-authentication-scheme">
        <name>HTTP Authentication Scheme</name>
        <t>IANA is asked to register the following entry in the "Hypertext Transfer
Protocol (HTTP) Authentication Scheme Registry" defined by <xref target="RFC9110"/>:</t>
        <table>
          <thead>
            <tr>
              <th align="left">Authentication Scheme Name</th>
              <th align="left">Reference</th>
              <th align="left">Notes</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">Delegation</td>
              <td align="left">This document, <xref target="auth-scheme"/></td>
              <td align="left">Origin-server authentication using <tt>WWW-Authenticate</tt> and <tt>Authorization</tt>; not defined for proxy authentication</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="http-field-name">
        <name>HTTP Field Name</name>
        <t>IANA is asked to register the following entries in the "Hypertext Transfer
Protocol (HTTP) Field Name Registry":</t>
        <table>
          <thead>
            <tr>
              <th align="left">Field Name</th>
              <th align="left">Status</th>
              <th align="left">Structured Type</th>
              <th align="left">Reference</th>
              <th align="left">Comments</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">Delegation-Version</td>
              <td align="left">permanent</td>
              <td align="left">Item</td>
              <td align="left">This document, <xref target="versioning"/></td>
              <td align="left">Integer item identifying the Delegation authentication-scheme version</td>
            </tr>
            <tr>
              <td align="left">Delegation-Proof</td>
              <td align="left">permanent</td>
              <td align="left">Item</td>
              <td align="left">This document, <xref target="delegation-proof-field"/></td>
              <td align="left">Byte Sequence item carrying a Delegation proof when <tt>Authorization</tt> is used by another origin-server scheme</td>
            </tr>
            <tr>
              <td align="left">Delegation-Target-Method</td>
              <td align="left">permanent</td>
              <td align="left">Item</td>
              <td align="left">This document, <xref target="preflight-target-fields"/></td>
              <td align="left">String item identifying the protected request method for Delegation preflight target binding</td>
            </tr>
            <tr>
              <td align="left">Delegation-Target-URI</td>
              <td align="left">permanent</td>
              <td align="left">Item</td>
              <td align="left">This document, <xref target="preflight-target-fields"/></td>
              <td align="left">String item identifying the protected request target URI for Delegation preflight target binding</td>
            </tr>
            <tr>
              <td align="left">Delegation-Target-Content-Digest</td>
              <td align="left">permanent</td>
              <td align="left">Dictionary</td>
              <td align="left">This document, <xref target="preflight-target-fields"/></td>
              <td align="left">Digest Fields dictionary identifying the protected request content digest for Delegation preflight target binding</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="iana-media-type">
        <name>Media Type</name>
        <t>IANA is asked to register the following media type in the "Media Types"
registry using the template from <xref target="RFC6838"/>:</t>
        <dl>
          <dt>Type name:</dt>
          <dd>
            <t>application</t>
          </dd>
          <dt>Subtype name:</dt>
          <dd>
            <t>delegation-proof+cose</t>
          </dd>
          <dt>Required parameters:</dt>
          <dd>
            <t>None for tagged COSE_Sign1.  Untagged COSE_Sign1 requires the
<tt>cose-type</tt> parameter described below.</t>
          </dd>
          <dt>Optional parameters:</dt>
          <dd>
            <t><tt>cose-type</tt>.  This media type follows the identification convention for
<tt>application/cose</tt> in <xref target="RFC9052"/>, Section 2, and the <tt>+cose</tt> entry in
<xref target="IANA-SUFFIX"/>: the sender <bcp14>MUST</bcp14> include <tt>cose-type</tt> for an untagged
COSE_Sign1 body and <bcp14>MAY</bcp14> omit it for a body carrying tag 18.
When present, its value <bcp14>MUST</bcp14> be <tt>cose-sign1</tt>.  The token form
<tt>cose-type=cose-sign1</tt> and quoted form <tt>cose-type="cose-sign1"</tt>
denote the same value.  Neither a different tag nor a different COSE
structure is permitted, even when the parameter says <tt>cose-sign1</tt>.</t>
          </dd>
          <dt>Encoding considerations:</dt>
          <dd>
            <t>binary</t>
          </dd>
          <dt>Security considerations:</dt>
          <dd>
            <t>See <xref target="security"/>.</t>
          </dd>
          <dt>Interoperability considerations:</dt>
          <dd>
            <t>Recipients need COSE and deterministic CBOR processing for the selected
authority profile.  The complete-content requirements in
<xref target="proof-content-completeness"/> apply.</t>
          </dd>
          <dt>Published specification:</dt>
          <dd>
            <t>This document.</t>
          </dd>
          <dt>Applications that use this media type:</dt>
          <dd>
            <t>HTTP clients, gateways, and origin servers that exchange Delegation proofs,
including Budget-Attestation envelopes under the Budget authority profile.</t>
          </dd>
          <dt>Fragment identifier considerations:</dt>
          <dd>
            <t>This media type does not support fragment identifiers.</t>
          </dd>
          <dt>Additional information:</dt>
          <dd>
            <t>Deprecated alias names for this type: N/A; Magic number(s): N/A; File
extension(s): N/A; Macintosh file type code(s): N/A.</t>
          </dd>
          <dt>Person &amp; email address to contact for further information:</dt>
          <dd>
            <t>John McGraw, j.mcgraw@taskhawktech.com</t>
          </dd>
          <dt>Intended usage:</dt>
          <dd>
            <t>COMMON</t>
          </dd>
          <dt>Restrictions on usage:</dt>
          <dd>
            <t>N/A</t>
          </dd>
          <dt>Author:</dt>
          <dd>
            <t>John McGraw</t>
          </dd>
          <dt>Change controller:</dt>
          <dd>
            <t>IESG</t>
          </dd>
          <dt>Provisional registration?</dt>
          <dd>
            <t>No</t>
          </dd>
        </dl>
      </section>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>Delegation proofs and compact credentials convey authority.  Requests carrying
them <bcp14>MUST</bcp14> use TLS.  A Verifier <bcp14>MUST</bcp14> validate any identity credential required
by the application separately from the Delegation proof.  An identity
credential alone does not satisfy Delegation, and a valid Delegation proof does
not authenticate an unrelated access token.</t>
      <t>The Verifier <bcp14>MUST</bcp14> complete the checks in <xref target="budget-envelope"/> before protected
processing.  It <bcp14>MUST</bcp14> reject a proof if its signature, issuer key, nonce,
expiration, request binding, or authority bounds fail validation.  Malformed
CBOR, unsupported versions and algorithms, and unavailable replay state are
also rejection conditions.</t>
      <t>The Verifier <bcp14>MUST</bcp14> select the Delegation version, authority profile, proof
format, carriage location, and algorithm policy before interpreting claims,
as specified in <xref target="budget-profile-selection"/>.  It <bcp14>MUST NOT</bcp14> retry a failed
proof under another profile.  The signed COSE algorithm and Issuer key <bcp14>MUST</bcp14>
satisfy the configured algorithm policy; a challenge parameter cannot relax
that policy.</t>
      <t>ML-DSA authenticates the Budget proof.  TLS provides transport
confidentiality and server authentication.  This document does not specify
post-quantum TLS or certificate migration; <xref target="RFC9958"/> discusses the wider
migration.</t>
      <t>The Verifier <bcp14>MUST</bcp14> authorize the Issuer key according to
<xref target="issuer-trust-context"/> and <xref target="issuer-trust-lifecycle"/>.  An issuer identifier
or key URL in the proof cannot establish that trust.  HTTPS authenticates a
configured key-set service; DNSSEC, when used, authenticates DNS data.
Neither authorizes an Issuer.  A Verifier <bcp14>MUST</bcp14> reject a proof signed by a
revoked, expired, or unauthorized key.</t>
      <t>Signature verification authenticates the signed COSE bytes under the accepted
Issuer key.  The base Budget profile accepts one COSE_Sign1 Issuer signature;
additional signatures require another profile.</t>
      <t>The Verifier can mark a credential as used before the operation completes
or before the response reaches the client.  Single-use acceptance therefore does
not guarantee exactly-once application processing.  An application that needs
safe retries has to define its transaction and idempotency behavior; a
consumed credential remains unavailable for replay.</t>
      <t>Large COSE objects can exhaust HTTP field and body parsers or COSE
implementations.  Verifiers <bcp14>MUST</bcp14> apply size limits before decoding, bound CBOR
nesting and map sizes, and reject duplicate keys and unsupported critical
protected parameters before signature verification.  Key-set retrieval <bcp14>MUST</bcp14>
bound response sizes, redirects, and parsing depth.  A Verifier <bcp14>MUST NOT</bcp14> fetch
an arbitrary key URL supplied in an untrusted proof.</t>
      <t>The Verifier <bcp14>MUST</bcp14> limit the number of outstanding nonces for each Issuer,
protection space, and client identity available to it.  At that limit, it
<bcp14>MUST</bcp14> stop issuing stateful challenges or reject requests that depend on an
untracked nonce.  It <bcp14>MUST</bcp14> reject a request when required replay state is
unavailable.  Self-authenticating challenge nonces can reduce
the state allocated at challenge issuance; they do not replace tracking of
accepted nonces or single-use compact credentials.  Unused challenges expire
at their <tt>max-age</tt> deadline or the applicable local default.</t>
    </section>
    <section anchor="privacy-considerations">
      <name>Privacy Considerations</name>
      <t>Delegation proofs may expose requester and Issuer identifiers, requested
actions, authority bounds, rail preferences, and amount limits.  Deployments
<bcp14>SHOULD</bcp14> limit the identifiers and claims to those needed for the authorization
decision, consistent with <xref target="RFC6973"/>.  Pairwise identifiers can reduce
linkability across protection spaces.</t>
      <t>Challenges and Problem Details responses can reveal Issuers and local
authority requirements.  Servers <bcp14>SHOULD</bcp14> limit unauthenticated responses to
the information needed to obtain a proof and <bcp14>SHOULD</bcp14> limit challenge issuance
to control enumeration and resource use.</t>
      <t>Servers <bcp14>SHOULD</bcp14> omit credential values from logs and traces, including the
<tt>Authorization</tt> and <tt>Delegation-Proof</tt> fields, compact credentials, and
body-carried proofs.  They <bcp14>SHOULD</bcp14> also omit preflight target URIs and content
digests when those values reveal sensitive resources or actions.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references">
      <name>References</name>
      <references anchor="sec-normative-references">
        <name>Normative References</name>
        <reference anchor="RFC4648">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author fullname="Simon Josefsson" initials="S." surname="Josefsson"/>
            <date month="October" year="2006"/>
          </front>
          <seriesInfo name="RFC" value="4648"/>
          <seriesInfo name="DOI" value="10.17487/RFC4648"/>
        </reference>
        <reference anchor="RFC8126">
          <front>
            <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
            <author fullname="M. Cotton" initials="M." surname="Cotton"/>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <author fullname="T. Narten" initials="T." surname="Narten"/>
            <date month="June" year="2017"/>
            <abstract>
              <t>Many protocols make use of points of extensibility that use constants to identify various protocol parameters. To ensure that the values in these fields do not have conflicting uses and to promote interoperability, their allocations are often coordinated by a central record keeper. For IETF protocols, that role is filled by the Internet Assigned Numbers Authority (IANA).</t>
              <t>To make assignments in a given registry prudently, guidance describing the conditions under which new values should be assigned, as well as when and how modifications to existing values can be made, is needed. This document defines a framework for the documentation of these guidelines by specification authors, in order to assure that the provided guidance for the IANA Considerations is clear and addresses the various issues that are likely in the operation of a registry.</t>
              <t>This is the third edition of this document; it obsoletes RFC 5226.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="26"/>
          <seriesInfo name="RFC" value="8126"/>
          <seriesInfo name="DOI" value="10.17487/RFC8126"/>
        </reference>
        <reference anchor="RFC6838">
          <front>
            <title>Media Type Specifications and Registration Procedures</title>
            <author fullname="N. Freed" initials="N." surname="Freed"/>
            <author fullname="J. Klensin" initials="J." surname="Klensin"/>
            <author fullname="T. Hansen" initials="T." surname="Hansen"/>
            <date month="January" year="2013"/>
            <abstract>
              <t>This document defines procedures for the specification and registration of media types for use in HTTP, MIME, and other Internet protocols. This memo documents an Internet Best Current Practice.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="13"/>
          <seriesInfo name="RFC" value="6838"/>
          <seriesInfo name="DOI" value="10.17487/RFC6838"/>
        </reference>
        <reference anchor="RFC8610">
          <front>
            <title>Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures</title>
            <author fullname="H. Birkholz" initials="H." surname="Birkholz"/>
            <author fullname="C. Vigano" initials="C." surname="Vigano"/>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <date month="June" year="2019"/>
            <abstract>
              <t>This document proposes a notational convention to express Concise Binary Object Representation (CBOR) data structures (RFC 7049). Its main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8610"/>
          <seriesInfo name="DOI" value="10.17487/RFC8610"/>
        </reference>
        <reference anchor="RFC8949">
          <front>
            <title>Concise Binary Object Representation (CBOR)</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <author fullname="P. Hoffman" initials="P." surname="Hoffman"/>
            <date month="December" year="2020"/>
            <abstract>
              <t>The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.</t>
              <t>This document obsoletes RFC 7049, providing editorial improvements, new details, and errata fixes while keeping full compatibility with the interchange format of RFC 7049. It does not create a new version of the format.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="94"/>
          <seriesInfo name="RFC" value="8949"/>
          <seriesInfo name="DOI" value="10.17487/RFC8949"/>
        </reference>
        <reference anchor="RFC9052">
          <front>
            <title>CBOR Object Signing and Encryption (COSE): Structures and Process</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="August" year="2022"/>
            <abstract>
              <t>Concise Binary Object Representation (CBOR) is a data format designed for small code size and small message size. There is a need to be able to define basic security services for this data format. This document defines the CBOR Object Signing and Encryption (COSE) protocol. This specification describes how to create and process signatures, message authentication codes, and encryption using CBOR for serialization. This specification additionally describes how to represent cryptographic keys using CBOR.</t>
              <t>This document, along with RFC 9053, obsoletes RFC 8152.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="96"/>
          <seriesInfo name="RFC" value="9052"/>
          <seriesInfo name="DOI" value="10.17487/RFC9052"/>
        </reference>
        <reference anchor="RFC9110">
          <front>
            <title>HTTP Semantics</title>
            <author fullname="R. Fielding" initials="R." role="editor" surname="Fielding"/>
            <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham"/>
            <author fullname="J. Reschke" initials="J." role="editor" surname="Reschke"/>
            <date month="June" year="2022"/>
            <abstract>
              <t>The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document describes the overall architecture of HTTP, establishes common terminology, and defines aspects of the protocol that are shared by all versions. In this definition are core protocol elements, extensibility mechanisms, and the "http" and "https" Uniform Resource Identifier (URI) schemes.</t>
              <t>This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="97"/>
          <seriesInfo name="RFC" value="9110"/>
          <seriesInfo name="DOI" value="10.17487/RFC9110"/>
        </reference>
        <reference anchor="RFC9111">
          <front>
            <title>HTTP Caching</title>
            <author fullname="R. Fielding" initials="R." role="editor" surname="Fielding"/>
            <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham"/>
            <author fullname="J. Reschke" initials="J." role="editor" surname="Reschke"/>
            <date month="June" year="2022"/>
            <abstract>
              <t>The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document defines HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages.</t>
              <t>This document obsoletes RFC 7234.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="98"/>
          <seriesInfo name="RFC" value="9111"/>
          <seriesInfo name="DOI" value="10.17487/RFC9111"/>
        </reference>
        <reference anchor="RFC9205">
          <front>
            <title>Building Protocols with HTTP</title>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <date month="June" year="2022"/>
            <abstract>
              <t>Applications often use HTTP as a substrate to create HTTP-based APIs. This document specifies best practices for writing specifications that use HTTP to define new application protocols. It is written primarily to guide IETF efforts to define application protocols using HTTP for deployment on the Internet but might be applicable in other situations.</t>
              <t>This document obsoletes RFC 3205.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="56"/>
          <seriesInfo name="RFC" value="9205"/>
          <seriesInfo name="DOI" value="10.17487/RFC9205"/>
        </reference>
        <reference anchor="RFC9530">
          <front>
            <title>Digest Fields</title>
            <author fullname="R. Polli" initials="R." surname="Polli"/>
            <author fullname="L. Pardue" initials="L." surname="Pardue"/>
            <date month="February" year="2024"/>
            <abstract>
              <t>This document defines HTTP fields that support integrity digests. The Content-Digest field can be used for the integrity of HTTP message content. The Repr-Digest field can be used for the integrity of HTTP representations. Want-Content-Digest and Want-Repr-Digest can be used to indicate a sender's interest and preferences for receiving the respective Integrity fields.</t>
              <t>This document obsoletes RFC 3230 and the Digest and Want-Digest HTTP fields.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9530"/>
          <seriesInfo name="DOI" value="10.17487/RFC9530"/>
        </reference>
        <reference anchor="RFC9457">
          <front>
            <title>Problem Details for HTTP APIs</title>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <author fullname="E. Wilde" initials="E." surname="Wilde"/>
            <author fullname="S. Dalal" initials="S." surname="Dalal"/>
            <date month="July" year="2023"/>
            <abstract>
              <t>This document defines a "problem detail" to carry machine-readable details of errors in HTTP response content to avoid the need to define new error response formats for HTTP APIs.</t>
              <t>This document obsoletes RFC 7807.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9457"/>
          <seriesInfo name="DOI" value="10.17487/RFC9457"/>
        </reference>
        <reference anchor="RFC9651">
          <front>
            <title>Structured Field Values for HTTP</title>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <author fullname="P-H. Kamp" surname="P-H. Kamp"/>
            <date month="September" year="2024"/>
            <abstract>
              <t>This document describes a set of data types and associated algorithms that are intended to make it easier and safer to define and handle HTTP header and trailer fields, known as "Structured Fields", "Structured Headers", or "Structured Trailers". It is intended for use by specifications of new HTTP fields.</t>
              <t>This document obsoletes RFC 8941.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9651"/>
          <seriesInfo name="DOI" value="10.17487/RFC9651"/>
        </reference>
        <reference anchor="RFC9964">
          <front>
            <title>ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)</title>
            <author fullname="M. Prorock" initials="M." surname="Prorock"/>
            <author fullname="O. Steele" initials="O." surname="Steele"/>
            <date month="May" year="2026"/>
            <abstract>
              <t>This document specifies JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE) serializations for the Module-Lattice-Based Digital Signature Standard (ML-DSA), a Post-Quantum Cryptography (PQC) digital signature scheme defined in US NIST FIPS 204.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9964"/>
          <seriesInfo name="DOI" value="10.17487/RFC9964"/>
        </reference>
        <reference anchor="RFC9525">
          <front>
            <title>Service Identity in TLS</title>
            <author initials="P." surname="Saint-Andre"/>
            <author initials="R." surname="Salz"/>
            <date month="November" year="2023"/>
          </front>
          <seriesInfo name="RFC" value="9525"/>
          <seriesInfo name="DOI" value="10.17487/RFC9525"/>
        </reference>
        <reference anchor="FIPS204" target="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf">
          <front>
            <title>Module-Lattice-Based Digital Signature Standard</title>
            <author>
              <organization>National Institute of Standards and Technology (NIST)</organization>
            </author>
            <date year="2024" month="August"/>
          </front>
          <seriesInfo name="FIPS PUB" value="204"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.204"/>
        </reference>
        <reference anchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
      </references>
      <references anchor="sec-informative-references">
        <name>Informative References</name>
        <reference anchor="IANA-SUFFIX" target="https://www.iana.org/assignments/media-type-structured-suffix/">
          <front>
            <title>Structured Syntax Suffixes</title>
            <author>
              <organization>Internet Assigned Numbers Authority</organization>
            </author>
            <date>n.d.</date>
          </front>
        </reference>
        <reference anchor="RFC4033">
          <front>
            <title>DNS Security Introduction and Requirements</title>
            <author initials="R." surname="Arends"/>
            <author initials="R." surname="Austein"/>
            <author initials="M." surname="Larson"/>
            <author initials="D." surname="Massey"/>
            <author initials="S." surname="Rose"/>
            <date month="March" year="2005"/>
          </front>
          <seriesInfo name="RFC" value="4033"/>
          <seriesInfo name="DOI" value="10.17487/RFC4033"/>
        </reference>
        <reference anchor="RFC4035">
          <front>
            <title>Protocol Modifications for the DNS Security Extensions</title>
            <author initials="R." surname="Arends"/>
            <author initials="R." surname="Austein"/>
            <author initials="M." surname="Larson"/>
            <author initials="D." surname="Massey"/>
            <author initials="S." surname="Rose"/>
            <date month="March" year="2005"/>
          </front>
          <seriesInfo name="RFC" value="4035"/>
          <seriesInfo name="DOI" value="10.17487/RFC4035"/>
        </reference>
        <reference anchor="RFC6973">
          <front>
            <title>Privacy Considerations for Internet Protocols</title>
            <author fullname="A. Cooper" initials="A." surname="Cooper"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="J. Peterson" initials="J." surname="Peterson"/>
            <author fullname="J. Morris" initials="J." surname="Morris"/>
            <author fullname="M. Hansen" initials="M." surname="Hansen"/>
            <author fullname="R. Smith" initials="R." surname="Smith"/>
            <date month="July" year="2013"/>
            <abstract>
              <t>This document offers guidance for developing privacy considerations for inclusion in protocol specifications. It aims to make designers, implementers, and users of Internet protocols aware of privacy-related design choices. It suggests that whether any individual RFC warrants a specific privacy considerations section will depend on the document's content.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6973"/>
          <seriesInfo name="DOI" value="10.17487/RFC6973"/>
        </reference>
        <reference anchor="RFC5755">
          <front>
            <title>An Internet Attribute Certificate Profile for Authorization</title>
            <author fullname="S. Farrell" initials="S." surname="Farrell"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="January" year="2010"/>
            <abstract>
              <t>This specification defines a profile for the use of X.509 Attribute Certificates in Internet Protocols. Attribute certificates may be used in a wide range of applications and environments covering a broad spectrum of interoperability goals and a broader spectrum of operational and assurance requirements. The goal of this document is to establish a common baseline for generic applications requiring broad interoperability as well as limited special purpose requirements. The profile places emphasis on attribute certificate support for Internet electronic mail, IPsec, and WWW security applications. This document obsoletes RFC 3281. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5755"/>
          <seriesInfo name="DOI" value="10.17487/RFC5755"/>
        </reference>
        <reference anchor="RFC8693">
          <front>
            <title>OAuth 2.0 Token Exchange</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="A. Nadalin" initials="A." surname="Nadalin"/>
            <author fullname="B. Campbell" initials="B." role="editor" surname="Campbell"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="C. Mortimore" initials="C." surname="Mortimore"/>
            <date month="January" year="2020"/>
            <abstract>
              <t>This specification defines a protocol for an HTTP- and JSON-based Security Token Service (STS) by defining how to request and obtain security tokens from OAuth 2.0 authorization servers, including security tokens employing impersonation and delegation.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8693"/>
          <seriesInfo name="DOI" value="10.17487/RFC8693"/>
        </reference>
        <reference anchor="RFC9449">
          <front>
            <title>OAuth 2.0 Demonstrating Proof of Possession (DPoP)</title>
            <author fullname="D. Fett" initials="D." surname="Fett"/>
            <author fullname="B. Campbell" initials="B." surname="Campbell"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="T. Lodderstedt" initials="T." surname="Lodderstedt"/>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="D. Waite" initials="D." surname="Waite"/>
            <date month="September" year="2023"/>
            <abstract>
              <t>This document describes a mechanism for sender-constraining OAuth 2.0 tokens via a proof-of-possession mechanism on the application level. This mechanism allows for the detection of replay attacks with access and refresh tokens.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9449"/>
          <seriesInfo name="DOI" value="10.17487/RFC9449"/>
        </reference>
        <reference anchor="RFC9421">
          <front>
            <title>HTTP Message Signatures</title>
            <author fullname="A. Backman" initials="A." role="editor" surname="Backman"/>
            <author fullname="J. Richer" initials="J." role="editor" surname="Richer"/>
            <author fullname="M. Sporny" initials="M." surname="Sporny"/>
            <date month="February" year="2024"/>
            <abstract>
              <t>This document describes a mechanism for creating, encoding, and verifying digital signatures or message authentication codes over components of an HTTP message. This mechanism supports use cases where the full HTTP message may not be known to the signer and where the message may be transformed (e.g., by intermediaries) before reaching the verifier. This document also describes a means for requesting that a signature be applied to a subsequent HTTP message in an ongoing HTTP exchange.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9421"/>
          <seriesInfo name="DOI" value="10.17487/RFC9421"/>
        </reference>
        <reference anchor="RFC9635">
          <front>
            <title>Grant Negotiation and Authorization Protocol (GNAP)</title>
            <author fullname="J. Richer" initials="J." role="editor" surname="Richer"/>
            <author fullname="F. Imbault" initials="F." surname="Imbault"/>
            <date month="October" year="2024"/>
            <abstract>
              <t>The Grant Negotiation and Authorization Protocol (GNAP) defines a mechanism for delegating authorization to a piece of software and conveying the results and artifacts of that delegation to the software. This delegation can include access to a set of APIs as well as subject information passed directly to the software.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9635"/>
          <seriesInfo name="DOI" value="10.17487/RFC9635"/>
        </reference>
        <reference anchor="RFC9958">
          <front>
            <title>Post-Quantum Cryptography for Engineers</title>
            <author fullname="A. Banerjee" initials="A." surname="Banerjee"/>
            <author fullname="T. Reddy.K" initials="T." surname="Reddy.K"/>
            <author fullname="D. Schoinianakis" initials="D." surname="Schoinianakis"/>
            <author fullname="T. Hollebeek" initials="T." surname="Hollebeek"/>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <date month="June" year="2026"/>
            <abstract>
              <t>The advent of a cryptographically relevant quantum computer (CRQC) would render state-of-the-art, traditional public key algorithms deployed today obsolete, as the mathematical assumptions underpinning their security would no longer hold. To address this, protocols and infrastructure must transition to post-quantum algorithms, which are designed to resist both traditional and quantum attacks. This document explains why engineers need to be aware of and understand post-quantum cryptography (PQC), and it details the impact of CRQCs on existing systems and the challenges involved in transitioning to post-quantum algorithms. Unlike previous cryptographic updates, this shift may require significant protocol redesign due to the unique properties of post-quantum algorithms.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9958"/>
          <seriesInfo name="DOI" value="10.17487/RFC9958"/>
        </reference>
        <reference anchor="I-D.ietf-httpapi-ratelimit-headers">
          <front>
            <title>RateLimit header fields for HTTP</title>
            <author fullname="Roberto Polli" initials="R." surname="Polli">
              <organization>Team Digitale, Italian Government</organization>
            </author>
            <author fullname="Alex Martínez Ruiz" initials="A. M." surname="Ruiz">
              <organization>Red Hat</organization>
            </author>
            <author fullname="Darrel Miller" initials="D." surname="Miller">
              <organization>Microsoft</organization>
            </author>
            <date day="20" month="November" year="2026"/>
            <abstract>
              <t>   This document defines the RateLimit-Policy and RateLimit HTTP header
   fields for servers to advertise their quota policies and the current
   service limits, thereby allowing clients to shape their requests to
   avoid exceeding server-imposed limits.  It also defines problem types
   that servers can use to inform clients about quota-related
   conditions.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-httpapi-ratelimit-headers-12"/>
        </reference>
      </references>
    </references>
  </back>
  

</rfc>
