openbadgeslib 4.6.3__tar.gz → 4.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/Changelog.txt +495 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/PKG-INFO +1 -1
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/baking.py +101 -31
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/issue.py +13 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob2/verifier.py +58 -4
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/_canon_guard.py +43 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/_context_validation.py +372 -14
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/_structure_screen.py +5 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/clr.py +20 -5
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/credential.py +121 -34
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/did.py +127 -12
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/eudi.py +65 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/ldp.py +57 -8
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/publish.py +143 -24
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/status.py +49 -9
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/verifier.py +10 -3
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/handler.py +47 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/memory_store.py +14 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/sqlite_store.py +27 -11
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/store.py +37 -13
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_publish.py +44 -14
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_signer.py +116 -23
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/util.py +29 -3
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/PKG-INFO +1 -1
- openbadgeslib-4.6.5/tests/test_baking.py +489 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_issue_credential.py +80 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob2_verifier.py +151 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_credential.py +260 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_did.py +321 -5
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_eudi_sd_jwt.py +153 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp.py +78 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_canon_guard.py +68 -23
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_context_validation.py +1375 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_ecdsa_sd.py +103 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_ecdsa_sd_dos.py +14 -3
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_structure_screen.py +13 -2
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_publish_cli.py +398 -1
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_status.py +267 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_verifier.py +34 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_oid4vci_protocol.py +427 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_oid4vci_store.py +146 -3
- openbadgeslib-4.6.5/tests/test_signer_batch.py +598 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_util.py +194 -4
- openbadgeslib-4.6.3/tests/test_baking.py +0 -192
- openbadgeslib-4.6.3/tests/test_signer_batch.py +0 -252
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/CONTRIBUTING.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/GOVERNANCE.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/LICENSE.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/MANIFEST.in +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/README.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/SECURITY.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/docs/README.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_jsonmodel.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_jws/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_jws/exceptions.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_jws/utils.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_ob1_api.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_python_support.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/_safejson.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/badge_model.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/cli_common.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/config.ini.example +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/confparser.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/errors.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/keys.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/logs.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/mail.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob1/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob1/badge.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob1/signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob1/verifier.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob2/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob2/models.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob2/signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/clr_context_2.0.1.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/credentials-v2.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.1.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.2.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.3.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/ob-v3p0-extensions.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/security-data-integrity-v2.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/contexts/security-multikey-v1.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/status_list.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/ob3/status_registry.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/__init__.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/codes.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/errors.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/formats.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/metadata.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/nonce.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/offer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/oid4vci/reconcile.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_cli.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_init.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_keygenerator.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_status.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/openbadges_verifier.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/py.typed +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib/verify.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/SOURCES.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/dependency_links.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/entry_points.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/requires.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/openbadgeslib.egg-info/top_level.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/pyproject.toml +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/setup.cfg +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/config1.ini +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/Dockerfile.ob3 +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/README.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/conftest.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/docker-compose.yml +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/relax-danubetech-checksums.awk +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conformance/test_official_validators.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/conftest.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/ob_schemas/README.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/ob_schemas/ob_v3p0_achievementcredential_schema.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/ob_schemas/ob_v3p0_profile_schema.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/ob_schemas/refresh.sh +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/README.md +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/credentials-examples-v2.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/doc-hash.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/key-pair.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/proof-config-hash.txt +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/fixtures/vc_di_eddsa/signed-credential.json +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/images/sample1.png +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/images/sample1.svg +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/images/userimage01.svg +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/ldp_helpers.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/logo Python Espan/314/203a.svg" +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/logo Python Espa/303/261a.svg" +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_b64url.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_cli_json.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_cli_smoke.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_confparser.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_docs.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_eddsa.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_errors.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_examples.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_issue.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_jsonmodel.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_jws.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_key_operation.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_keys.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_mail.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob1_badge_io.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob1_deprecation.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob1_signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob1_verifier.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob2_cli.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob2_error_branches.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob2_models.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob2_signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_canon_guard_dataset.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_clr.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_conformance_schema.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_contexts.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_did_doc.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_endorsement.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_eudi_oid4vci.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_eudi_type_metadata.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_eudi_x5c.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_cli.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_errors.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_ldp_sign.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_signer.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_signer_cli_ldp.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_status_list.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_ob3_status_registry.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_oid4vci_config.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_oid4vci_reservations.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_openbadges_cli.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_public_api.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_python_support.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_safejson.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_sign_ecc.pem +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_sign_rsa.pem +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_untrusted_input.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_verifier_cli_coverage.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_verify.py +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_verify_ecc.pem +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/test_verify_rsa.pem +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/withoutxmlheader.svg +0 -0
- {openbadgeslib-4.6.3 → openbadgeslib-4.6.5}/tests/withxmlheader.svg +0 -0
|
@@ -4,6 +4,501 @@ OpenBadgesLib - Changelog
|
|
|
4
4
|
Newest first. Dates are ISO 8601 (YYYY-MM-DD).
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
* v4.6.5 - 2026-11-18
|
|
8
|
+
|
|
9
|
+
- security(ldp): every description of a node the returned credential is
|
|
10
|
+
read from must agree with the one it is read from. RDF has one node per
|
|
11
|
+
id however many JSON objects describe it, and a Data Integrity signature
|
|
12
|
+
covers the node, so a signed member can sit in any of them, while
|
|
13
|
+
`OB3LdpVerifier.verify` reads each member from one fixed object. The
|
|
14
|
+
1EdTech Complete example describes two nodes twice in the credential
|
|
15
|
+
itself (the issuer again as `achievement.creator`, a `criteria` with the
|
|
16
|
+
achievement's id), and a holder can write any node that has an id as two
|
|
17
|
+
entries of the array that holds it. Without touching the signature, the
|
|
18
|
+
holder of such a badge could move the achievement's `description` into
|
|
19
|
+
`criteria` (or the `narrative` of `criteria` onto the achievement), leave
|
|
20
|
+
the issuer's `name`, `url`, `email` and `image` only in `creator`, split
|
|
21
|
+
`credentialSubject` so that `result`, `identifier` and `creditsEarned`
|
|
22
|
+
sat in the entry the model does not read, or exchange two values of one
|
|
23
|
+
member: the returned credential lacked them (an empty description, an
|
|
24
|
+
issuer without name, no results) or showed the other value. Validity,
|
|
25
|
+
status, recipient and issuer verdicts were not affected. Now, for the
|
|
26
|
+
issuer, each `credentialSubject`, its achievement, and the `criteria`,
|
|
27
|
+
`alignment`, `resultDescription`, `result`, `identifier` and `evidence`
|
|
28
|
+
nodes the model reads, every other object with the same id anywhere in
|
|
29
|
+
the document, embedded endorsements included, must carry for each member
|
|
30
|
+
the model reads there either nothing or exactly the same value(s); a
|
|
31
|
+
value that is itself one of those nodes is the same when its id and what
|
|
32
|
+
the model reads of it are. A member the model does not read is free, so
|
|
33
|
+
the Complete example, endorsements of the achievement or of the issuer,
|
|
34
|
+
and the shape this library issues (no `creator`, a `criteria` without
|
|
35
|
+
id) verify as before.
|
|
36
|
+
Compatibility: a credential whose issuer gives such a node two different
|
|
37
|
+
values for a member the model reads, or gives the member only outside
|
|
38
|
+
the object the model reads it from, is refused. That is an `issuer`
|
|
39
|
+
written as a bare IRI, or with fewer of `name`, `url`, `email`, `image`
|
|
40
|
+
and `endorsementJwt` than an `achievement.creator` (or any other
|
|
41
|
+
description) of the same id in the same credential, which is the very
|
|
42
|
+
document a holder gets by cutting a twice-described issuer down; a
|
|
43
|
+
self-issued badge whose subject and issuer objects carry different
|
|
44
|
+
`image` values; and an ecdsa-sd-2023 presentation that reveals a member
|
|
45
|
+
of a twice-described node only at the other pointer
|
|
46
|
+
(`/credentialSubject/achievement/creator/name` without `/issuer/name`).
|
|
47
|
+
The remedy for an issuer is to describe the node where the model reads
|
|
48
|
+
it, and for a holder to reveal the member there; the refusal names the
|
|
49
|
+
node, the member and both places. `OB3LdpSigner` holds what it emits to
|
|
50
|
+
the same rule and raises `ErrorSigningFile` for what 4.6.4 issued and
|
|
51
|
+
verified when the caller gives two of the nodes one id and different
|
|
52
|
+
members: two `Evidence` or two `ResultDescription` entries with the same
|
|
53
|
+
id that differ (or one of which lacks a member the other has), an
|
|
54
|
+
`Evidence` with the id of the achievement or of the issuer, an
|
|
55
|
+
achievement with the issuer's id and another `name`. A self-issued badge
|
|
56
|
+
(the recipient id equal to the issuer id) is issued as before. The
|
|
57
|
+
low-level functions, which check the proof alone, and the JWT-VC path,
|
|
58
|
+
where every byte is signed, are unchanged (#348)
|
|
59
|
+
|
|
60
|
+
- fix(ob3): an `image` given as a string is read as the image's id.
|
|
61
|
+
`"image": "https://..."` is the same JSON-LD statement as
|
|
62
|
+
`"image": {"id": "https://..."}`, but the model read an image only from
|
|
63
|
+
the object, so `Issuer.image_url` and `Achievement.image_url` were None
|
|
64
|
+
for an issuer that wrote the bare IRI, on the JWT-VC and the Data
|
|
65
|
+
Integrity path alike. On the Data Integrity path a holder could cause
|
|
66
|
+
it: context validation takes the two spellings for one, so an image
|
|
67
|
+
signed with its `id` alone (no `type`, no `caption`) could be re-spelled
|
|
68
|
+
as a string under the same proof, and the verified credential lost it;
|
|
69
|
+
so could a typed image whose node is described somewhere else in the
|
|
70
|
+
credential. Nothing is refused that verified before and `to_vc` still
|
|
71
|
+
writes the object. With the string read, the rule of #348 above compares
|
|
72
|
+
an `image` between two descriptions of the issuer or of the achievement
|
|
73
|
+
by the id it names, which is all the model reads of it: an image named
|
|
74
|
+
in one and described (`type`, `caption`) in the other verifies, two
|
|
75
|
+
different images of one node or an image only in the description the
|
|
76
|
+
model does not read are refused (#350)
|
|
77
|
+
|
|
78
|
+
- fix(ob3): a value, the one-entry array of it and the value written twice
|
|
79
|
+
are read as one by the model. In JSON-LD the values of a property are a
|
|
80
|
+
set, so `"criteria": {...}`, `"criteria": [{...}]` and
|
|
81
|
+
`"criteria": [{...}, {...}]` with the same object twice are the same
|
|
82
|
+
statements, but `OpenBadgeCredential.from_vc_document` read most members
|
|
83
|
+
in one shape only. On the Data Integrity path a holder could use it:
|
|
84
|
+
context validation takes a value and its one-entry array for one
|
|
85
|
+
spelling (conforming credentials write `"type": ["Profile"]`), and a
|
|
86
|
+
repeated value changes nothing signed, so with the proof still valid a
|
|
87
|
+
`criteria` or an `image` in an array read as none (`criteria_narrative`
|
|
88
|
+
`''`, `image_url` None), `creditsEarned` / `creditsAvailable` in an
|
|
89
|
+
array as None, a one-entry `resultDescription`, `identifier` or `result`
|
|
90
|
+
written as the bare object as an empty list, a one-entry `tag` written
|
|
91
|
+
as a string as that string, and a string in an array (the credential
|
|
92
|
+
`name`, the issuer's `name`, `url` and `email`, the achievement's
|
|
93
|
+
`description` and `achievementType`, the `narrative` of `criteria`, the
|
|
94
|
+
optional members of an evidence, a result, a result description, an
|
|
95
|
+
alignment or an identifier) as a list where the model declares a `str`.
|
|
96
|
+
On the JWT-VC path, where every byte is signed, an issuer that wrote the
|
|
97
|
+
other spelling got the same. Now a member the model reads as one value
|
|
98
|
+
is read from the value, from its one-entry array, and from an array
|
|
99
|
+
whose entries are all that same value (numbers compared by value, a
|
|
100
|
+
boolean never equal to a number; for an `image`, entries that name one
|
|
101
|
+
id, as objects or bare IRIs); a member it reads as a list is read from
|
|
102
|
+
a single value too. Nothing that verified is refused and no verdict
|
|
103
|
+
changes: `alignment`, `evidence`, `credentialStatus`, `endorsementJwt`
|
|
104
|
+
and `credentialSubject` already read both shapes, and the members that
|
|
105
|
+
refuse an array (`issuer`, `achievement`, `validFrom` / `validUntil`,
|
|
106
|
+
and the required strings: the achievement's `name`, an alignment's
|
|
107
|
+
`targetName` and `targetUrl`, an identifier's `identityHash`,
|
|
108
|
+
`identityType` and `hashed`, a result description's `name` and
|
|
109
|
+
`resultType`) refuse it as before. Not changed: an array of values that
|
|
110
|
+
really differ, which only an issuer can sign, is read as before (no
|
|
111
|
+
criteria, no image, no credits; a list for a string), and where the
|
|
112
|
+
model reads a list (`tag`, `evidence`, `alignment`, `identifier`, ...)
|
|
113
|
+
a holder can still write an entry twice, which then shows twice: a
|
|
114
|
+
scalar or a node with an id as it is, a node without id under a blank
|
|
115
|
+
node label on eddsa-rdfc-2022 (#351)
|
|
116
|
+
|
|
117
|
+
- security(ldp): a blank node label (`_:x`) is refused as the `id` of
|
|
118
|
+
`credentialSubject.achievement` on both Data Integrity suites (OB 3.0
|
|
119
|
+
requires it, and a label added after signing was reported as the
|
|
120
|
+
achievement id). On ecdsa-sd-2023 the returned credential is built
|
|
121
|
+
without the label a subject or a status entry carries, so the holder
|
|
122
|
+
cannot choose the status entry id or a `recipient_id` the model
|
|
123
|
+
reports (#349)
|
|
124
|
+
|
|
125
|
+
* v4.6.4 - 2026-11-18
|
|
126
|
+
|
|
127
|
+
- security(ldp): on CPython 3.11 and 3.12 the JSON-LD to RDF conversion may
|
|
128
|
+
make at most 150,000 duplicate checks (1,000,000 on every other
|
|
129
|
+
interpreter, as before; `MAX_NODE_MAP_PAIRS` is 150,000 on CPython 3.11
|
|
130
|
+
and 3.12), which bounds what the stack-depth cliff that 4.6.3 documented
|
|
131
|
+
as a known limit can cost to about 1.3 s. Those two interpreters allocate the call-stack data in 16 KiB
|
|
132
|
+
chunks, and a tight loop whose calls straddle a chunk boundary pays an
|
|
133
|
+
allocation for each call; pyld's duplicate check for the values of a node
|
|
134
|
+
property (`compare_values`) is such a loop, and where the boundary falls
|
|
135
|
+
depends on how deep the caller's stack is and how deep the document
|
|
136
|
+
nests. At the wrong placement a comparison costs 5.8 to 7.5 microseconds
|
|
137
|
+
instead of 0.3, whatever the shape (flat arrays, values merged across
|
|
138
|
+
arrays, nodes referenced by identifier) and the size (101,000 to 979,000
|
|
139
|
+
comparisons: the same 18 to 24 times), in about 2 % of the caller depths,
|
|
140
|
+
so what a hit costs is the number of comparisons the allowance admits
|
|
141
|
+
times 7 microseconds, and only the allowance can bound it. Under the
|
|
142
|
+
1,000,000 a 29 KB document of 34 nested objects around 1,300 distinct
|
|
143
|
+
ones cost `OB3LdpVerifier.verify` 6.2 s of CPU at the worst of 105
|
|
144
|
+
placements (4 or 5 of them over 1 s; 0.26 to 0.27 s at the others) on
|
|
145
|
+
CPython 3.11.15 and 3.12.13, and a property of 1,400 values 6.6 to 6.9 s.
|
|
146
|
+
Under 150,000 the same document is refused after 0.10 to 0.12 s ("the
|
|
147
|
+
document puts too many values on its node properties", before pyld
|
|
148
|
+
builds the node map), and the widest property that fits (540 distinct
|
|
149
|
+
values, nested 21 to 36 levels deep, 1,120 placements per interpreter)
|
|
150
|
+
costs at most 1.24 s on 3.11 and 1.28 s on 3.12, in 10 placements over 1
|
|
151
|
+
s. CPython 3.10 and 3.13 to 3.15, which have no such outliers, keep the
|
|
152
|
+
1,000,000, and so does every number the other entries of 4.6.3 quote for
|
|
153
|
+
them.
|
|
154
|
+
|
|
155
|
+
- Compatibility, CPython 3.11 and 3.12 only: a Data Integrity document with
|
|
156
|
+
more than 548 distinct values in one property (about 387 in each of two;
|
|
157
|
+
n distinct values cost n(n-1)/2 comparisons, summed over the properties
|
|
158
|
+
of the document and its proof options) that 4.6.3 verified or signed is
|
|
159
|
+
refused or not signed, with the message above, which names the property
|
|
160
|
+
and the node. A credential with 549 to 1,414 tags, alignments or evidence
|
|
161
|
+
entries on one node is the case; a real badge has a handful of values per
|
|
162
|
+
property, a CLR is held to a couple of hundred members by the structure
|
|
163
|
+
limits of 4.6.3, and the same credential verifies on the other
|
|
164
|
+
interpreters. The cap is two constants of `openbadgeslib/ob3/_canon_guard.py`,
|
|
165
|
+
`MAX_NODE_MAP_PAIRS_FULL` and `MAX_NODE_MAP_PAIRS_CHUNKED_STACK`;
|
|
166
|
+
`MAX_NODE_MAP_PAIRS` is the one in force.
|
|
167
|
+
|
|
168
|
+
- fix(ob3): the split advice of `sign_clr_credential` counts the duplicate
|
|
169
|
+
checks too. A CLR that lists 650 achievements and as many associations
|
|
170
|
+
fits the 256 KiB, and the advice ("sign it as several CLRs of at most about
|
|
171
|
+
N achievements") was given from the bytes and the structure alone; on
|
|
172
|
+
CPython 3.11 and 3.12 that many entries are over the node-map allowance
|
|
173
|
+
first (about 550 in one list, 390 in each of two), so the CLR the advice
|
|
174
|
+
described was refused again. It now takes the smaller of the two, and what
|
|
175
|
+
it advises signs.
|
|
176
|
+
|
|
177
|
+
- security(util): `download_file` no longer reads the body of a redirect.
|
|
178
|
+
urllib's redirect handler reads the body of a 301, 302, 303, 307 or 308
|
|
179
|
+
whole before it follows the Location (`fp.read()`, no size), and
|
|
180
|
+
`MAX_DOWNLOAD_SIZE` (5 MiB) was only checked on the response that
|
|
181
|
+
`download_file` returns. Any host a badge names (an OB2 `id`, `badge`,
|
|
182
|
+
issuer or `revocationList` URL, the OB1 `verify.url`, a did:web host, a
|
|
183
|
+
status list) could therefore answer with a redirect whose body the
|
|
184
|
+
verifier buffered in memory, on each of up to 10 hops, bounded by nothing
|
|
185
|
+
but the 60-second budget. A 302 with a 32 MiB body in front of a 12-byte
|
|
186
|
+
document cost 33,554,607 bytes read and a peak of 48 MiB (64 MiB when
|
|
187
|
+
chunked), and the download succeeded; a redirect that announced more body
|
|
188
|
+
than it sent was an `http.client.IncompleteRead`. The response of a
|
|
189
|
+
redirect is now closed before the Location is followed (urllib never
|
|
190
|
+
reuses that connection), so the same downloads read 0.2 to 131 KB, the
|
|
191
|
+
headers and what one buffered read brings with them, on CPython 3.10 to
|
|
192
|
+
3.15, and the one that announced more than it sent returns its document
|
|
193
|
+
(so does one whose body arrives a byte at a time, which used to spend the
|
|
194
|
+
whole time budget). A redirect whose target is refused (not HTTPS, not a
|
|
195
|
+
public host) closes its response too, where it left the socket to the
|
|
196
|
+
garbage collector. Unchanged: the HTTPS-only and public-host checks of
|
|
197
|
+
every redirect target, the pinned IP, the size cap on the response
|
|
198
|
+
returned, the time budget, and what a redirect loop or a redirect without
|
|
199
|
+
a Location raises (`HTTPError`; a 308 on CPython 3.10, where urllib does
|
|
200
|
+
not follow it, likewise).
|
|
201
|
+
|
|
202
|
+
- security(ob3): one credential can no longer make a status check download
|
|
203
|
+
without limit. With `check_status=True` (`--check-status`) every
|
|
204
|
+
`credentialStatus` entry cost one download of the list it names, each
|
|
205
|
+
with its own 60-second budget, the same list again for every entry that
|
|
206
|
+
named it, and the number of entries is chosen by whoever built the
|
|
207
|
+
credential (a did:key credential is the presenter's own): a JWT-VC of
|
|
208
|
+
about 500 KB with 2,000 entries made 2,000 downloads. A credential with
|
|
209
|
+
more than 8 `credentialStatus` entries is now refused before anything is
|
|
210
|
+
fetched (`MAX_STATUS_ENTRIES` in `openbadgeslib/ob3/status.py`; a W3C
|
|
211
|
+
credential carries one entry per status purpose and this library issues
|
|
212
|
+
at most two), and within one check each distinct `statusListCredential`
|
|
213
|
+
URL is downloaded once, while every entry is still checked in full
|
|
214
|
+
against the list it names (purpose, index, `statusSize`, validity window
|
|
215
|
+
and, when the list is verified, its issuer and proof). Both live in
|
|
216
|
+
`check_credential_status`, so they hold for JWT-VC and Data Integrity
|
|
217
|
+
credentials alike. `OB3Verifier.verify` also checks the recipient before
|
|
218
|
+
the status, so a recipient mismatch costs no download; a credential that
|
|
219
|
+
is both revoked and presented for the wrong recipient is now reported as
|
|
220
|
+
a recipient mismatch.
|
|
221
|
+
|
|
222
|
+
- security(publish): `openbadges-publish` publishes the public key a
|
|
223
|
+
badge's `public_key` file holds, after checking it, and no longer a copy
|
|
224
|
+
of the file. All three versions wrote the configured file verbatim as
|
|
225
|
+
`verify.pem` (`-V 2` also as `publicKeyPem` in `key.json`), so a config
|
|
226
|
+
with one crossed path (`public_key` naming the private key file) served
|
|
227
|
+
the signing key at the public URL, with exit 0; `-V 3` reported that the
|
|
228
|
+
file was not a public key, left the badge out of `did.json`, and
|
|
229
|
+
published the file all the same. The file is now read once and must be
|
|
230
|
+
an RSA, EC or Ed25519 public key (any PEM flavour, PKCS#1
|
|
231
|
+
`RSA PUBLIC KEY` included): a file with `PRIVATE KEY` anywhere in it is
|
|
232
|
+
refused before it is parsed, and when the badge's `private_key` is
|
|
233
|
+
readable the public key must be its public half, so the key of another
|
|
234
|
+
pair is refused too. What is written is that key re-serialised as a
|
|
235
|
+
SubjectPublicKeyInfo `PUBLIC KEY` PEM, never the file's bytes. On a
|
|
236
|
+
refusal `-V 1` and `-V 2` exit 1 before creating the output directory (a
|
|
237
|
+
missing key file is the same clean exit, where it was a traceback over a
|
|
238
|
+
half-written tree), and `-V 3` writes nothing for that badge: it is left
|
|
239
|
+
out of `did.json`, listed under `skipped`, and the run exits 2, or 1
|
|
240
|
+
with nothing written when no badge is left to publish. The status lists
|
|
241
|
+
of a refused badge are not regenerated either, so a `--revoke` on such a
|
|
242
|
+
config records the revocation in the registry and does not publish it
|
|
243
|
+
until the config is fixed; a badge whose key file is merely missing
|
|
244
|
+
behaves as before. The check is
|
|
245
|
+
`load_publishable_public_key` in `openbadgeslib/ob3/publish.py`, shared
|
|
246
|
+
by the three paths.
|
|
247
|
+
Compatibility: the `verify.pem` of a key file that was not already in
|
|
248
|
+
that form (PKCS#1, or without a trailing newline) differs in bytes from
|
|
249
|
+
the file; the key is the same. Whoever published with such a config
|
|
250
|
+
served the private key: delete the published `verify.pem` and `key.json`
|
|
251
|
+
(a refused `-V 3` run does not remove what an earlier run left in the
|
|
252
|
+
output directory) and replace the key pair.
|
|
253
|
+
|
|
254
|
+
- security(did): a did:web identifier is validated before it becomes a URL,
|
|
255
|
+
and the DID document it resolves to must be that DID's. The resolver
|
|
256
|
+
percent-decoded every component of the identifier, where the method
|
|
257
|
+
decodes only the `%3A` of a port, so an escaped `/`, `?`, `#` or `@`, a
|
|
258
|
+
`..` or an empty component chose any URL of the host, or another host:
|
|
259
|
+
`did:web:good.example:uploads:evil%23` was read from
|
|
260
|
+
`https://good.example/uploads/evil#/did.json` (the fragment drops the
|
|
261
|
+
mandatory `/did.json`), `did:web:good.example:api%3Fcb%3D` from
|
|
262
|
+
`https://good.example/api?cb=/did.json`, and
|
|
263
|
+
`did:web:good.example%40evil.example` from
|
|
264
|
+
`https://good.example@evil.example/.well-known/did.json`. Whoever could
|
|
265
|
+
place a JSON file at any path of a host (an upload, an endpoint that
|
|
266
|
+
echoes JSON) had an issuer DID of that host, which
|
|
267
|
+
`verify_badge(..., resolve_did=True)` and `openbadges-verifier
|
|
268
|
+
--resolve-did` reported as valid and trusted. Now the first component
|
|
269
|
+
must be a DNS name with an optional `%3A` port (up to 65535), and each
|
|
270
|
+
path component is non-empty, made of the DID syntax's characters
|
|
271
|
+
(letters, digits, `.`, `-`, `_`, `~` and well-formed `%XX` escapes) and
|
|
272
|
+
may not decode to `.`, `..`, or to anything holding `/`, `?`, `#`, `@`,
|
|
273
|
+
`:`, a backslash or a control character; anything else is an
|
|
274
|
+
`OB3VerificationError` ("invalid did:web identifier") and nothing is
|
|
275
|
+
fetched. A path component reaches the URL as the DID spells it, escapes
|
|
276
|
+
included. This covers `resolve_did`, `resolve_verification_method`,
|
|
277
|
+
`OB3Verifier.for_issuer_did`, `OB3LdpVerifier` and the CLI.
|
|
278
|
+
Behaviour change for issuers: a DID document whose `id` differs from the
|
|
279
|
+
DID it was fetched for, or that has none, is now refused (the host name
|
|
280
|
+
is compared without regard to case, the path exactly). The `did.json`
|
|
281
|
+
that `openbadges-publish -V 3` writes carries the right `id`; a
|
|
282
|
+
hand-written one, or one copied to a URL other than the one its DID
|
|
283
|
+
names, has to be corrected. A DID whose path holds an escape is read at
|
|
284
|
+
a different URL than before (`did:web:host:a%20b` at
|
|
285
|
+
`https://host/a%20b/did.json`, no longer at `https://host/a b/did.json`),
|
|
286
|
+
so a `publish_url` written already percent-encoded
|
|
287
|
+
(`https://host/a%20b/`), whose DID is `did:web:host:a%2520b`, no longer
|
|
288
|
+
resolves where it is served: write it unencoded.
|
|
289
|
+
|
|
290
|
+
- security(ob2): the HostedBadge `startsWith` scope is tested on the path a
|
|
291
|
+
server resolves, not on the one written in the assertion `id` (#339). The
|
|
292
|
+
origin and path-segment comparison of 4.4.3 ran on the path as written,
|
|
293
|
+
and the request goes out with that path untouched while the server that
|
|
294
|
+
answers normalises it: under `startsWith:
|
|
295
|
+
https://issuer.example/assertions/` the id
|
|
296
|
+
`https://issuer.example/assertions/../uploads/evil.json` (or `%2e%2e`, or
|
|
297
|
+
`./../`) was in scope and was served from `/uploads/`, so whoever could
|
|
298
|
+
write a JSON file anywhere on the issuer's origin minted hosted assertions
|
|
299
|
+
that `OB2Verifier.verify` and `verify_hosted` reported as that issuer's.
|
|
300
|
+
The path of the id and of each declared prefix is now decoded once and is
|
|
301
|
+
in no scope unless servers can read it one way only: no `.` or `..`
|
|
302
|
+
segment (bare or with path parameters, `..;x`), no empty segment (`//`),
|
|
303
|
+
no backslash or encoded slash (`%5c`, `%2f`), no escape left after the one
|
|
304
|
+
decoding (`%252e`), no control character and no escape that is not UTF-8
|
|
305
|
+
(the overlong `%c0%ae`). Such an id fails with "outside the issuer's
|
|
306
|
+
declared startsWith scope". The two sides are compared decoded, so `%41`
|
|
307
|
+
in a prefix now matches `A` in an id. Compatibility: under `startsWith`
|
|
308
|
+
an id with an encoded percent sign followed by two hex digits (`%2520`)
|
|
309
|
+
or with escapes in a legacy encoding (`caf%e9`) is refused, and
|
|
310
|
+
`/assertions;v=1` no longer counts as the prefix `/assertions` itself.
|
|
311
|
+
Issuers that declare no `startsWith` (the same-origin default,
|
|
312
|
+
`allowedOrigins`) are not affected.
|
|
313
|
+
|
|
314
|
+
- security(baking): the filter that strips active content from an SVG badge
|
|
315
|
+
image before the token is baked into it (#328) let four things through,
|
|
316
|
+
a plain `<script>` among them (#340). It walked the subtree of the first
|
|
317
|
+
element named `svg` rather than the document, so a script beside that
|
|
318
|
+
element survived (`<svg:svg ...><svg:script>` around a nested `<svg>`, or
|
|
319
|
+
an XHTML document that merely contains an `<svg>`); it kept an
|
|
320
|
+
`<?xml-stylesheet?>` processing instruction, whose XSLT sheet can emit
|
|
321
|
+
script; it trimmed the ends of a URL before testing its scheme, where a
|
|
322
|
+
browser also drops tab, LF and CR inside it (`java script:`); and it
|
|
323
|
+
kept a SMIL `<set attributeName="href" to="javascript:...">`, which gives
|
|
324
|
+
its target the URL the filter had removed. `baking.bake_svg` now filters
|
|
325
|
+
the whole document: elements are matched by local name whatever their
|
|
326
|
+
prefix, every element in the XHTML namespace goes, `set` / `animate*`
|
|
327
|
+
elements that target `href` / `src` / `action` or an `on*` attribute go
|
|
328
|
+
(animations of `opacity`, `fill`, `transform` and the like stay),
|
|
329
|
+
`xml-stylesheet` instructions and every processing instruction inside the
|
|
330
|
+
tree go, the DOCTYPE's internal subset goes (an `<!ATTLIST svg onload
|
|
331
|
+
CDATA "...">` default put the handler back when the baked file was
|
|
332
|
+
parsed), and C0 controls and spaces are removed from a URL before the
|
|
333
|
+
scheme test. Namespace declarations are now left alone: an `xmlns:`
|
|
334
|
+
prefix that began with `on`, or was called `href`, `src` or `action` with
|
|
335
|
+
a `javascript:` or `data:` namespace name, was removed as if it were a
|
|
336
|
+
handler or a link, which left the baked file with an unbound prefix that
|
|
337
|
+
no parser reads (`xmlns:ont="..."` in the metadata was enough) and would
|
|
338
|
+
have let an element fall back to an outer XHTML binding after it had been
|
|
339
|
+
judged. Compatibility: the root element must be `svg` in the
|
|
340
|
+
`http://www.w3.org/2000/svg` namespace, and the token is appended to it. A
|
|
341
|
+
root written with a prefix (`<s:svg xmlns:s="...">`), which used to end in
|
|
342
|
+
an `AttributeError`, now bakes; a document with any other root, or an
|
|
343
|
+
`<svg>` with no `xmlns` (which a browser does not render as an image), is
|
|
344
|
+
refused with `BadgeImgFormatUnsupported`, which the signers report as
|
|
345
|
+
`ErrorSigningFile` ("Unable to bake SVG ...: The image is not an SVG
|
|
346
|
+
document ..."). `has_svg` and `extract_svg` are unchanged, so badges baked
|
|
347
|
+
by earlier versions read as before, and an SVG that holds none of the
|
|
348
|
+
above bakes to the same bytes as before.
|
|
349
|
+
|
|
350
|
+
- security(oid4vci): the `tx_code` attempt cap holds against a burst of
|
|
351
|
+
guesses. The token endpoint tested the cap on the copy of the grant each
|
|
352
|
+
request had read, verified the guess (scrypt) and only then counted the
|
|
353
|
+
failure, so every request that read the grant before the third failure
|
|
354
|
+
was recorded had its guess verified: 32 wrong PINs sent at once to an
|
|
355
|
+
offer with 3 attempts got 32 verifications on `InMemoryOID4VCIStore` and
|
|
356
|
+
13 to 15 on `SqliteOID4VCIStore`, and the guessing budget of a PIN-gated
|
|
357
|
+
offer was the concurrency of the server. `handle_token_request` now
|
|
358
|
+
reserves the attempt before it verifies anything, through a new store
|
|
359
|
+
method, `reserve_tx_attempt(grant_id) -> bool`, that counts it only while
|
|
360
|
+
the grant is offered and has one left (one conditional UPDATE in SQLite,
|
|
361
|
+
one test-and-increment under the lock in memory). At most
|
|
362
|
+
`tx_code_max_attempts` verifications ever run against a grant: the same
|
|
363
|
+
burst gets 3, on both stores. A request that finds no attempt left is not
|
|
364
|
+
verified; it pays the scrypt any other rejection pays, closes the offer
|
|
365
|
+
and gets the same `invalid_grant`. One request at a time nothing changes:
|
|
366
|
+
two wrong PINs and then the right one redeem the code, the third wrong
|
|
367
|
+
one invalidates the offer. A right PIN now counts as an attempt as well.
|
|
368
|
+
`record_tx_failure` no longer counts (the reservation did) and no longer
|
|
369
|
+
touches a grant that is not offered: it used to mark the grant
|
|
370
|
+
invalidated at the cap whatever its state, so a wrong guess reported
|
|
371
|
+
after the code was redeemed could take the credential from whoever held
|
|
372
|
+
the PIN. API change, for a custom `OID4VCIStore` only: it needs
|
|
373
|
+
`reserve_tx_attempt`, and its `record_tx_failure` must stop incrementing
|
|
374
|
+
and must guard the state; without the new method a PIN-gated token
|
|
375
|
+
request fails with AttributeError, and with it but an old
|
|
376
|
+
`record_tx_failure` an offer closes after two wrong PINs instead of
|
|
377
|
+
three. The SQLite schema is unchanged.
|
|
378
|
+
|
|
379
|
+
- security(oid4vci): two more cases in which the token endpoint answered a
|
|
380
|
+
request according to the kind of grant its code names (4.4.4 closed the
|
|
381
|
+
missing-PIN one), and one unhandled exception at the credential endpoint.
|
|
382
|
+
A `tx_code` that is not a string (a JSON number from a naive decoder,
|
|
383
|
+
bytes nobody decoded) was `invalid_grant` for an unknown code,
|
|
384
|
+
`invalid_request` for a live offer without a PIN, and an AttributeError
|
|
385
|
+
out of scrypt for a live PIN-gated one: a 500, for a guess that was not
|
|
386
|
+
counted as an attempt. `handle_token_request` now refuses it before the
|
|
387
|
+
store is asked anything, as `invalid_request` ("the tx_code parameter
|
|
388
|
+
must be a string"), the same for every code, and nothing is spent. That
|
|
389
|
+
includes `0`, `False` and `b''`, which were taken for no `tx_code` at
|
|
390
|
+
all. A string `tx_code` sent to a live offer that does not use one was
|
|
391
|
+
answered at once, where an unknown code costs a scrypt; it now burns the
|
|
392
|
+
same `dummy_tx_verification()` first. Its error code has not changed: it
|
|
393
|
+
is still `invalid_request` where every other rejection is
|
|
394
|
+
`invalid_grant`, so that answer still says "live, and no PIN" to whoever
|
|
395
|
+
holds the code. And `handle_credential_request` answers an `access_token`
|
|
396
|
+
that is not a string with the 401 `invalid_token` of a missing one,
|
|
397
|
+
instead of an AttributeError.
|
|
398
|
+
|
|
399
|
+
- security(cli): `openbadges-signer` no longer writes a badge through a
|
|
400
|
+
symlink planted in the output directory (#342). The output names are
|
|
401
|
+
predictable (`badge_<n>_<recipient>.<ext>` and `.assertion.json`), the
|
|
402
|
+
already-signed check used `os.path.isfile`, which follows links and is
|
|
403
|
+
false for a dangling one, and the file was written with a plain `open()`:
|
|
404
|
+
a local user able to write to a shared `-o` directory could make the
|
|
405
|
+
operator create a file anywhere the operator can write or, with
|
|
406
|
+
`--force`, overwrite an existing one, with badge bytes. Anything at the
|
|
407
|
+
output name now counts as already signed (a symlink included, whatever it
|
|
408
|
+
points to), the file is created exclusively, and `--force` writes a new
|
|
409
|
+
file beside it and renames it over the name, so a symlink or a hard link
|
|
410
|
+
is replaced and what it pointed to is left untouched. On POSIX a link that
|
|
411
|
+
appears between the check and the write ends in the usual "Could not write
|
|
412
|
+
badge" exit. This covers `-V 1`, `-V 2` and `-V 3`, batch mode and the `-H`
|
|
413
|
+
assertion JSON. Compatibility: with `-H`, an existing `.assertion.json`
|
|
414
|
+
is now a reason to refuse (single badge) or skip (batch; the skipped
|
|
415
|
+
entry names it as `assertion_file`) unless `--force` is given, where it
|
|
416
|
+
used to be overwritten when the badge file itself was absent; and
|
|
417
|
+
`--force` replaces the file instead of truncating it in place, so the
|
|
418
|
+
result has the mode of a newly signed badge (from the umask) rather than
|
|
419
|
+
the mode of the file it replaced.
|
|
420
|
+
|
|
421
|
+
- security(eudi): `issue_badge_sd_jwt` binds a holder key only if it is a
|
|
422
|
+
public key (#343). `holder_jwk` was signed into `cnf.jwk` as given, with
|
|
423
|
+
no look at it, and `cnf` travels with the credential: a caller that
|
|
424
|
+
forwarded the whole key its wallet or client sent had the holder's private
|
|
425
|
+
key issued inside the badge (a private P-256 or Ed25519 JWK kept its `d`,
|
|
426
|
+
a symmetric `oct` key its `k`), and a str or a list became the `jwk`
|
|
427
|
+
itself. RFC 7800 section 3.2 wants a public key there. Now a value that is
|
|
428
|
+
not a JWK object, a JWK that carries any of the private members `d`, `k`,
|
|
429
|
+
`p`, `q`, `dp`, `dq`, `qi`, `oth` or `priv`, and a `kty` other than `EC`,
|
|
430
|
+
`OKP` or `RSA` raise `EudiError` before anything is signed. The key is
|
|
431
|
+
refused, never reduced to its public half: stripping would bind and
|
|
432
|
+
publish a key the caller did not mean to hand over. A public JWK is bound
|
|
433
|
+
as before, with its `kid`, `use`, `alg`, `key_ops` or `x5c` if it has
|
|
434
|
+
them. `issue_credential_from_conf(holder_jwk=...)` refuses the same
|
|
435
|
+
members before it derives the did:jwk; it already refused all of them but
|
|
436
|
+
`oth` (the RSA multi-prime member), which went into the signed `sub` of a
|
|
437
|
+
`jwt_vc_json` credential and into the `cnf` of a `vc+sd-jwt` one. The
|
|
438
|
+
OID4VCI credential endpoint never issued a key proof whose `jwk` header
|
|
439
|
+
carries `d`, `k`, `p`, `q`, `dp`, `dq`, `qi` or `priv` (openvc-core
|
|
440
|
+
answers `invalid_proof`), but it does not look for `oth` either: a P-256
|
|
441
|
+
proof key with a stray `oth` member was issued with it, in both formats,
|
|
442
|
+
and `handle_credential_request` now raises `IssuanceError` for it.
|
|
443
|
+
|
|
444
|
+
- security(ldp): the subject of an embedded endorsement credential may
|
|
445
|
+
carry only `id`, `type` and `endorsementComment`, the members of an
|
|
446
|
+
EndorsementSubject. An embedded endorsement names the node it endorses
|
|
447
|
+
(the achievement, the issuer) as its `credentialSubject`, and RDF lets a
|
|
448
|
+
node be described under any JSON object that references it, so the holder
|
|
449
|
+
of a Data Integrity badge could move the achievement's `description`,
|
|
450
|
+
`image` or `alignment` (the issuer's `name`, `url`, `image` or
|
|
451
|
+
`description`) into that subject: the same signed dataset, the same
|
|
452
|
+
signature, the document still its own compacted form, and
|
|
453
|
+
`OB3LdpVerifier.verify` returned a credential without them (an empty
|
|
454
|
+
description, no issuer name). Validity, status, recipient and issuer
|
|
455
|
+
verdicts were not affected. The rule goes by the position, not by the
|
|
456
|
+
subject's EndorsementSubject type, which a holder could move out the same
|
|
457
|
+
way. Compatibility: a badge whose embedded endorsement gives its subject
|
|
458
|
+
any other member, an extension included, no longer verifies. Not covered:
|
|
459
|
+
a node the issuer itself describes twice in the credential (the issuer
|
|
460
|
+
again as `achievement.creator`, a `criteria` with the achievement's id),
|
|
461
|
+
where a member can still be left only in the description the model does
|
|
462
|
+
not read (#345).
|
|
463
|
+
|
|
464
|
+
- security(ldp): a blank node label (`_:b7`) is refused as the `id` of a
|
|
465
|
+
Data Integrity credential, of its issuer, of a `credentialSubject` or of
|
|
466
|
+
a `credentialStatus` entry, in the credential and in each embedded
|
|
467
|
+
endorsement. A label is not part of the signed dataset (RDF
|
|
468
|
+
canonicalization relabels blank nodes), so `"id": "_:b7"` written on a
|
|
469
|
+
node that was signed without an id kept the signature valid and the
|
|
470
|
+
document its own compacted form, and `OB3LdpVerifier.verify` returned the
|
|
471
|
+
label as an identifier: as `recipient_id` for a subject signed with a
|
|
472
|
+
hashed `identifier` only (and `expected_recipient="_:b7"` matched it), as
|
|
473
|
+
the id of a status entry, and as the id of a credential or of an issuer
|
|
474
|
+
signed without one, which is refused as malformed when no label is
|
|
475
|
+
added. `OB3LdpSigner` no longer issues a credential with such an id
|
|
476
|
+
(`ErrorSigningFile`); the low-level functions, which check the proof
|
|
477
|
+
alone, are unchanged, and so is the JWT-VC path, where every byte is
|
|
478
|
+
signed. With ecdsa-sd-2023 only the credential's and the issuer's ids
|
|
479
|
+
are held to the rule: openvc-core's derive writes a label on every node
|
|
480
|
+
of a presentation that has no id, and OB 3.0 makes the id of a subject
|
|
481
|
+
and of a status entry optional, so a presentation of a credential whose
|
|
482
|
+
status entry has no id carries one there, keeps verifying, and still
|
|
483
|
+
shows it. The ids of other nodes (the achievement, an evidence, an
|
|
484
|
+
image) are not covered either: a rule for every node would refuse every
|
|
485
|
+
such presentation of a badge this library issues, whose `criteria` has
|
|
486
|
+
no id and so carries a label (#346).
|
|
487
|
+
|
|
488
|
+
- security(ldp): `OB3LdpVerifier.verify` checks the recipient before the
|
|
489
|
+
status, as `OB3Verifier.verify` does. With `check_status=True` and an
|
|
490
|
+
`expected_recipient` that the credential is not for, the status list was
|
|
491
|
+
downloaded (and its signature verified) before the mismatch was
|
|
492
|
+
reported; the recipient binding is local and free, so a credential
|
|
493
|
+
presented for someone else now costs no status list download. The proof,
|
|
494
|
+
the validity window and the ecdsa-sd-2023 lifecycle checks still come
|
|
495
|
+
first, so a did:web `verificationMethod` is still resolved before the
|
|
496
|
+
recipient is looked at. Compatibility: a credential that is presented
|
|
497
|
+
for the wrong recipient and whose status check would also fail (revoked,
|
|
498
|
+
suspended, a list that cannot be fetched or verified) is reported as a
|
|
499
|
+
recipient mismatch, not as the status failure; for the right recipient,
|
|
500
|
+
and without `expected_recipient`, nothing changes (#336).
|
|
501
|
+
|
|
7
502
|
* v4.6.3 - 2026-10-21
|
|
8
503
|
|
|
9
504
|
- fix(jws): the native JWS engine (OB1 and OB2 signed badges) answers a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openbadgeslib
|
|
3
|
-
Version: 4.6.
|
|
3
|
+
Version: 4.6.5
|
|
4
4
|
Summary: Production-ready Python library & CLI for Open Badges 3.0 (W3C Verifiable Credentials): issue, verify, and revoke JWT-VC credentials with Bitstring Status Lists and did:web — plus strict OB 2.0 and legacy OB 1.0.
|
|
5
5
|
Author-email: Luis González Fernández <luisgf@luisgf.es>, Jesús Cea Avión <jcea@jcea.es>
|
|
6
6
|
License: LGPLv3
|