Skip to content

additional_signature_components: how body components apply to bodyless polls is unstated #232

Open

Description

@joshuagay

draft-hardt-oauth-aauth-protocol.md at 28e8258:

  • L2133 (Resource Metadata): "Array of HTTP message component identifiers ([@!RFC9421]) that agents MUST include in the Signature-Input covered components when signing requests to this resource"
  • L2211 (Covered Components): "On a request carrying a body to a PS or AS endpoint, or to any revocation endpoint (#token-revocation), the signature MUST additionally cover:"
  • L2529 (Polling with GET): "After receiving a 202, the agent switches to GET for all subsequent requests to the Location URL and does not resend the original request body."

L2133 is explicit that the declared components apply to every request to the resource, whereas L2211 limits the draft's own body components to requests carrying a body. A resource that lists content-digest and content-type to protect a body-bearing endpoint therefore also requires them on its polls, which are bodyless GET requests (L659, L2529) with no such fields. The draft does not say whether an agent is expected to produce them anyway (for example, a Content-Digest of an empty body) or whether the requirement does not reach bodyless requests.

Ask: Say how body components named in additional_signature_components apply to bodyless requests such as polls, for example only to requests that carry a body, or through a per-endpoint declaration.

Resource metadata:  "additional_signature_components": ["content-digest", "content-type"]
Agent poll:         GET /pending/p1      (no body, so no Content-Digest or Content-Type field)
To be covered:      @method, @authority, @path, signature-key, content-digest, content-type

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions