All notable changes to model-signing will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
All versions prior to 1.0.0 are untracked.
- Added the
digestsubcommand to compute and print a model's digest. This enables other tools to easily pair the attestations with a model directory. - Added
--module-pathsoption to PKCS #11 signing methods pkcs11-key and pkcs11-certificate. - Added
model_signing.signing.Config.sign_to_bytes()(and a module-levelmodel_signing.signing.sign_to_bytes()helper) that return the Sigstore bundle in memory as bytes instead of writing it to disk. This supports serverless and pipeline callers that need to stream or store the signature without filesystem access. (#582) - Added RFC 3161 timestamp support for PKI signing and verification through
--tsa-url,--trust-config, and--require-timestamp.
- Standardized CLI flags to use hyphens (e.g.,
--trust-configinstead of--trust_config). Underscore variants are still accepted for backwards compatibility via token normalization.
- Added
certifias a direct dependency.model_signingimportscertififor the default system certificate chain but relied onsigstoreto install it transitively (via itsrequestsdependency), andsigstore4.6.0 no longer depends onrequests, so a fresh install failed withModuleNotFoundError: No module named 'certifi'. - Added
pyOpenSSLas a direct dependency.model_signingimportsOpenSSLfor certificate chain verification but relied onsigstoreto install it, andsigstore4.5.1 no longer does, so a fresh install failed withModuleNotFoundError: No module named 'OpenSSL'. (#685) - Fixed serialization treating a broken symlink as a symlink cycle when
allow_symlinkswas enabled, silently leaving it out of the manifest. A dangling symlink added to a signed model passed verification unreported, while an added regular file was flagged as an extra file. Broken symlinks are now rejected with an error unless they are in the ignored paths. - Fixed verification of v0.2 signatures (the deprecated
https://model_signing/Digests/v0.1predicate) following symlinks in the model. The manifest rebuilt from such a signature recordedallow_symlinksas the string"false", which is truthy, so a signed file replaced by a symlink still verified. These signatures are now verified with symlinks refused. - Fixed serialization silently leaving out every file under a symlink to a directory when
allow_symlinkswas enabled, so those files were neither signed nor verified. Such symlinks are now rejected with an error unless they are in the ignored paths. - Fixed certificate verification accepting a signing certificate whose extended key usage does not permit code signing (for example a TLS
serverAuthcertificate), as long as the digitalSignature key usage bit was set. (#648) - Fixed a bug where shard serialization left zero-length files out of the manifest entirely, so a signature did not cover them and adding, removing or filling in an empty file did not invalidate it. Empty files now get one empty shard, matching file serialization. Shard signatures over models that contain empty files need to be regenerated. (#653)
- Fixed a bug where reusing a single
verifying.Configacross models let the ignore paths and guessed hashing configuration from one verification carry over into later ones. A file that a later model's signature never excluded could be silently skipped instead of reported as unsigned. (#650) - Fixed a path traversal during verification with
ignore_unsigned_files, where a signed manifest whose resource paths contained..caused files outside the model directory to be read and hashed. Such paths are now rejected. (#647) - Fixed a bug where installing from the sdist produced an empty wheel with zero Python modules. The hatch
packagesdirective was scoped to all build targets instead of the wheel target only, causing the sdist's flattened layout to not match the expectedsrc/path. (#636) - Fixed a bug where ignored symlinks could raise
ValueErrors if allow_symlinks was unset, even though they were skipped during serialization. (#550) - Fixed a bug where any PEM encoded key could be read during the key-based flows which resulted in a Python exception because the rest of the code only supported elliptic curve keys. (#573)
- Removed Python 3.9 support due to it reaching EOL 2025-10-31 (https://devguide.python.org/versions/)
- Removed Python 3.10 support due to it reaching EOL in October 2026 (https://devguide.python.org/versions/) (#602)
1.1.1 - 2025-10-10
- Fixed a bug where the API with default signing configuration results in an error due to a type confusion (#545)
1.1.0 - 2025-10-10
- Added support for signing with PKCS #11 devices (#411), as an optional dependency (#494).
- Added support for signing and verifying using private Sigstore instances via the
--trust_configoption (#460). - Added support for the
--oauth_force_ooboption for the signing CLI flow (#471). - Added support for specifying
--client_idand--client_secretfor OIDC authentication with custom OAuth clients (#475). - Surfaced the
--allow_symlinksoption to the CLI and library API (#486). - Implemented public key identifier hash matching for bundle verification (#493).
- Added warning for older verification material formats (e.g., raw public key bytes) during verification, recommending re-signing (#493).
- Added more informative signature mismatch errors: The
ValueErrorraised during model verification when a signature mismatch occurs now includes detailed information about what caused the signature verification to fail (#495). - Created a new, minimal container image. This variant excludes optional dependencies (like OTel and PKCS#11) to reduce footprint, focusing solely on core signing and verification mechanisms (#499).
- Added support for
--ignore_unsigned_filesoption in CLI to ignore files that are not part of the manifest but are still present in the model directory (#501). - Added support to trace sign and verify operations using OpenTelemetry (#503).
- The library was migrated to require at least v4.0.0 of
sigstoredue to breaking changes in that library (#532). There are no breaking changes within the library itself, as these changes should be transparent to the users. - The
sigstore_protobuf_specsdependency was replaced withsigstore_modelsdue to the same changes insigstore-4.0.0(#533). These changes should also be transparent to the users. - Added support for BLAKE3 hashing (#538).
- Adjusted model name when signing and verifying when
model_pathis current directory (#452). - Recorded files in signature that were ignored when signature was created and added ability to automatically ignore those files when verifying signature (#462).
- The Sigstore signer was changed to be lazily initialized to avoid network calls when not using it (#467).
- Logging was migrated to only be enabled when the user asks to log the certificate fingerprints (#472).
- Fixed bugs related to using
model_path='.'in the signature, as well as other issues related to file paths (#452). - Fixed handling of certificate that has no
KeyUsage(#457). - Fixed bug related to ignoring git files (#462).
- Fixed handling of ignored files in the sharded file hasher (#465).
- Fixed handling of path resulting from certificates returned from
certifyAPI (#468). - Fixed deserialization bug related to optional values in protobuf API for keyid (#490).
1.0.1 - 2025-04-18
- Added support for pre v1.0 signatures used in production. This is only provided for verification and replicates the experimental behavior at v0.2, bug for bug.
- Added support for displaying fingerprints of certificates when using signing certificates
- Fix bug in CLI scripts where even if signature verification failed, the script would also output that verification passed and exit with success error code.
- Docker containers wrapping around the CLI have been changed to support the updated CLI
1.0.0 - 2025-04-04
- First stable release of
model_signing. - Stable, backwards-compatible API.
- Stable, clean, backwards-compatible CLI wrapping the API.
- Well-defined signature scheme based on Sigstore bundle and DSSE envelope.
- Well-defined, future proof, stable, in-toto format for the model signature.
- Signing and verification using Sigstore, public/private key pairs, and signing certificates.
- Support for signing/verification via scripts in the repo (
hatch run python -m model_signing), installing the pip package (python -m model_signingormodel_signing), or Docker containers that wrap around the CLI. - Support for Python 3.9, 3.10, 3.11, 3.12, and 3.13.
- Demo notebook to showcase API and CLI examples.