vet
A poetry plugin for establishing chain of trust
Inspired by cargo-vet
Installation
Depending on how you installed poetry, you may need to install vet in a different way.
If you used the self-installer:
poetry self add vet
If you used pipx:
pipx inject poetry vet
If you used pip:
pip install vet
For more information and troubleshooting, see the poetry plugin installation docs.
Usage
Initialization
Initialize vet in your project:
poetry vet init
This will create a chain-of-trust directory in your project.
See the generated README for more information on how to configure vet.
Running checks
To audit your project dependencies, run:
poetry vet
Dependencies are trusted to be either safe to run or safe to deploy.
Upon initialization, all dependencies in the poetry.lock file are exempt, deemed safe to run.
To vet dependencies as safe to deploy, run:
poetry vet --safe-to-deploy
For an example of how to run vet in GitHub CI, see the ci.yml file in this repository.
Importing Audits
Modify the config.toml file as per the example in the generated README.
Then run:
poetry vet lock
This will download the audits from the trusted sources specified in the config.toml file and store them in the import.lock file.
Auditing
Audit dependencies manually by adding entries in the audits.toml file as per the example in the generated README.
Background
This was thrown together in an afternoon; after the xz backdoor I thought we need better visibility into our dependency trees.
Release files for vet 0.1.1.post4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vet-0.1.1.post4.tar.gz | 46.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vet-0.1.1.post4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 96.3 kB
Release files / vet-0.1.1.post4.tar.gz
| Download URL | vet-0.1.1.post4.tar.gz |
|---|---|
| Size | 46.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22915579241cabbd429812c83287fc8867fa05e1c1cbbfdd8a9fbbc79582d565
|
|
BLAKE2b-256 checksum How to use checksums |
0fe484066397b7bcc90d6021383f9ec6b0ed77d7a16f732c92dc4d19a75aff8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
|
Release files / vet-0.1.1.post4-py3-none-any.whl
| Download URL | vet-0.1.1.post4-py3-none-any.whl |
|---|---|
| Size | 49.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0a9cf28406c656b92f95da2bf182887d5f1a8586c4878308cedf36f55cf822c
|
|
BLAKE2b-256 checksum How to use checksums |
1c342e74af29968a34d64e81d85d46722551a6b1ebbf93a4683a53e2705d8df7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
|