Tags give the ability to mark specific points in history as being important
-
4.0.0
protected4f917ccb · ·= Release v4.0.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software*. == Removed == * Drop Python 3.8. With this change, tested support for Stackless is also dropped, as that project has been archived anyway. == Added == * Add tested support for PyPy 3.11 in CI. == Changed == * Update Poetry syntax in tasks and docs. * Update syntax for Python 3.9+. * Upgrade pyproject.toml syntax.
-
3.2.0
protected7cb7bb9e · ·= Release v3.2.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software*. Note: This is the last version supporting Python 3.8! == Added == * Add `serializer_kwargs` parameter for all loading operations of `Blake2SerializerSigner` (`load`, `loads`, and `loads_parts`), same as with all dumping operations (from v2.0.0), allowing to pass any keyword argument to the underlying serializer. * Add create release Invoke task that creates and signs a tag, the repo archives and the Python packages, along with providing hashes and pushing to the remote. == Changed == * Upgrade CI images to use Poetry v2 for Python 3.9+. * Default to using Python 3.12 instead of 3.10 in CI, and in Read The Docs. * Add proper support for Python 3.13 and 3.14rc. * Improve fuzzing script along its tests. * Several improvements in the CI, such as that pipelines run only on code, or docs changes, as well as packages caches that are only generated on lockfile changes, syntax upgrade and more. * Upgrade Safety scanner to use `scan` command.
-
3.1.1
protected85266fe0 · ·= Release v3.1.1 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software*. == Added == * Add examples showcasing generating and using secrets, and using `Blake2TimestampSigner` for API keys. == Changed == * Run mypy in strict mode, consequently fixing some minor details in the code. * Update CONTRIB docs regarding Poetry dependency groups. * Update copyright years. == Fixed == - Fix fuzz task and CI jobs. - Fix check-compat Invoke task, as it was broken by 5f9894b6102a6ff4b214cf038eb7ffcc61ec032b. - Fix issue with docs-reqs Invoke task where Poetry was not running in the correct directory, which was introduced in dba27fe86e3d98f381cd971108643c59817f8019.
-
3.1.0
protectedfb481d78 · ·= Release v3.1.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software*. == Added == * Add Base58 encoder, and some example usages like creating signed API keys. * Add utility function to generate a secure secret: `blake2signer.utils.generate_secret`. * Add `create-archives` Invoke task, to aide on signing releases. == Changed == * Always mock current time on timestamp signers tests, which makes testing timestamp-related signers easier, and less error-prone. * Fix Invoke tests task cancellation: prevent one test command failure to cancel the execution of the rest, thus still having a `report.xml` file generated, while exiting with the proper error code. * Change the fuzz task to allow selecting a specific signer. * Change fuzz CI job to fuzz all signers in parallel.
-
3.0.0
protected9ddf9cc8 · ·= Release v3.0.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software*. == Added == * Add new create signed tag Invoke task. == Removed == * Drop Python 3.7. == Changed == * Update dev dependencies. * Improve Invoke tasks with type hints. * Improve docs and docstrings grammar and wording. * Normalize file-related operations to use bytes, so we can default to open the file in binary mode for better performance. * `force_bytes` and `force_string` utility functions now only accept either `bytes` or `str`, and raises `TypeError` otherwise. However, signers usages are not affected by this. * Upgrade docs Python version to 3.10.
-
2.5.3
protectedfbc70cda · ·= Release v2.5.3 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* Note: This is the last version supporting Python 3.7! == Changed == * Update dev, and docs dependencies. * Update test runner in the CI for Python 3.12, 3.13-pre and PyPy 3.10. * Update new version release guide in docs to use minisign. * Replace deprecated pkg_resources with importlib. * Replace deprecated datetime.utcnow in Invoke tasks. * Other minor linting changes due to linter updates.
-
2.5.2
protected9029418e · ·= Release v2.5.2 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add missing keywords in pyproject.toml. == Removed == * Remove invoke patch for Python 3.11+: it's been fixed now, so it's no longer needed. == Changed == * Improve some docs. * Update dev, and docs dependencies. == Fixed == * Fix issue with mkdocstrings and blake3.
-
2.5.1
protectede9df84cd · ·= Release v2.5.1 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Patch Invoke so it works under Python 3.11+. == Changed == * Improve the fuzzing script, add instructions on running it, and add it as a CI job for releases. * Change the usage of AnyStr in signer's public methods with Union[str, bytes], which is not the same, and they are not generally interchangeably like this, but for this particular usage Union makes more sense, and MyPy seems to agree with this. * Several improvements in the CI: fixed coverage report, updated Python versions and Poetry, added fuzzing, etc. * Update dev dependencies.
-
2.5.0
protectedec0245e6 · ·= Release v2.5.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add valid unsigned data to the `ExpiredSignatureError` exception: even if the signature is expired, its unsigned value is valid and safe, so now it can be used. * Add new linters: pylint, and perflint. == Changed == * Move docs to its own environment, due to some incompatibility between dev dependencies. This results in better handling of docs dependencies, using Poetry. * Several docs, and docstrings improvements. == Security == * Implement `minisign` to sign all release packages, and tags (using `git-minisign`), instead of `PGP`. * Run `safety` scanner over docs dependencies too.
-
2.4.0
protectede95af39d · ·= Release v2.4.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add tests to ensure compatibility, or not, with previous versions. == Changed == * Allow `max_age` to be None for the Blake2TimestampSigner: the timestamp is then not checked (but the signature is always checked).
-
2.3.0
protected6fe505a8 · ·= Release v2.3.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add support for signing secret rotation: now it supports receiving a sequence of secrets instead of a single one, considering them ordered from oldest to newest, so that signatures are made with the newest secret but verifications are done using all of them. * Add dev tool `darglint` to help checking docstrings consistency with the code, and consequently improve docstrings adding missing parts.
-
2.2.0
protectedfaa2c296 · ·= Release v2.2.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add support for BLAKE3 through third-party package `blake3`, which are bindings to the homonym Rust package (ported by one of the algorithm's author). == Changed == * Several docs content improvements. * Marginal performance improvement by changing frozen dataclasses for named tuples.
-
2.1.0
protected5802eede · ·= Release v2.1.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Changed == * Unhardcode default compression level, which was hardcoded to 6. That value was set for Zlib and remain there since the old times. Make the default `None` so we can let the compressor set the right value.
-
2.0.0
protected250b39a2 · ·= Release v2.0.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Allow changing encoder in every signer: previously only Blake2SerializerSigner accepted encoders other than b64, yet not totally: the signature was always b64 URL safe encoded. This required a slight refactor splitting the signers module into bases and signers. * Add new base32 encoder. * Add check to ensure that the separator does not belong to the encoder alphabet. * Add new hex (base16) encoder. * Add check to ensure that the separator and compressor flag are ASCII characters to prevent encoding errors when converting from bytes to string. * Add new gzip compressor. * Add new null serializer: a serializer that doesn't actually serializes. It can be useful when you need to manage bytes or strings, but you want to compress too, therefore being able to use the Blake2SerializerSigner for this. * Add check to ensure that the separator and compressor flag are not empty. * Add check to ensure that the encoder alphabet is ASCII and not empty. * Add signature timestamp to `ExpiredSignatureError` exception in new `timestamp` parameter as an aware datetime object. * Add new dump/load interface in `Blake2SerializerSigner` for file-like objects. * Add argument to `Blake2SerializerSigner.dumps()` to pass keyword arguments to the serializer. * Add documentation with mkdocs, and a nice title with logo (many thanks to Erus). * Add new methods to obtain data and signature separately for all signers: `sign_parts`/`unsign_parts` and `dumps_parts`/ `loads_parts`. * Create a security scanning job using Trivy. * Add a job to test support for PyPy 3.7. * Add a job to test support for Stackless Python 3.7. == Changed == * Split classes between mixins and interfaces; also serializers, compressors and encoders, which are implementations of interfaces. This smooths the way to have several different implementors and to actually be able to change the entire encoding in the future (currently the signature is always b64 URL safe encoded even if the encoder is changed in Blake2SerializerSigner). * Set default digest size for all signers to 16 bytes, so the output and functioning is more homogeneous. * Make compression flag and ratio an instance attribute. * Make separator an instance attribute. * Change type annotations for secret, personalisation, separator and compression_flag to show support for bytes and string as it has always been supported. * Improve force_bytes performance by not casting bytes to bytes, and change its signature to accept any. * Rename `use_compression` to `compress` because it's shorter and easier to write, and more tab-autocompletion friendly. * Recover cause in all exceptions for easier debugging. This was not done before on purpose to hide information in case a misconfiguration in the implementor application would expose said information to the public, but the benefits of having a cause traceback to the original exception are too many to not have it. * Split tests by module or class to avoid having a giant single file with all the tests in it. * Marginally improve performance, around ~4% less time, to sign and unsign by removing unneeded calls to `force_bytes` when encoding/ decoding. == Security == * Prevent timestamped signatures "from the future" to pass as correct by checking the signature age to be bigger than 0. * Create a fuzzing script using `pythonfuzz` to uncover unexpected bugs. * Fix a potential vulnerability when the `NullSerializer` was used and the user could sign arbitrary data, then a malicious user could sign a zip bomb that when unsigned could cause at best a controlled `DecompressionError` exception or at worst a DoS or other unknown result (depends heavily on the compressor used). This scenario is not default and probably very hard to achieve (it can't be produced with the `JSONSerializer` but it could perhaps be produced by some other custom serializer too), but nevertheless the possibility was there.
-
1.2.1
protected0763236c · ·= Release v1.2.1 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add jobs to publish python packages automatically. == Fixed == * Fix wrong exception being raised in Blake2TimestampSignerBase._decode_timestamp().
-
1.1.0
protectedaef9e4b7 · ·= Release v1.1.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add new `force_compression` parameter in `Blake2SerializerSigner.dumps()` to expose existing capability to force data compression. == Changed == * Change execution order of steps to publish a package in Contrib, to allow room for fixes after publishing to testpypi. * Reworded and fixed some typos in Readme. * Change wording in DecodeError and EncodeError to abstract them from base 64 URL safe. * Change `Blake2TimestampSignerBase._split_timestamp()` to decode the timestamp directly. It made some noise that after splitting one needed to decode the timestamp to actually use it. == Security == * Update dev dependencies, one of which (*safety*) had a security vulnerability because of a dependency (urllib3).
-
1.0.0
protected1d3c0c63 · ·= Release v1.0.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Added == * Add a logo and icons for the project (many thanks to NoonSleeper). * Add index to readme. * Add again flake8-annotations-complexity since it now works in Python 3.9+. == Changed == * Updated dependencies. * Use debian-based images in CI to run tests, prventing package building wreckage and improving run time (there's no need to build given most packages publish a wheel artifact).
-
0.5.1
protectedfb8438bd · ·= Release v0.5.1 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Fixed == * The idea of 66ebeff was to accept the hasher parameter also as string, but the implementation and type hints were wrong. Fixed it and added corresponding tests (mental note: avoid releasing new versions at Saturday midnight).
-
0.5.0
protectedd9b3b1b8 · ·= Release v0.5.0 = *All release tags are signed, and release packages are also signed*. *Always check signatures prior using this software* == Removed == * Remove `flake8-annotations-complexity` because it is failing in Python 3.9 (there's a bug report already filled for this and a new release should come soon). == Added == * Create jobs to tests this lib under different Python versions. * Add usage examples in classes docstrings. == Changed == * Renamed enum `Hashers_` to `HasherChoice` and subclass it from string. * Update dev dependencies. == Fixed == * Bring back Python 3.7 compatibility by removing the use of TypedDict which was unneeded.