Skip to content

v3.5.1

Choose a tag to compare

@luisgf luisgf released this 07 Jul 21:24
· 296 commits to master since this release

Maintenance release: a round of correctness and UX fixes across OB3, OB2 and the CLI, plus supply-chain hardening.

Fixed

  • fix(ob3): a naive datetime passed as issuance/expiration is now assumed UTC (matching the status registry), so validFrom/validUntil no longer shift by the host's local offset and stay consistent with the nbf/exp JWT claims.
  • fix(ob3): the JWT verifier cross-checks the jti claim against the credential id (OB3 §8.2) — a validly signed token whose jti disagrees with, or omits, the id is rejected.
  • fix(ob3): _b58btc_decode bounds its input length (128 chars) before the O(n²) base58 decode, so a hostile did:key/publicKeyMultibase in a fetched document cannot burn CPU.
  • fix(ob2): an evidence array is preserved instead of silently dropped when parsing an Assertion (a single value still collapses to its IRI).
  • fix(cli): -M/--mail-badge now prints a clear notice on the default OB3 path instead of being a silent no-op; the stale openbadges-keygenerator -t ED25519 hint is corrected to the real key_type = ED25519 config; and the OB1 mail path reads its [smtp] config inside the try, so a missing section reports cleanly instead of a traceback.
  • fix(publish): openbadges-publish -V 3 no longer aborts mid-loop on a badge with an unreadable key/corrupt registry — it skips it with a notice (like the did.json path), regenerates the rest, and exits non-zero with a summary, so an urgent revocation is not masked by an unrelated badge.

Changed

  • refactor(keygen): openbadges-keygenerator uses enable_debug_logging instead of the legacy Logger (removed from logs.py), so key generation no longer requires the [paths]/[logs] config sections just to emit console lines.
  • ci: supply-chain hardening — Dependabot (pip + actions), a weekly pip-audit, least-privilege GITHUB_TOKEN permissions, and the PyPI publish migrated to Trusted Publishing (OIDC) — this is the first release published without a long-lived API token.

Verified: the full local gate — flake8, mypy and the complete suite (838 tests, [ldp] and [eudi] extras installed) — plus the CI matrix on Python 3.10–3.14, which gated the publish.

Full history: Changelog.txt