Commit graph

3274 commits

Author SHA1 Message Date
Vladimir Diaz
5a3f515c4a Use correct key import statements from rest_replay_attack.py 2016-06-28 16:54:53 -04:00
Vladimir Diaz
bd5b398ee4 Remove repository.status() (used for testing) from generate.py 2016-06-28 16:54:18 -04:00
Vladimir Diaz
b52876ac9f Sleep for a short amount of time in download.py's while loop to release CPU 2016-06-28 14:12:10 -04:00
Vladimir Diaz
2a9e4c28ad Add latest repository example and unit test fixes 2016-06-27 17:02:27 -04:00
Vladimir Diaz
80ade8f201 Minor fixes for key expiry and loading an rsa key in a test module 2016-06-17 16:05:25 -04:00
Vladimir Diaz
13bf2de347 Merge branch 'remaining-1.0-tasks' of github.com:vladimir-v-diaz/tuf into keyids_multihash_algorithms
Conflicts:
	tuf/formats.py
2016-06-17 10:11:44 -04:00
Vladimir Diaz
b777188a54 Update tests following the change to Ed25519 keys 2016-06-17 09:57:54 -04:00
Vladimir Diaz
8e0e5a19e8 Generate metadata following change to Ed25519 keys 2016-06-17 09:56:13 -04:00
Vladimir Diaz
c55f548551 Generate Ed25519 keys for tests/repository_data 2016-06-17 09:54:46 -04:00
Vladimir Diaz
4605f68af9 Raise tuf.Error when a public key is loaded (but a private one is expected). 2016-06-17 09:49:57 -04:00
Vladimir Diaz
45afab517f Set the expected default keyid in _get_keyid() 2016-06-17 09:44:40 -04:00
Vladimir Diaz
577e75a6aa Add support for key expiration 2016-06-13 12:21:09 -04:00
Vladimir Diaz
54f14552a5 Merge branch 'remaining-1.0-tasks' of github.com:vladimir-v-diaz/tuf into keyids_multihash_algorithms 2016-06-09 11:03:25 -04:00
Vladimir Diaz
8bd9ca8a8d Minor edits to PR #318 (prevent cycles when visiting roles) 2016-06-09 10:58:19 -04:00
Vladimir Diaz
b9e83a2e8a Fix conflict 2016-06-09 10:53:39 -04:00
Vladimir Diaz
a048ca1630 Merge branch 'tighten-preorder-dfs' of https://github.com/trishankkarthik/tuf into trishankkarthik-tighten-preorder-dfs 2016-06-09 10:49:11 -04:00
Vladimir Diaz
93a0d006c5 strip version / digest data that is prepended to filenames 2016-06-09 10:48:00 -04:00
Vladimir Diaz
ba0f9ca936 Initial changes for multihash keyid algorithms support on write 2016-06-08 16:49:13 -04:00
Vladimir Diaz
74dc8a138b Merge pull request #334 from chromakode/diplomat-readme-fix
Fix link to Diplomat paper in README
2016-05-31 17:34:44 -04:00
Max Goodman
9e699dfb23 Fix link to Diplomat paper in README 2016-05-31 14:09:13 -07:00
Vladimir Diaz
685e6a2d33 Proof of concept
Initial implementation: key IDs may be generated with multiple hash algorithms
2016-05-18 16:12:58 -04:00
Vladimir Diaz
005531d9eb Finish implementing test_key_revocation
Following the design change to roledb and keydb (where multiple repositories are supported), test_key_revocation is updated to verify that outdated clients (e.g., root keys that are no longer trusted) are able to perform a software update, detect new keys, etc.
2016-05-16 16:05:24 -04:00
Vladimir Diaz
1bf5aa2396 Add repository_name parameters to sig.py 2016-05-16 14:26:38 -04:00
Vladimir Diaz
cc6609f3f6 Implement remaining test conditions in test_roledb.py 2016-05-11 17:50:19 -04:00
Vladimir Diaz
ad08f499e9 Add missing unit test, and update tests in roledb.py to verify 'repository_name' argument 2016-05-11 16:57:46 -04:00
Vladimir Diaz
99062dc27a Minor edit to comment in test_keydb.py 2016-05-11 16:55:52 -04:00
Vladimir Diaz
8e4a036f56 Implement tests for create_roledb() and remove_roledb() 2016-05-09 18:00:28 -04:00
Vladimir Diaz
4b9f469230 Implement add and remove roledb functions to roledb.py 2016-05-09 17:28:43 -04:00
Vladimir Diaz
9d57139aee Implement remaining test functions for keydb.py 2016-05-09 16:31:37 -04:00
Vladimir Diaz
aa62fc5862 Verify the 'repository_name' argument in test_clear_keydb() 2016-05-09 15:10:42 -04:00
Vladimir Diaz
decfa5558e Expand test conditions in test_keydb.py to verify named repositories 2016-05-09 14:19:53 -04:00
Vladimir Diaz
34365bca51 Implement add and remove keydb functions to keydb.py 2016-05-09 14:18:46 -04:00
Vladimir Diaz
223993c43e Update test_keydb.py following refactoring of keydb.py
keydb.py was refactored to allow multiple sets of keys to be tracked
2016-05-06 17:33:18 -04:00
Vladimir Diaz
9d85b5f4b1 Update test_roledb.py following refactoring of roledb.py
refactored roledb.py to keep track of multiple sets of role info.
2016-05-06 16:54:45 -04:00
Vladimir Diaz
e3a1544070 Begin implementation changes to address issue with a global role and key database 2016-05-06 12:13:57 -04:00
Vladimir Diaz
d09d3a0678 Address Issue #332. Add test cases for the remaining roles of test_key_revocation.py 2016-04-28 11:00:57 -04:00
Vladimir Diaz
09163247b6 Initial integration test for key revocations 2016-04-28 09:02:58 -04:00
Vladimir Diaz
a8a8b13864 Initial changes for prepended digests and version numbers 2016-04-28 08:57:07 -04:00
Vladimir Diaz
d5d89ba16a Write and load consistent snapshots in 'filename.<digest or version #>.<ext>' format 2016-04-15 16:00:25 -04:00
Vladimir Diaz
e27371113f Update developer tool 2016-04-14 16:53:48 -04:00
Vladimir Diaz
6aac27e69c Fix typo 2016-04-14 11:31:02 -04:00
Vladimir Diaz
f2c3e09bf2 Fix remaining issues with previous implementation of _update_metadata_via_fileinfo() 2016-04-14 11:22:13 -04:00
Vladimir Diaz
c017173bfb Add function to update metadata via fileinfo (needed for root and snapshot). 2016-04-14 10:37:57 -04:00
Vladimir Diaz
3f42feba31 Add functions to update and detect fileinfo changes for root and snapshot 2016-04-14 09:08:57 -04:00
Vladimir Diaz
b8ce4bbfcd Implement changes to write and load the new format of snapshot.json
The repository tools should properly write and load consistent versions of root.json and snapshot.json.  Version numbers were previously prepended to these two roles.
2016-04-14 08:13:50 -04:00
Vladimir Diaz
c0958f11f2 Modify repository data to use new snapshot format
snapshot.json should list the hash(es) of root metadata, rather than version number
2016-04-14 08:11:34 -04:00
Vladimir Diaz
22b42e97b5 Remove obsolete method: refresh_targets_metadata_chain() 2016-04-06 10:54:45 -04:00
Vladimir Diaz
18844f6453 Initial refactor of developer tool 2016-04-05 20:23:37 -04:00
Vladimir Diaz
90d0d5c49a Fix remaining updater.py test failures 2016-04-05 20:12:31 -04:00
Vladimir Diaz
b0c86cacb4 Remove test condition for tuf.ForbiddenTargetError exception (has been removed) 2016-03-31 17:29:38 -04:00