Skip to main content

No project description provided

Project description

Python Rekor Signed Artifact Verification Script

Overview

In software development, artifact signing is a method to help increase the security of the software by associating an artifact with the person who uploaded it.

Sigstore is a tool that simplifies the signing of artifacts by signing it and uploading the signature details to Rekor, an append-only log, so that other users are able to verify the integrity of the artifact.

This script contains functions for interacting with the Rekor logs, such as verifying the inclusion of an artifact in the logs.

Usage

Prior to using this script, an artifact is signed using a tool like cosign. For example:

cosign sign-blob <artifact> --bundle artifact.bundle

The generated .bundle file will contain details about the signing, such as the log entry that was appended to Rekor as well as the log ID.

Once you have an artifact that has been signed, you can use this script to do the following:

Verify the inclusion of the artifact in Rekor

python main.py --inclusion <logIndex> --artifact <artifact>

Fetch the latest log entry in Rekor

python main.py -c

Verify the consistency of a log entry with the latest Rekor log entry

In order to perform consistency verification, you'll need the following details of the log entry that you want to verify its consistency: treeId, treeSize, and rootHash. You can query the Rekor API for your log entry to obtain these details. Once obtained, the following command will perform the consistency verification:

python main.py --consistency --tree-id <treeId> --tree-size <treeSize> --root-hash <rootHash>

Installation

This script contains a few dependencies that are required to be installed prior to usage. They can be installed by running:

pip install -r requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rekor_verification-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rekor_verification-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file rekor_verification-0.1.1.tar.gz.

File metadata

  • Download URL: rekor_verification-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Darwin/24.6.0

File hashes

Hashes for rekor_verification-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f6a60f1c6461c45f00668a78aa7e809f1d64d91932fb84eeeb5683a3e8af3288
MD5 7a4a3e7dd51af033f4cb427d8e70be60
BLAKE2b-256 657cc8200875fe142ae66f216a19a1e801d113de0352086b82d098ba0761e006

See more details on using hashes here.

File details

Details for the file rekor_verification-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rekor_verification-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Darwin/24.6.0

File hashes

Hashes for rekor_verification-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ede14d77bb7c99c28994ef6b176aa31725d0df3843735e6ade6d8adad7332a8
MD5 26d3bf0a32d7e41179126cf53a839b70
BLAKE2b-256 46b652326a884e3db85f33f1865f4ed760edd69563066d859a6947c8349203c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page