-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tuf repositoty #561
base: master
Are you sure you want to change the base?
Commits on Aug 28, 2024
-
Update tuf, securesystemslib and cryptography deps
Remove unused pyopenssl Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 60b8fa9 - Browse repository at this point
Copy the full SHA 60b8fa9View commit details -
Add alternative TUF metadata repo implementation
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: - create - add_target_files - add_keys Can be tested with: ``` PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest --noconftest taf/tests/tuf/ ``` More detailed usage docs + migration path TBD... Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f62907e - Browse repository at this point
Copy the full SHA f62907eView commit details -
Change create and add_keys API to take signers
The original design aimed at separating the concepts of delegation (adding public keys) and signing (using private keys). Since the MetadataRepository assumes that metadata can be signed rightaway after edit (e.g. after having added a delegation), which in turn requires private keys to be available, we might as well conflate these two concepts. The advantage is that the signer cache does not have to be managed independently and is more likely to stay in sync with the delegations. Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ad2b58f - Browse repository at this point
Copy the full SHA ad2b58fView commit details -
Make sure targets is signed on add key
Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b46645b - Browse repository at this point
Copy the full SHA b46645bView commit details -
Assert keytype rsa in taf.tuf.keys helper
This should really happen upstream (see linked issue) Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33750eb - Browse repository at this point
Copy the full SHA 33750ebView commit details -
Add signer implementation for Yubikeys
YkSigner provides a minimal compatibility layer over `taf.yubikey` module functions for use with MetadataRepository. Even though a yubikey signer implementation (HSMSigner) based on pykcs11 is available in securesystemslib, YkSigner was added for the following reasons: - TAF requires rsa support for yubikeys, but HSMSigner only supports ecdsa. Adding rsa support to HSMSigner, or providing a custom pykcs11-based RSAHSMSigner is feasible, and seems desirable, but requires more effort than this YkSigner did. - TAF provides a few additional features, like setting up a Yubikey, changing pins, etc., which will not be added to securesystemslib. This means the current Yubikey infrastructure based on yubikey-manager needs to be preserved for the time being. Thus it made sense to re-use the existing implementation for YkSigner. - YkSigner show-cases the new Signer API and might be used as blue print for future Signer implementations in TAF. This commit adds basic tests with fake and real Yubikey: ``` REAL_YK=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ pytest --noconftest taf/tests/tuf/ taf/tests/tuf/test_yk.py -s ``` Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 42fbfac - Browse repository at this point
Copy the full SHA 42fbfacView commit details -
Comment out legacy imports (WIP)
This allows running previously added YkSigner tests, but breaks other things, which need change anyway in the course of upgrading to latest tuf/securesystemslib. Signed-off-by: Lukas Puehringer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 25371d7 - Browse repository at this point
Copy the full SHA 25371d7View commit details
Commits on Oct 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec294a8 - Browse repository at this point
Copy the full SHA ec294a8View commit details -
Merge pull request #512 from lukpueh/tuf-upgrade
Add alternative TUF metadata repo implementation (WIP)
Configuration menu - View commit details
-
Copy full SHA for 70927b7 - Browse repository at this point
Copy the full SHA 70927b7View commit details -
feat: moved get threshold to the new repository class, implement dele…
…gated role lookup
Configuration menu - View commit details
-
Copy full SHA for 9bf3fb9 - Browse repository at this point
Copy the full SHA 9bf3fb9View commit details
Commits on Oct 30, 2024
-
refact: move get expiration date, get all targets and check expiratio…
…n dates to the new repository class
Configuration menu - View commit details
-
Copy full SHA for c7be3cb - Browse repository at this point
Copy the full SHA c7be3cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7601b9b - Browse repository at this point
Copy the full SHA 7601b9bView commit details
Commits on Oct 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b8d247e - Browse repository at this point
Copy the full SHA b8d247eView commit details -
refact: extend creation of repositories using the new TUF, added supp…
…ort for delegations
Configuration menu - View commit details
-
Copy full SHA for ade9af1 - Browse repository at this point
Copy the full SHA ade9af1View commit details
Commits on Nov 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f1c1b6c - Browse repository at this point
Copy the full SHA f1c1b6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea05769 - Browse repository at this point
Copy the full SHA ea05769View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9857d0 - Browse repository at this point
Copy the full SHA c9857d0View commit details
Commits on Nov 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b7eb34a - Browse repository at this point
Copy the full SHA b7eb34aView commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ccb94b8 - Browse repository at this point
Copy the full SHA ccb94b8View commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 43af588 - Browse repository at this point
Copy the full SHA 43af588View commit details -
refac, test: move get_all_target_files_state to the new repository cl…
…ass and added tests
Configuration menu - View commit details
-
Copy full SHA for feb7b53 - Browse repository at this point
Copy the full SHA feb7b53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3202900 - Browse repository at this point
Copy the full SHA 3202900View commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for af59138 - Browse repository at this point
Copy the full SHA af59138View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51d63c9 - Browse repository at this point
Copy the full SHA 51d63c9View commit details
Commits on Nov 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e57b8e3 - Browse repository at this point
Copy the full SHA e57b8e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for abeaa2c - Browse repository at this point
Copy the full SHA abeaa2cView commit details
Commits on Nov 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f3bc1f7 - Browse repository at this point
Copy the full SHA f3bc1f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2681d4a - Browse repository at this point
Copy the full SHA 2681d4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d67dd5 - Browse repository at this point
Copy the full SHA 0d67dd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7d3eb - Browse repository at this point
Copy the full SHA ba7d3ebView commit details
Commits on Nov 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ea93127 - Browse repository at this point
Copy the full SHA ea93127View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4122100 - Browse repository at this point
Copy the full SHA 4122100View commit details -
Configuration menu - View commit details
-
Copy full SHA for e21edfd - Browse repository at this point
Copy the full SHA e21edfdView commit details
Commits on Nov 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d9e5cc0 - Browse repository at this point
Copy the full SHA d9e5cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67fbc2b - Browse repository at this point
Copy the full SHA 67fbc2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1cd853 - Browse repository at this point
Copy the full SHA c1cd853View commit details
Commits on Nov 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7fe4d2f - Browse repository at this point
Copy the full SHA 7fe4d2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e77210b - Browse repository at this point
Copy the full SHA e77210bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 947f1e4 - Browse repository at this point
Copy the full SHA 947f1e4View commit details
Commits on Nov 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5c56ede - Browse repository at this point
Copy the full SHA 5c56edeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c92c39b - Browse repository at this point
Copy the full SHA c92c39bView commit details