Skip to content

Should request signing be done per requested credential? #71

Open

Description

@awoie

Brought up by @leecam and action item from the pre-GDC F2F (#16 (comment)).

Today reader_auth is a single COSE_Sign over the whole RequestPayload. A request can span credentials from different trust frameworks, and authorization is evaluated per credential (#50). Should we support signing per CredentialQuery instead of, or in addition to, one signature over the full request? Multiple signatures over the full request may already be enough.

Related: #26, #50, #51/#65.

Activity

  1. andrewhughes3000 commented on Oct 26, 2026

    @andrewhughes3000
    Member

    Discussion on WG:

    • This would add complexity (in UI/UX and protocol)
    • More discussion/testing needed
  2. jogu commented on Nov 9, 2026

    @jogu
    Contributor

    Discussed on 9th Nov call:

    The person making the request may not be the ultimate verifier. e.g. merchant requested age and payment at the same time, and payment credential will just be forwarded to someone else - auth to request that may be different per credential, so you'd have to sign the request twice. Google's phone number verification works like this.

    Existing protocols allow you to sign the whole request multiple times, but really you want just the relevant credential to be signed. 18013-5 supports both, would be nice to have just one as that's simpler.

    Does create UI & other complications.

    Could be simpler if we make this explicitly have 'on behalf of' semantics? So the entity actually signing the request still (optionally) signs the whole request, and parts of the request can be signed by other people. e.g. signing some of the credential requests individually. Mechanism could be similar to the partial encryption mechanism - additional signatures only necessary where different signatures are actually needed.

    Question: Do we need to support having a signature over more than one credential request but not the whole request? Please do share any use cases.

    @martijnharing offered to make a technical proposal.

    Seemed to be consensus for the above on today's call.

  3. c2bo commented on Nov 9, 2026

    @c2bo
    Member

    Depends to some degree also on the outcome of #50 - if we separate identification and authorization, then the way we design those separate signatures for a request can be split:

    • Identification would always sign the whole request
    • Separate signed artifacts can be embedded (and optionally bound) for the overall request / parts that provide extra information and/or authorization
  4. cyberphone commented on Nov 11, 2026

    @cyberphone

    I would not completely ignore this W3C TPAC presentation:
    https://docs.google.com/presentation/d/1_tizY_xn_92NKSmojJEmj-BMMV5WRheKGx78fq8U9LI/edit?slide=id.p11

    The author suggests deprecating the signed request altogether. I believe a compromise is possible: make request signatures optional, while making credentials that explicitly requires a request signature, be non-selectable if no signature is present.

    I don't see why over-18 requests would require a signed request, unless the solution in some way is leaking PII. Yeah, pr0n is the global use-case.

    For payment authorizations, request signatures represent a design error. Merchant are authenticated by the Payment Network. See point #‍​​ 4 in:
    eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework#774

  5. c2bo commented on Nov 11, 2026

    @c2bo
    Member

    I don't understand that presentation by Manu as deprecating signed requests, but using web-pki as a root of trust (instead of registering with Platform Providers).

    Generally speaking IMHO: Signing a request is important to prevent request manipulation on the transport layer (especially in an online context and with DC API), how we establish trust is a completely different story.

  6. cyberphone commented on Nov 11, 2026

    @cyberphone

    I don't understand that presentation by Manu as deprecating signed requests, but using web-pki as a root of trust (instead of registering with Platform Providers).

    That was the intention at least. He doesn't propose using the Web PKI for signing requests.

    Generally speaking IMHO: Signing a request is important to prevent request manipulation on the transport layer (especially in an online context and with DC API), how we establish trust is a completely different story.

    If HTTPS is not sufficient for authenticating the RP (verifier in OpenID lingo), we have a problem.
    If the signed response corresponds to the request all should (IMHO) be good.

    How about the compromise I suggested? Eat the cake and still have it :)

  7. cyberphone commented on Nov 11, 2026

    @cyberphone

    Correction: returning a hash of the request in the signed response won't work since JSON doesn't come with deterministic encoding. I'm very happy having dropped JSON altogether.

  8. c2bo commented on Nov 11, 2026

    @c2bo
    Member

    If HTTPS is not sufficient for authenticating the RP (verifier in OpenID lingo), we have a problem. If the signed response corresponds to the request all should (IMHO) be good.

    In the context of DC API, we are talking about the browser becoming intermediary of that request, so TLS is broken long before it reaches the wallet that possibly resides even on a different device. That means any browser extension could manipulate the DC API call itself.

    In the context of proximity use-cases we also need to clearly protect against man-in-the-middle attacks and wouldn't have HTTPS.

  9. cyberphone commented on Nov 11, 2026

    @cyberphone

    If HTTPS is not sufficient for authenticating the RP (verifier in OpenID lingo), we have a problem. If the signed response corresponds to the request all should (IMHO) be good.

    In the context of DC API, we are talking about the browser becoming intermediary of that request, so TLS is broken long before it reaches the wallet that possibly resides even on a different device. That means any browser extension could manipulate the DC API call itself.

    Understood. Se my earlier remark regarding JSON.

    In the context of proximity use-cases we also need to clearly protect against man-in-the-middle attacks and wouldn't have HTTPS.

    This is a very interesting point which I have tried to change to no avail:
    http-ble-nfc li
    Making online and proximity use the same protocols would be cool. Payments would be the driver use-case.

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