Skip to content

Version 1.5.0 - #38

Merged
peppelinux merged 4 commits into
IdentityPython:mainfrom
peppelinux:dev
Dec 1, 2026
Merged

peppelinux merged 4 commits into
IdentityPython:mainfrom
peppelinux:dev

Conversation

@peppelinux

Copy link
Copy Markdown
Member

Breaking changes in version 1.5.0

Stricter and more standards-compliant mDOC verification.

Certificate chain validation is now required by default, along with new mandatory checks for MSO validityInfo and docType matching.

The documentation and examples have been updated to reflect these changes, and new exceptions have been introduced for improved error handling and clarity.

Verification and Security Changes:

  • Certificate chain validation is now required by default in MdocCbor.verify() and related methods. Callers must provide trusted root certificates unless they explicitly opt out by passing allow_untrusted_issuer=True. This change is documented as a breaking change and is reflected throughout the documentation and examples. [1] [2] [3]
  • Additional checks are now always performed after signature verification: the MSO validityInfo time window (with optional clock skew and DS certificate time check) and that the envelope docType matches the signed MSO docType. [1] [2] [3]

API and Exception Updates:

  • The verify() API signature is updated to include allow_untrusted_issuer, now, and clock_skew_seconds parameters, and the documentation now details new exceptions: TrustedRootRequired, MsoValidityError, and DocTypeMismatchError. [1] [2]
  • New exceptions are defined in pymdoccbor/exceptions.py for more granular error reporting when verification fails due to missing roots, expired MSO, or docType mismatches.

Documentation and Example Updates:

  • All documentation and code examples have been revised to show the new required parameters, proper usage of trust anchors, and explicit opt-out for untrusted issuers. Security considerations and migration notes are included to guide users through the breaking changes. [1] [2] [3] [4] [5] [6] [7] [8]

Workflow and Metadata Updates:

  • GitHub Actions workflows (code-quality.yml, dependency-security.yml, python-app.yml) now explicitly set minimal permissions for improved security. [1] [2] [3]
  • Version bumped to 1.5.0 in __init__.py.

These changes collectively enforce best practices for mDOC verification, improve standards compliance, and provide clearer error handling for developers integrating the library.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 90.38462% with 15 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@42bb096). Learn more about missing BASE report.
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pymdoccbor/mso/verifier.py 83.33% 13 Missing ⚠️
pymdoccbor/mdoc/verifier.py 91.30% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage        ?   91.01%           
=======================================
  Files           ?       27           
  Lines           ?     1302           
  Branches        ?        0           
=======================================
  Hits            ?     1185           
  Misses          ?      117           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peppelinux
peppelinux merged commit a162596 into IdentityPython:main Dec 1, 2026
13 checks passed
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