pypi openbadgeslib 3.8.0
v3.8.0

latest releases: 4.6.5, 4.6.4, 4.6.3...
4 months ago

Security release: status lists gain replay protection and opt-in proof verification — a stale or forged revocation list can no longer silently resurrect a revoked badge.

Security

  • security(ob3): two documented status-list trust gaps, closed as one coherent change. (#164)

    • Replay protection (freshness). A per-badge status_validity_days makes openbadges-publish -V 3 stamp published lists with validUntil = now + N days, and the reader now enforces the list's validFrom/validUntil window. A lapsed revocation.jwt — a replayed old copy, or an issuer that stopped republishing — is rejected instead of silently un-revoking a credential. A list with no validUntil never expires (backward compatible).
    • Proof + issuer binding (opt-in). check_credential_status(..., verify_list=True) — and OB3Verifier.check_status(..., verify_list=True), which reuses the badge's own key — verifies the status list credential's own JWT-VC signature and requires its issuer to equal the badge's issuer, so a compromised status host cannot serve a validly-shaped list that silently un-revokes. A did:web/did:key issuer is resolved otherwise; list_pubkey_pem pins the key explicitly.

    Both are opt-in / absent by default — a status check stays a single offline-friendly fetch, so there is no behaviour break.

Not included (deferred): the --check-live publish flag — a separate "cheaper companion" from the same analysis (download the published did.json + status lists and byte-compare against what was just regenerated). Tracked on #164.

Verified: the full local gate — flake8, mypy --strict, and the complete suite (917 tests, [ldp] extra) — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish.

Full history: Changelog.txt

Don't miss a new openbadgeslib release

NewReleases is sending notifications on new releases.