Commit graph

353 commits

Author SHA1 Message Date
dachshund
3d340de4e8 Recognize a possible endless data attack in the form of invalid JSON metadata. 2013-09-08 02:31:50 -04:00
dachshund
9f1e4f60e9 Address comments from 01db53dac6. 2013-09-08 02:14:22 -04:00
dachshund
dc504f0395 Better output in slow retrieval test. 2013-09-08 02:00:45 -04:00
dachshund
01db53dac6 A way to mitigate #42. 2013-09-08 00:32:09 -04:00
dachshund
14364d01c7 A few fixes for the updater unit test. 2013-09-07 20:21:45 -04:00
dachshund
0c80f27cad Fix a bug. 2013-09-07 19:57:09 -04:00
dachshund
c259b3edcb Processes must wait longer for the slow retrieval test. 2013-09-07 18:33:04 -04:00
dachshund
d92860c800 Disable console logging in system tests. 2013-09-07 18:04:58 -04:00
dachshund
df9d9a9ad1 Fix a variable shadow bug in tuf.log. 2013-09-06 19:25:43 -04:00
dachshund
5b1daa5293 Correctly check metadata of both compressed and uncompressed files. 2013-09-06 19:08:57 -04:00
dachshund
e7704355a9 Rename UpdateError exception to NoWorkingMirrorError. 2013-09-06 16:58:18 -04:00
dachshund
54cab17f0a Document new functions in updater. 2013-09-06 16:34:27 -04:00
dachshund
3b6bb586e2 Remove unnecessary code from test_updater. 2013-09-06 15:22:32 -04:00
dachshund
558b1f0d82 Try fix for updater unit test. 2013-09-06 14:46:48 -04:00
dachshund
954f0558f6 Shorter code. 2013-09-06 14:43:15 -04:00
dachshund
e64e938d21 Fix a couple of bugs.
Read file before it is closed.
Remove incorrect slow retrieval defense.
2013-09-06 14:38:30 -04:00
dachshund
6b58670d28 Better metadata verification. 2013-09-06 13:25:46 -04:00
dachshund
7ab75fa531 Remove MetadataNotAvailableError. 2013-09-06 11:17:33 -04:00
dachshund
c47f9e6283 Some WIP hacks for updater. 2013-09-05 18:13:11 -04:00
dachshund
6273120e47 Merge branch 'refactor-download-update' into demo2
Conflicts:
	tuf/client/updater.py
2013-09-05 17:57:47 -04:00
dachshund
e799b9ccb3 Merge branch 'develop' into refactor-download-update 2013-09-05 17:55:30 -04:00
dachshund
ab4558f7e0 Merge branch 'develop' into path_hash_prefix 2013-09-05 17:53:01 -04:00
dachshund
168bd00130 WIP on refactoring the updater and downloader. 2013-09-05 15:44:29 -04:00
dachshund
9acc102977 Adapt the updater unit test against latest changes. 2013-09-05 00:23:23 -04:00
dachshund
2d58aeee43 Merge with updater/download refactoring from @zanefisher.
Update download unit test to work after refactoring, but it is a little
incomplete (in particular, the unsafe_download function needs more testing).
2013-09-04 23:45:08 -04:00
dachshund
ab42c5e074 Merge branch 'refactor-download-update' of https://github.com/zanefisher/tuf into refactor-download-update 2013-09-04 22:58:17 -04:00
dachshund
6475a36e21 Merge https://github.com/zanefisher/tuf into refactor-download-update 2013-09-04 22:53:32 -04:00
zanefisher
3db934e81a Refactor client.updater, removing verification from download.py. 2013-09-04 20:12:51 -04:00
dachshund
da5b9e0999 Replace generic exception with a specific one. 2013-09-04 17:29:06 -04:00
dachshund
16d971da0e Add some exceptions for more fine-grained exception handling. 2013-09-04 16:48:38 -04:00
dachshund
9ff22ddd4e Revert "Check out my cool code."
This reverts commit 7497502087.
2013-09-03 18:11:48 -04:00
dachshund
7497502087 Check out my cool code. 2013-09-03 18:11:00 -04:00
dachshund
d6d8257349 Merge branch 'develop' into refactor-download-update
Conflicts:
	tuf/tests/aggregate_tests.py
	tuf/tests/test_signercli.py
	tuf/tests/test_signerlib.py
	tuf/tests/test_updater.py
2013-09-03 13:06:32 -04:00
dachshund
63fa51ac20 Merge #99. 2013-09-03 12:52:47 -04:00
vladdd
471aedb5a1 Merge branch 'zanefisher-fix_tests' into develop 2013-08-30 14:59:45 -04:00
vladdd
19fae3c908 Review Zane's unit test fixes and resolve merge conflicts 2013-08-30 14:58:41 -04:00
vladdd
55c343394a Review Zane's unit test fixes and resolve merge conflicts 2013-08-30 14:56:33 -04:00
dachshund
13123f39aa Merge #96. 2013-08-28 16:40:13 -04:00
dachshund
4b555f6c1d Merge branch 'develop' into refactor-download-update
Conflicts:
	tuf/client/updater.py
	tuf/tests/test_download.py
	tuf/tests/test_updater.py
2013-08-28 13:44:21 -04:00
zhengyuyu
dcae72c19d delete signal import 2013-08-28 05:53:00 -04:00
zhengyuyu
6638089b99 Fix the slow retrieval attack issue
download.py:Add a timeout and rewrite the _fileobject.read()

test_slow_retrieval_attack.py:Add a new kind of slow retrieval attack

slow_retrieval_server.py:Modification for new kind of slow retrieval attack
2013-08-28 05:43:47 -04:00
ttgump
2048a3eccb Update fix for endless-data-attack test. 2013-08-27 17:02:42 -04:00
ttgump
978b83cb57 Merge remote-tracking branch 'upstream/develop'
Conflicts:
	tuf/tests/system_tests/test_endless_data_attack.py
2013-08-27 15:59:32 -04:00
dachshund
fe84ae3fdb Undo a line in tuf.log. 2013-08-27 15:22:08 -04:00
dachshund
fd39de6665 Import chain-of-trust function from @vladdd. 2013-08-27 15:13:55 -04:00
dachshund
1b21791961 Merge branch 'chain-of-trust' into path_hash_prefix 2013-08-27 14:54:06 -04:00
dachshund
e972e16872 Merge branch 'develop' into chain-of-trust
Conflicts:
	tuf/log.py
2013-08-27 14:53:33 -04:00
dachshund
4ab867efda Merge branch 'develop' into path_hash_prefix 2013-08-27 14:52:24 -04:00
zanefisher
4a85d4bba8 Make aggregate tests randomization optional. 2013-08-26 15:35:28 -04:00
zanefisher
4654f9b4a2 Removed stray debug code. 2013-08-26 14:25:25 -04:00