Skip to main content

No project description provided

Project description

Artifact Signer

Project Description

This project will allow you to sign an artifact and upload its signature to a public instance of a transparency log. It will also verify the inclusion in the transparency log, along with verifying that the correct signature is stored in the transparency log. Finally, it can verify the integrity of the transparency log at any point of time.

Usage

Sigstore and Cosign

To sign and upload an artifact using the Cosign tool, you can do:

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

If you do not have Cosign installed and want further information on Cosign, please refer to its documentation: https://docs.sigstore.dev/

Running the program

Once you have signed and uploaded an artifact, you can now use the command line tool provided by the project to perform a variety of functions. Please see below for example usages.

To fetch the latest checkpoint in the Rekor log:

python main.py -c

To verify that the artifact signature in the transparency log is correct:

python main.py --inclusion <log_index> --artifact <path_to_artifact>

To verify that the checkpoint added is consistent with the latest checkpoint using checkpoint details obtained when running python main.py -c:

python main.py --consistency --tree-id <previous_tree_id> --tree-size \
<previous_tree_size> --root-hash <previous_tree_root_hash>

Optionally, all commands can also be run with the -d or --debug flag to enable debug mode. In debug mode, extra information is printed out during execution. Debug mode is disabled by default.

python main.py -d
// or
python main.py --debug

Maintenance

This project is maintained by Zayaan Rahman.

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

python_artifact_signer-0.5.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

python_artifact_signer-0.5.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file python_artifact_signer-0.5.0.tar.gz.

File metadata

  • Download URL: python_artifact_signer-0.5.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.8.0-48-generic

File hashes

Hashes for python_artifact_signer-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3fa9c99193c75be1c3df4bc15ea9e463ea4b24082e2794cf230b89083923cd74
MD5 35e7fe666360f5bd15a373b1542535a8
BLAKE2b-256 f54f5e628b183ac2da2c474fd6f547229162d6dd2ac55f8a1239f41f1c8839bb

See more details on using hashes here.

File details

Details for the file python_artifact_signer-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_artifact_signer-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dedd5de2e2ca4eee008e54d61d3db5455064c0eb51659c935588a66792bee127
MD5 e0cfcc16849899e0ae0938b7849cf1a2
BLAKE2b-256 8d7861dd44d3f0c365a3500c770e04bf39378add62c4f9873d4074a6b85bcc8d

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