No project description provided
Project description
Python Rekor Monitor Template
Prerequisite:
- Install cosign: https://docs.sigstore.dev/cosign/system_config/installation/
Steps:
- 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/
- Fetch latest checkpoints from Rekor log using:
rekor-monitor -c
- 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>
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd127e19fb975f6edf9f7ff74a10ddb3befcccfc2f89ebbf9b95baa7a88578b0
|
|
| MD5 |
fa3ea0cb5bcc4f37dc7c387312995ca7
|
|
| BLAKE2b-256 |
afa330801856b51e16a61b94629432b8902fe9dd2e93a84ba57e21ac6dae3bd2
|
File details
Details for the file python_rektor_monitor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: python_rektor_monitor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22af7d40a01da352ac1bbafaa3014eee2e9a6a2ac44ac82a1588c878791a931f
|
|
| MD5 |
4c34008845b9146d992debfe10b7997d
|
|
| BLAKE2b-256 |
f17ba18e9bf27d6c746e95f79c127d3e870ddce2c2c872568fe3a651a099db39
|