Repository navigation
v3.7.0
Feature + supply-chain release: audit the credential registry and automate issuance from the CLI, verify multi-key did:web issuers, deprecate OpenBadges 1.0 — and drop pycryptodome + python-ecdsa for a single, CVE-free crypto backend.
Added
feat(publish):openbadges-publish -V 3 --list [-b badge]tabulates every issued credential (jti, recipient, issue date, state) and--status <jti|email>prints one credential's full record including its revocation/suspension date and reason — closing the credential lifecycle from the CLI (issue → revoke → audit). Both are read-only and need no output directory. (#157)feat(cli):--jsonmachine-readable output foropenbadges-signer,openbadges-publishandopenbadges-keygenerator(the verifier already had it), under one documented exit-code contract —0success,2partial,1any error (as{"error": …}) — so issuance can be automated without scraping human text. (#166)feat(ob3): JWT-VC verification now honours the token'skidheader for a multi-key did:web issuer, selecting the exactverificationMethodit names (key rotation, or one key per badge) and failing closed on a kid that points at a different DID or a method absent from the document. (#163)
Changed
feat(ob1): OpenBadges 1.0 is deprecated (removal scheduled for the grouped 4.0.0 release). The legacy import surface — theopenbadgeslib.ob1package, the top-levelbadge/signer/verifiershims, and the unprefixed re-exports — now emits aDeprecationWarning, and the-V 1CLI paths print a notice. A bareimport openbadgeslibstays silent, and OpenBadges 2.0 is not affected — it remains fully supported. (#159)refactor(cli): droppedopenbadges-keygenerator's decorative-V/--ob-versionflag (key material never depended on the OB version — the algorithm comes from the badge'skey_type), a deadif args.badgeguard in the signer, and the redundanttests/runtests.shwrapper. (#156)
Security
security(deps):keys.py(and the OB1 key-loading path) are ported tocryptography, andpycryptodomeandpython-ecdsaare dropped as dependencies. They only ever generated and parsed key material here — signing always went through PyJWT +cryptography, already a hard dependency. This removes python-ecdsa's permanent pip-audit flag (CVE-2024-23342 "Minerva", wontfix upstream), moves ECC key generation onto constant-time code, and shrinks the install to a single crypto backend. PEM output is byte-compatible (PKCS#1 / SEC1 private keys, SubjectPublicKeyInfo public keys), so existing key files round-trip.key_to_pemstill accepts a live pycryptodome/python-ecdsa object via a soft import. (#167)
Verified: the full local gate — flake8, mypy --strict, and the complete suite (902 tests, [ldp] extra) with pycryptodome and python-ecdsa uninstalled to prove the port stands alone — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish.
Full history: Changelog.txt