Skip to main content

No project description provided

Project description

Python Rekor Monitor Template

Prerequisite:

Steps:

  1. Sign an artifact using cosign tool with your identity using:
    cosign sign-blob <file> --bundle cosign.bundle

More info on signing blobs is here: https://docs.sigstore.dev/cosign/signing/signing_with_blobs/

  1. Fetch latest checkpoints from Rekor log using:
    rekor-monitor -c
  1. Verify that the artifact signature in the transparency log is correct and verify that the log entry is included in the latest checkpoint of the transparency log by verifying the inclusion Proof merkle proof
    rekor-monitor --inclusion <logIndex of signed artifact> --artifact <artifact file>
  1. Verify that the checkpoint which had our entry added is consistent with the latest checkpoint using the checkpoint details obtained in step 2.
    rekor-monitor --consistency --tree-id <treeid in latest checkpoint> --tree-size <treesize in latest checkpoint> --root-hash <roothash in latest checkpoint>

Notes: Hw 4 Install all dependencies and build poetry with

    poetry add ($cat requirements.txt)
    poetry build

Test with

    pip install dist/python_rektor_monitor-0.1.0-py3-none-any.whl
    rekor-monitor -c

SBOM Attestation

  • need to verify the type of predicate given
  • using OIDC as a key is the default if no key argument given
    cosign attest-blob dist/python_rektor_monitor-0.1.0-py3-none-any.whl --predicate cyclonedx-sbom.json --type cyclonedx --bundle sbom.bundle
    cosign verify-blob-attestation --bundle sbom.bundle dist/python_rektor_monitor-0.1.0-py3-none-any.whl --certificate-identity samanthagburek --certificate-oidc-issuer https://github.com --type cyclonedx --check-claims

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_rektor_monitor-0.1.1.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_rektor_monitor-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_rektor_monitor-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for python_rektor_monitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cd127e19fb975f6edf9f7ff74a10ddb3befcccfc2f89ebbf9b95baa7a88578b0
MD5 fa3ea0cb5bcc4f37dc7c387312995ca7
BLAKE2b-256 afa330801856b51e16a61b94629432b8902fe9dd2e93a84ba57e21ac6dae3bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_rektor_monitor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22af7d40a01da352ac1bbafaa3014eee2e9a6a2ac44ac82a1588c878791a931f
MD5 4c34008845b9146d992debfe10b7997d
BLAKE2b-256 f17ba18e9bf27d6c746e95f79c127d3e870ddce2c2c872568fe3a651a099db39

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