openlawlibrary / taf

The Archive Framework
GNU Affero General Public License v3.0
10 stars 10 forks source link

Add alternative TUF metadata repo implementation (WIP) #512

Closed lukpueh closed 3 weeks ago

lukpueh commented 3 months ago

Implements basic primitives, defined by the python-tuf Repository abstraction, to read and edit metadata on disk, handling version and expiry bumps, and signature creation, and facilitating snapshot and timestamp creation.

And adds exemplary API methods that use these primitives while preserving consistent repo states:

Can be tested with:

PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest --noconftest taf/tests/tuf/

More details about the design, and recommendations for how to move on from here can be found in this Google doc.

lukpueh commented 2 months ago

I just pushed YkSigner, which provides a minimal compatibility layer over taf.yubikey module functions for use with MetadataRepository.

See 42fbfac commit message for details.

Notes about tests: