Skip to content

Improve error logging for x5c#141

Open
giovanni-riela wants to merge 10 commits into
mainfrom
feature/WLEO-1115-x5c-log
Open

Improve error logging for x5c#141
giovanni-riela wants to merge 10 commits into
mainfrom
feature/WLEO-1115-x5c-log

Conversation

@giovanni-riela
Copy link
Copy Markdown
Collaborator

@giovanni-riela giovanni-riela commented May 7, 2026

Motivation and Context

This PR enhances the diagnostic capabilities of the conformance test suite by improving logging during the wallet attestation and metadata generation processes, with a specific focus on x5c certificate
loading and signing. Additionally, it addresses a limitation in the V1.0 presentation flow where Wallet Attestation was not being correctly evaluated during DCQL-based credential selection. By treating
Wallet Attestation as a valid credential during validation and refining DCQL failure reporting, this update ensures more accurate test results and easier troubleshooting for federation-based flows.

JIRA Ticket: WLEO-1115

@giovanni-riela giovanni-riela requested a review from a team as a code owner May 7, 2026 08:24
@giovanni-riela giovanni-riela requested review from manuraf and silvicir May 7, 2026 08:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves diagnostics around Wallet Attestation generation/signing (especially x5c handling) by threading tagged loggers through attestation-related functions, and it updates DCQL/VP-token logic to account for Wallet Attestation during V1.0 flows while refining DCQL failure reporting.

Changes:

  • Add/propagate tagged loggers through wallet attestation loading and wallet-provider entity configuration signing.
  • Extend credential/DCQL parsing to recognize Wallet Attestation credentials and include Wallet Attestation in DCQL validation inputs for V1.0 VP-token building.
  • Improve DCQL failure-cause formatting to reduce noise and provide clearer per-stage failure details.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/unit/wallet-attestation.unit.spec.ts Pass a quiet tagged logger into loadAttestation calls.
src/types/credential.ts Extend CredentialWithKey.typ to include oauth-client-attestation+jwt.
src/step/presentation/authorization-request-step.ts Pass walletAttestation into buildVpToken.
src/step/issuance/authorize-step.ts Pass walletAttestation into buildVpToken (currently via cast).
src/servers/wp-server.ts Provide a tagged logger when building WP entity configuration.
src/orchestrator/wallet-presentation-orchestrator-flow.ts Pass a tagged logger into loadAttestation.
src/orchestrator/wallet-issuance-orchestrator-flow.ts Pass a tagged logger into loadAttestation.
src/logic/vpToken.ts Add WA injection into DCQL credential list for V1.0 and introduce WA parsing helper.
src/logic/dcql.ts Add WA parsing branch and refine DCQL failure reporting.
src/functions/load-attestation.ts Add logger parameters and emit debug logs during signing/attestation creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/logic/vpToken.ts
Comment thread src/logic/vpToken.ts Outdated
Comment on lines +183 to +187
return {
claims: claims as DcqlSdJwtVcCredential["claims"],
credential_format: "dc+sd-jwt",
cryptographic_holder_binding: true,
vct: "urn:eudi:pid:it:1",
Comment thread src/logic/vpToken.ts Outdated
Comment thread src/step/issuance/authorize-step.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants