Repository navigation
docs(security): designated-task payload-envelope response signing carve-out (#4703) - #4721
Merged
Merged
Conversation
…ve-out (#4703) Resolves the internal inconsistency between security.mdx's "MUST NOT sign synchronous response bodies under any existing adcp_use value" (#3742) and the Brand Protocol's normative use of adcp_use: "response-signing" for verify_brand_claim (#4540, #4602). The brand-protocol primitive is JWS payload envelope inside the response body, distinct from RFC 9421 §2.2.9 transport response signing. The two are different primitives — #3742's MUST NOT was about transport-level signing; the brand-protocol's payload-envelope JWS is a different signing surface entirely. Splits security.mdx callout into "No general-purpose RFC 9421 response-signing profile" (transport MUST NOT) and "Designated-task payload-envelope response signing" (closed list of tasks — currently verify_brand_claim + verify_brand_claims — that sign their response payload as JWS envelope). Reserves adcp_use: "response-signing" at the JWK layer for the payload-envelope primitive; future major versions scoping RFC 9421 transport response signing MUST use a distinct adcp_use value. Updates security-model.mdx "What gets signed" enum from four signing systems to five. Adds back-links from brand-protocol pages, a non-repudiation disclaimer on the trust-model section, and a response-body-middleware caveat on the signing-setup section. Closes #4703 with a different shape than asked (the names aren't unclaimed — verify_brand_claim already uses them legitimately for a different primitive than the SDK shipped). Recommends closing #4704 as out-of-scope (transport-layer fixtures encode a primitive the spec doesn't authorize; payload-envelope vectors are a separate narrower scope). Three operational hardenings on the brand-protocol payload-envelope primitive are filed as 3.2 follow-ups: replay protection (#4716), per-brand JWK uniqueness (#4717), and tenant binding (#4718). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves the internal spec inconsistency between
security.mdx's blanket "Sellers MUST NOT sign synchronous response bodies under any existingadcp_usevalue" (introduced in #3742) and the Brand Protocol's normative use ofadcp_use: "response-signing"forverify_brand_claim/verify_brand_claims(introduced in #4540, built out in #4602).The Brand Protocol's response signing is a JWS payload envelope carried inside the response body — a distinct primitive from RFC 9421 §2.2.9 transport response signing. #3742's MUST NOT was about transport-level signing; the brand-protocol's payload-envelope JWS is a different signing surface entirely. The spec text didn't draw that distinction, which read as forbidding the brand-protocol's existing pattern and gave SDKs reading the rule no help in seeing that RFC 9421 transport response signing remains undefined.
What changes
docs/building/by-layer/L1/security.mdx— splits the line-827 callout into "No general-purpose RFC 9421 response-signing profile" (transport-level MUST NOT, with<a id="designated-task-response-signing" />anchor) and "Designated-task payload-envelope response signing" (closed list — currentlyverify_brand_claim+verify_brand_claims— with admission criterion). Reservesadcp_use: "response-signing"at the JWK layer for the payload-envelope primitive; keys with this purpose MUST NOT be used to produce RFC 9421 §2.2.9 transport signatures. Future major versions scoping transport response signing MUST use a distinctadcp_usevalue. Updates the TMP cross-reference at line 1511 from four signing systems to five.docs/building/concepts/security-model.mdx— updates the "What gets signed" enum from four to five signing systems; tightens "synchronous responses NOT signed at the body level" → "NOT signed at the transport layer" with the designated-task carve-out; fixes an internal contradiction in the "Cases that look like response signing but aren't" subsection.docs/reference/known-limitations.mdx— reframes the limitation entry to name RFC 9421 §2.2.9 as the specifically-undefined surface and acknowledge the payload-envelope exception in the title line.docs/brand-protocol/tasks/verify_brand_claim.mdxanddocs/brand-protocol/building-a-brand-agent.mdx— back-link to the new designated-task framing; add a non-repudiation disclaimer on the trust-model section; add a response-body-middleware caveat on the signing-setup section warning that JSON re-serialization breaks payload-envelope verification.Issue dispositions
adcp/response-signing/v1and addresponse-signingto theadcp_useenum defensively. The actual situation is more complex —adcp_use: "response-signing"is already in normative use by the brand-protocol for a different primitive than the SDK shipped. This PR surfaces that primitive, closes the list, and declares SDK general-purpose RFC 9421 §2.2.9 helpers non-conformant.3.2 follow-ups
Three operational hardenings on the brand-protocol payload-envelope primitive are out of scope for this consistency PR and filed separately, all on the 3.2.0 milestone:
iat+nonce/request-binding, or normative freshness disclaimer).brand_domain).The
verify_brand_claimtrust-model section carries an interim disclaimer pointing at these issues; until they land, verifiers SHOULD treat captured signed responses as freshness-unbound.Review trail
adcp_useambiguity (addressed with the reservation clause).adcp_usescope clause, non-repudiation disclaimer, CDN middleware caveat) addressed in this PR.Test plan
Check for Broken Linksconfirms the new#designated-task-response-signinganchor resolves from both the security-model in-page reference and the two brand-protocol back-links.changeset-checkfinds.changeset/4703-response-signing-internal-consistency.md.🤖 Generated with Claude Code