Skip to content

🐛 (dmk) [NO-ISSUE]: Improve SecureChannel errors management and typing#883

Merged
paoun-ledger merged 1 commit intodevelopfrom
feat/no-issue-secure-channel-device-errors
Jun 9, 2025
Merged

🐛 (dmk) [NO-ISSUE]: Improve SecureChannel errors management and typing#883
paoun-ledger merged 1 commit intodevelopfrom
feat/no-issue-secure-channel-device-errors

Conversation

@paoun-ledger
Copy link
Contributor

📝 Description

Bug https://ledgerhq.atlassian.net/browse/LIVE-19430

The main issue is that device response status was not verified at all in bulk APDUs sent through secure channels.
It means some errors such as OutOfMemory are not returned properly.
A small refactor is needed to add some typing to secure channel returned errors, and expose it in device actions.

  • Error are now properly typed
  • Bulk APDUs device status is now verified
  • Device actions now expose SecureChannel device errors types

❓ Context

  • JIRA or GitHub link:
  • Feature:

✅ Checklist

Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.

  • Covered by automatic tests
  • Changeset is provided
  • Documentation is up-to-date
  • Impact of the changes:
    • list of the changes

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.

@paoun-ledger paoun-ledger requested a review from a team as a code owner June 5, 2025 16:50
@vercel
Copy link

vercel bot commented Jun 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
device-sdk-ts-sample ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2025 8:55am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
doc-device-management-kit ⬜️ Ignored (Inspect) Visit Preview Jun 6, 2025 8:55am

@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2025

Messages
Danger: All checks passed successfully! 🎉

Generated by 🚫 dangerJS against b164403

* Error are now properly typed
* Bulk APDUs device status is now verified
* Device actions now expose SecureChannel device errors types
Copy link
Contributor

@valpinkman valpinkman left a comment

Choose a reason for hiding this comment

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

Great improvements 👍

@paoun-ledger paoun-ledger added this pull request to the merge queue Jun 9, 2025
Merged via the queue into develop with commit 72bae27 Jun 9, 2025
16 checks passed
@paoun-ledger paoun-ledger deleted the feat/no-issue-secure-channel-device-errors branch June 9, 2025 16:00
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