A poetry plugin for establishing chain of trust
Project description
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.
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
File details
Details for the file vet-0.1.1.post4.tar.gz
.
File metadata
- Download URL: vet-0.1.1.post4.tar.gz
- Upload date:
- Size: 46.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22915579241cabbd429812c83287fc8867fa05e1c1cbbfdd8a9fbbc79582d565 |
|
MD5 | 3b86664b6c9438553db6303ed3a87b96 |
|
BLAKE2b-256 | 0fe484066397b7bcc90d6021383f9ec6b0ed77d7a16f732c92dc4d19a75aff8f |
File details
Details for the file vet-0.1.1.post4-py3-none-any.whl
.
File metadata
- Download URL: vet-0.1.1.post4-py3-none-any.whl
- Upload date:
- Size: 49.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a9cf28406c656b92f95da2bf182887d5f1a8586c4878308cedf36f55cf822c |
|
MD5 | dbe8c4a1c44825936d8cfff1054486e2 |
|
BLAKE2b-256 | 1c342e74af29968a34d64e81d85d46722551a6b1ebbf93a4683a53e2705d8df7 |