-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hey @feynmanix! Thanks for making this tool; I think it's very cool!
I'm filing this as food for thought: another signal you can apply here is whether a distribution has attestations or not and, if so, whether they validate against a TOFU'd identity.
The easiest way to do this would be to establish a bit of local state: the first resolution/verification of an attestation for a package should cache that attestation's identity, and then subsequent resolutions/updates can verify against the cached identity (and emit a warning/advisory if the identity diverges). Similarly, if a previous resolution of a package has an attestation but a new resolution (i.e. a newer upload, not necessarily a higher version) is missing one, pipask could emit a warning/advisory about a potential downgrade attempt.
That's pretty high-level, since the details of attestations are non-trivial. However, I'd be happy to go into them and share some more resources if you're interested in this!