Python Rekor Monitor Template
Template code for NYU CS-GY 9223 Software Supply Chain Security.
A command-line tool that verifies entries in the Sigstore Rekor transparency log. It can:
- fetch the latest signed checkpoint from the public Rekor instance,
- verify an artifact's signature and its inclusion proof in the log,
- verify consistency between an older checkpoint and the latest one.
Installation
From PyPI
pip install rekor-monitor-app7633
From source
Requirements: Python 3.10+, Poetry.
git clone https://github.com/zyanTheKid/NYU-SSCS.git
cd NYU-SSCS
pipx install poetry
poetry install
Usage
Installed from PyPI
# Print the latest checkpoint
rekor-monitor -c
# Verify an artifact's signature and inclusion in the log
rekor-monitor --inclusion <log_index> --artifact <artifact_file>
# Verify consistency of an older checkpoint with the latest
rekor-monitor --consistency --tree-id <id> --tree-size <size> --root-hash <hash>
# Add -d to any command for debug output
From source
# Print the latest checkpoint
poetry run python main.py -c
# Verify an artifact's signature and inclusion in the log
poetry run python main.py --inclusion <log_index> --artifact artifact.md
# Verify consistency of an older checkpoint with the latest
poetry run python main.py --consistency --tree-id <id> --tree-size <size> --root-hash <hash>
# Add -d to any command for debug output
Development
poetry install # installs dev tools too
pre-commit install # enables the trufflehog secret scan on commit
poetry run ruff format . # format
poetry run ruff check . # lint
poetry run mypy # type check
poetry run bandit -c pyproject.toml -r . # security scan
poetry run pytest # tests + coverage report
See CONTRIBUTING.md for contribution guidelines and SECURITY.md for reporting vulnerabilities.
License
MIT. See LICENSE.
Metadata
Release files for rekor-monitor-app7633 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rekor_monitor_app7633-0.1.0.tar.gz | 6.9 kB | Without provenance | Details for rekor_monitor_app7633-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rekor_monitor_app7633-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rekor_monitor_app7633-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / rekor_monitor_app7633-0.1.0.tar.gz
| Download URL | rekor_monitor_app7633-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea61393e3bf1809f4c15e2e77219e06360cdc10d07035903269ddf861493670b
|
|
BLAKE2b-256 checksum How to use checksums |
3d29ee5be430756b59e1da54afdf1c19b8ba11e3a12e7edab9c3df203c8c2b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.14.4 Linux/6.18.26.1-microsoft-standard-WSL2
|
Release files / rekor_monitor_app7633-0.1.0-py3-none-any.whl
| Download URL | rekor_monitor_app7633-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8e5e0b3fe0795f3c76a3d979870e033f75019940c69f524edafe2f251d8c5d9
|
|
BLAKE2b-256 checksum How to use checksums |
058c5b728b099a5da4c5e94832245ec3d330506a0e71db4fd4a9a9e608235e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.14.4 Linux/6.18.26.1-microsoft-standard-WSL2
|
Security for rekor-monitor-app7633 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.