Fixes in 10.x that change behavior
A few fixes released within 10.x close a security or conformance gap and thereby change what EUDIPLO accepts or issues. Each section below says what changed and what to do; skip the sections that do not apply to you. The release notes say which release carries each fix.
Before you upgrade
- Check that
meta.vct_valuesandmeta.doctype_valueof your presentation configurations name the exactvctand docType of the credentials you accept: credentials of another type are now rejected (Presentations). - If you use the demo
pidpresentation configuration from before this fix, update itsvct_values(Presentations). - If you verify credentials, check that the CA certificates of their issuers' chains, and of their status list signers' chains, carry
basicConstraintscATRUE, and that no certificate marks an extension critical that EUDIPLO does not process, such asnameConstraints: such credentials are now rejected (Presentations: certificate paths). This includes credentials you issue yourself under a certificate from your own PKI. - If you accept wallet or key attestations in the TS3 1.5 format (EUDI Wallet), check that every wallet provider serves the status lists their
client_statusandkey_storage_statusname and signs them as its other status lists: they are now checked (Wallet and key attestations). - If credential configurations set
revokeWithWalletUnit, expect their credentials to be revoked also when the wallet attestation (WIA) presented at the token endpoint is revoked (Revocation with the wallet unit). - If credential configurations set
revokeWithWalletUnitand your wallets present TS3 1.5 attestations, expect shorter credential lifetimes and refused requests for attestations whose status maintenance period has ended (Credential expiry). - Follow the upgrade procedure.
Operators
Presentations: credentials must be of a requested type
Changed: a presented SD-JWT VC whose vct is not one of the credential query's meta.vct_values, or an mDOC whose docType is not its meta.doctype_value, fails with credential_type_mismatch, HTTP 400 to the wallet and session failed (OpenID4VP 1.0, Section 8.6). This applies to OpenID4VP flows, also over the Digital Credentials API, and to ISO 18013-7 flows. The values are compared as exact strings; in OpenID4VP flows <TENANT_URL> is resolved first. An SD-JWT VC whose type only extends one of vct_values is rejected too, because EUDIPLO does not resolve type metadata. Earlier 10.x releases accepted a credential of any type once its signature, issuer and claims checked out, so a wallet could answer a PID query with another credential of a trusted issuer.
The demo configuration's pid presentation now requests urn:eudi:pid:de:1, the vct of the demo PID. It requested <TENANT_URL>/credentials-metadata/vct/pid, which no demo credential carries.
Do: check that vct_values and doctype_value of every presentation configuration list the exact types your issuers put in their credentials, including every type that extends one you accept, for example ["urn:eudi:pid:1", "urn:eudi:pid:de:1"]. If presentations fail with credential_type_mismatch, compare the message, which names the accepted types, with the vct or docType of the credentials wallets hold. If you imported the demo configuration or created a project with eudiplo init before this fix was released, your stored pid presentation configuration still requests <TENANT_URL>/credentials-metadata/vct/pid and rejects the demo PID: set its vct_values to ["urn:eudi:pid:de:1"], or import the current demo file again. Details: Credential type.
Presentations: certificate paths must meet RFC 5280 constraints
Changed: a presented SD-JWT VC or mDOC is rejected with no_trust_chain_to_root, HTTP 400 to the wallet and session failed, when the certificate path from its signing certificate up to the certificate the trust list lists breaks an RFC 5280 constraint: a certificate that issues the one below it must be a CA (basicConstraints cA TRUE, keyCertSign, pathLenConstraint), and no certificate may mark an extension critical that EUDIPLO does not process, such as nameConstraints. This includes the certificate the trust list lists, when it issued the one below it, and version 1 or 2 CA certificates, which carry no basicConstraints. Wallets get HTTP 400 for such credentials. The same applies to the path of its status list or identifier list: an SD-JWT VC then fails with Status List JWT verification failed, an mDOC with no_trust_chain_to_root, also with statusCheckMode: best_effort. Without a trust list (SKIP_TRUST_AUTHORITY=true), an mDOC's presented chain is checked in the same way. Earlier 10.x releases checked only signatures, validity periods and the match with the trust list: any end-entity key of a listed provider could issue further signing certificates, and a critical extension with a restriction EUDIPLO does not enforce was ignored. The certificates of ISO/IEC 18013-5 Annex B and those EUDIPLO creates for its key chains meet the constraints. Wallet and key attestations are unchanged.
Do: nothing for issuers whose CA certificates carry basicConstraints cA TRUE and mark only the extensions listed in Certificate path constraints critical. If presentations fail with no_trust_chain_to_root and the server log says Certificate path constraint: ..., ask the issuer, or for a status list its signer, for a certificate chain that meets the constraints; the message names the certificate and the constraint. If you issue under a key chain imported from your own PKI, check its certificates the same way. Details: Certificate path constraints.
Wallet and key attestations: TS3 1.5 status claims are checked
Changed: EUDIPLO reads the status list entry of a wallet attestation from client_status.status and of a key attestation from key_storage_status.status, the claims of TS3 (EUDI Wallet Unit Attestations) 1.5 and later, in addition to the top-level status claim of OpenID4VCI 1.0 and TS3 1.4.1. Earlier 10.x releases ignored the TS3 claims, so it accepted attestations of revoked wallet instances and key storages and never fetched their lists. With walletAttestationStatusCheckMode strict or best_effort (the default), such an attestation is now rejected as one with a top-level status is: when its entry is revoked or suspended, when its list cannot be read, is not the named list or is not signed by the provider, and when the claim is malformed (client_status or key_storage_status not a JSON object, a malformed status in it, or an exp in it that is not a non-negative number). strict also rejects it when the list cannot be fetched. An attestation that carries both claims has both entries checked. The PAR and token endpoints (including the refresh grant) answer as for a top-level status claim, the credential endpoint invalid_proof. With revokeWithWalletUnit, a credential issued for a TS3 1.5 key attestation now follows its key_storage_status entry (Which claim names the status); credentials issued by 10.x keep following the entry recorded then.
Do: before you upgrade, check with your wallet providers that the lists their TS3 attestations name are served and signed as their other status lists: under the revocation certificate your wallet-provider trust lists name for the provider, or its attestation certificate if they name none. To accept attestations while a list is unreachable, keep best_effort; disabled skips the check.
Revocation with the wallet unit: the wallet attestation is followed too
Changed: with revokeWithWalletUnit: true, EUDIPLO records the status list entry of the wallet attestation (client_status.status, else status) that the built-in authorization server accepted at its token endpoint, next to that of the key attestation, with every credential issued with the access token. The background check (WALLET_UNIT_STATUS_CHECK_INTERVAL) revokes the credential when either entry is revoked and sends the same wallet_unit_revoked webhook. Earlier 10.x releases followed the key attestation only, so a revoked wallet instance kept its credentials (TS3 1.5 section 2.4.3). Credentials issued by 10.x keep following only the key attestation recorded then. A database migration adds session.walletInstanceStatus and makes attestationKind part of the primary key of credential_wallet_unit; existing records become key records.
Do: nothing for the configuration. If you turned on revokeWithWalletUnit and your wallets present wallet attestations, make sure the wallet provider's status list for wallet instances is served and signed as its key attestation list is; while it cannot be read, nothing is revoked and the reason is logged. The check matches the provider in the issuance configuration's walletProviderTrustLists: if the built-in authorization server has its own lists, add the wallet providers to the issuance configuration's lists as well.
Credential expiry: bounded by the status maintenance period
Changed: with revokeWithWalletUnit: true, a credential now expires one second before the earlier of client_status.exp (wallet attestation accepted by the built-in authorization server) and key_storage_status.exp (key attestation of the proof), when that is before the expiry lifeTime gives (TS3 1.5 section 2.4.3). An SD-JWT VC without lifeTime then gets an exp. When the period has already ended, the credential endpoint refuses the request with credential_request_denied, deferred requests included; a deferred transaction whose period ends while it is pending is marked failed by POST /api/issuer/deferred/{transactionId}/complete, which then returns it with status failed. Earlier 10.x releases ignored these values, so its credentials could outlive the period in which the wallet provider keeps the wallet unit's status. Sessions and deferred transactions created by earlier 10.x releases carry no maintenance period, so credentials issued from them after the upgrade are not bounded. The expiry of configurations without revokeWithWalletUnit is unchanged; a malformed client_status.exp or key_storage_status.exp rejects the attestation for every configuration (above).
Do: check with your wallet providers that their attestations' maintenance periods are at least as long as your credentials' lifeTime (TS3 1.5 guarantees 31 days), or accept shorter credentials. EUDIPLO does not publish preferred_client_status_period or preferred_key_storage_status_period.
Wallet-facing behavior
Presentations: a credential of another type is refused
Changed: a wallet that answers a credential query with a credential of a type its meta does not name gets HTTP 400: in OpenID4VP flows the Incomplete Presentation error body described in What the wallet or browser receives, in ISO 18013-7 flows {"error": "credential_type_mismatch", "message": "..."}. With a configured redirect, the redirect carries error=invalid_request and the message as error_description.
This includes an SD-JWT VC whose vct only extends a listed one, which OpenID4VP 1.0 Appendix B.3.5 lets a wallet return: EUDIPLO does not follow type inheritance.
Do: wallets that present only credentials whose vct or docType the query lists need no change.