Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NewTypes for clearer encoding types (#474)
* class prototype and script to find instances to change * script added * Set up newtype file with example newTypes * added newtypes to _util.py * renamed newtypes, added keyID * deletion of old file * added hexstr newtype and implemented newtypes for SigningResults * added newtypes to verify/models.py * renamed newtypes to follow standardized format * moved newtypes into _util * deleted newtypes.py * Changed sign.py to use _utils and set up basic implementation in verifier * build(deps-dev): update ruff requirement from <0.0.226 to <0.0.229 (#466) Updates the requirements on [ruff](https://github.com/charliermarsh/ruff) to permit the latest version. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.18...v0.0.228) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: emboman13 <[email protected]> * build(deps-dev): update ruff requirement from <0.0.229 to <0.0.231 (#468) Updates the requirements on [ruff](https://github.com/charliermarsh/ruff) to permit the latest version. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.18...v0.0.230) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: emboman13 <[email protected]> * build(deps-dev): update ruff requirement from <0.0.231 to <0.0.232 (#469) Updates the requirements on [ruff](https://github.com/charliermarsh/ruff) to permit the latest version. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.18...v0.0.231) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: emboman13 <[email protected]> * Initial Sigstore bundle support (#465) * Initial Sigstore bundle support Signed-off-by: William Woodruff <[email protected]> * README: update `--help` texts Signed-off-by: William Woodruff <[email protected]> * sign: fix bundle generation Certs are base64'd DER, not PEM, and the canonicalized_body is the log entry body, not the canonicalized contents that the SET is signed over. Signed-off-by: William Woodruff <[email protected]> * sign: remove TODO Signed-off-by: William Woodruff <[email protected]> * sign: update TODO Signed-off-by: William Woodruff <[email protected]> * _cli: Make `--bundle` refer to a path and create a `--no-bundle` flag to control whether Sigstore bundles are emitted by default Signed-off-by: Alex Cameron <[email protected]> * _cli: Move variable to correct scope Signed-off-by: Alex Cameron <[email protected]> * _cli: Reword warnings for bundle flags Signed-off-by: Alex Cameron <[email protected]> * README: Fix sign example Signed-off-by: Alex Cameron <[email protected]> * README: Update verify invocations Signed-off-by: Alex Cameron <[email protected]> * README: Fix line breaks Signed-off-by: Alex Cameron <[email protected]> * _cli: fix sig output Signed-off-by: William Woodruff <[email protected]> * _cli: fix sig check, take 2 Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]> Signed-off-by: Alex Cameron <[email protected]> Co-authored-by: Alex Cameron <[email protected]> Signed-off-by: emboman13 <[email protected]> * CHANGELOG: record changes (#470) Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]> Signed-off-by: emboman13 <[email protected]> * class prototype and script to find instances to change Signed-off-by: emboman13 <[email protected]> * script added Signed-off-by: emboman13 <[email protected]> * Set up newtype file with example newTypes Signed-off-by: emboman13 <[email protected]> * renamed newtypes, added keyID Signed-off-by: emboman13 <[email protected]> * deletion of old file Signed-off-by: emboman13 <[email protected]> * added hexstr newtype and implemented newtypes for SigningResults Signed-off-by: emboman13 <[email protected]> * added newtypes to _util.py Signed-off-by: emboman13 <[email protected]> * renamed newtypes to follow standardized format Signed-off-by: emboman13 <[email protected]> * added newtypes to verify/models.py Signed-off-by: emboman13 <[email protected]> * moved newtypes into _util Signed-off-by: emboman13 <[email protected]> * deleted newtypes.py Signed-off-by: emboman13 <[email protected]> * Changed sign.py to use _utils and set up basic implementation in verifier Signed-off-by: emboman13 <[email protected]> * added newtypes to sigstore/veriry/models.py * updated newtypes in verify/models.py Signed-off-by: omartounsi7 <[email protected]> * Revert "updated newtypes in verify/models.py" This reverts commit f767d7a. * Encapsulation of NewTypes in my share of files Creation of new type 'dercert' that masks DER encoded bytes. Focus on changing types in files within sigstore/_internal/. Reformat, lint lint is successful. 103 Tests pass, 8 are skipped, 2 fail. * Removed an incorrect b64str newtype in models.py Signed-off-by: omartounsi7 <[email protected]> * "added newtypes to _internal/rekor/client.py" Signed-off-by: omartounsi7 <[email protected]> * "fixed type errors in sign.py" Signed-off-by: omartounsi7 <[email protected]> * Added a b64str newtype in verify/models.py Signed-off-by: omartounsi7 <[email protected]> * added a b64str newtype in verify/verifier.py Signed-off-by: omartounsi7 <[email protected]> * added a b64str newtype to _internal/fulcio/client.py Signed-off-by: omartounsi7 <[email protected]> * added a b64str newtype in _internal/oidc/oauth.py Signed-off-by: omartounsi7 <[email protected]> * added a b64str newtype in _internal/rekor/client.py Signed-off-by: omartounsi7 <[email protected]> * deleted script Signed-off-by: omartounsi7 <[email protected]> * fixed some type errors * changed keyid to KeyID Signed-off-by: omartounsi7 <[email protected]> * anged hexstr to HexStr Signed-off-by: omartounsi7 <[email protected]> * changed b64str to B64Str Signed-off-by: omartounsi7 <[email protected]> * changed pemcert to PEMCert Signed-off-by: omartounsi7 <[email protected]> * changed dercert to DERCert Signed-off-by: omartounsi7 <[email protected]> * added docstrings to newtypes in _utils.py Signed-off-by: omartounsi7 <[email protected]> * Update sigstore/_utils.py Co-authored-by: William Woodruff <[email protected]> Signed-off-by: omartounsi7 <[email protected]> * Update sigstore/_utils.py Co-authored-by: William Woodruff <[email protected]> Signed-off-by: omartounsi7 <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: emboman13 <[email protected]> Signed-off-by: William Woodruff <[email protected]> Signed-off-by: Alex Cameron <[email protected]> Signed-off-by: omartounsi7 <[email protected]> Signed-off-by: omartounsi7 <[email protected]> Co-authored-by: emboman13 <[email protected]> Co-authored-by: omartounsi7 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Woodruff <[email protected]> Co-authored-by: Alex Cameron <[email protected]> Co-authored-by: omartounsi7 <[email protected]> Co-authored-by: William Woodruff <[email protected]>
- Loading branch information