Skip to main content

An auditing system for Sigstore signatures

Project description

Rekor Monitor

An auditing system for Sigstore signatures

Installation

  1. Clone the repository:

     git clone https://github.com/nate-lavoy/supply-chain-security.git
    
     cd supply-chain-security
    
  2. Set up a virtual environment (optional but recommended):

     python3 -m venv env
    
     source env/bin/activate
    
  3. Install dependencies (listed below)

Using the code

  1. Create an Artifact: Start by generating the artifact that will be signed and added to Rekor.

  2. Sign the Artifact: Use the Cosign tool to sign the artifact with your email ID, and save the signature and the certificate used for signing. This can be done using Cosign's bundle command.

  3. Fetch the Latest Checkpoint

  • To retrieve the latest checkpoint from the Rekor server:

    python main.py -c
    
  1. Verifying Log Inclusion

To confirm that a specific log entry exists in the transparency log and verify the artifact's signature stored in Rekor:

   python main.py --inclusion <logIndex> --artifact <artifactFilePath>`
  1. Verifying Checkpoint Consistency

To ensure an older checkpoint is consistent with the current Rekor checkpoint:

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

Provide the tree ID, tree size, and root hash from the older checkpoint for verification.

Dependencies

  • argparse: Standard library used for argument parsing.

  • base64: Standard library for encoding and decoding base64 strings.

  • binascii: Standard library for binary and ASCII conversions.

  • hashlib: Standard library for hashing algorithms.

  • json: Standard library for JSON data handling.

  • requests: External library for making HTTP requests (install via pip install requests).

  • cryptography: External library for cryptographic functions and signature verification (install via pip install cryptography).

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_monitor-4.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

rekor_monitor-4.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file rekor_monitor-4.0.tar.gz.

File metadata

  • Download URL: rekor_monitor-4.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/22.5.0

File hashes

Hashes for rekor_monitor-4.0.tar.gz
Algorithm Hash digest
SHA256 8aa2bf5335ead3f66a153e9fd04b9302d35c62b98aeeb949a3928f0da0304834
MD5 40f1393eac6f8c8cd3a87b8e0711f912
BLAKE2b-256 2c8fba8c57d2d22c55ab18575c072906b539b0bcd67bbcc421b2a46b2e805fcc

See more details on using hashes here.

File details

Details for the file rekor_monitor-4.0-py3-none-any.whl.

File metadata

  • Download URL: rekor_monitor-4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/22.5.0

File hashes

Hashes for rekor_monitor-4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc7bb75062463eaa0c5fadafa8efeb4afdfe6067e471877f7ebe7a0918290695
MD5 1856d49ef1815b391a571129e3e7f17c
BLAKE2b-256 52ef1dccc66e36019a0c37035541476e7e113fe75ee95f61379d1f0ef6e21029

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