Commit graph

45 commits

Author SHA1 Message Date
Vladimir Diaz
1c8f41b0c0 Update import statements of unvendored dependencies 2015-06-02 08:29:22 -04:00
Vladimir Diaz
4bcfead253 Review remainder of updater.py 2015-02-09 20:08:38 -05:00
Vladimir Diaz
a0ab601b7f Review up to download_target() 2015-02-09 16:04:40 -05:00
Vladimir Diaz
daf0d561b2 Review & edit updater.py up to __init__() 2015-02-06 14:55:01 -05:00
Vladimir Diaz
fdbc4e98a8 Cosmetic edits to updater.py 2015-02-05 14:22:25 -05:00
Vladimir Diaz
948b596fc7 Do not use logging.warn() - deprecated in Python 3 2015-02-04 17:55:30 -05:00
Vladimir Diaz
90a283d589 Add initial Python 2+3 compatibility 2015-02-04 17:45:24 -05:00
Vladimir Diaz
1d6f997e55 Do not capitalize the 'logger' variable name 2015-02-02 10:03:02 -05:00
Pankh
a2928d60b2 Exceptions updater in tuf.interposition.updater 2014-09-29 14:21:12 -04:00
Pankhuri Goyal
a514546187 Docstrings of tuf.interposition.updater completed 2014-08-04 16:18:53 -04:00
Pankhuri Goyal
1f9d7e6a70 Add exceptions to the methods of tuf.interposition.updater.Updater 2014-08-04 16:07:53 -04:00
Pankhuri Goyal
2a83d83ad7 Extend purpose of tuf.interposition.updater and change format style of Logger
format in Logger is changed to 'msg'+repr()
2014-08-04 14:18:43 -04:00
Pankhuri Goyal
9aacb66d41 Changes in error name in tuf.interposition.updater 2014-08-01 13:32:14 -04:00
Pankhuri Goyal
b1636a062a Change tuf.interposition.UpdaterController to tuf.interposition.updater.UpdaterController 2014-08-01 12:05:15 -04:00
Pankhuri Goyal
0514e66658 Made following changes in tuf.interposition.updater
Added comments in tuf.interposition.UpdaterController
Changed the code depending on configuration.hostname to configuration.network_location
2014-07-31 18:37:56 -04:00
Pankhuri Goyal
cb0ce7ee27 Removed tuf.interposition.utility file and added exceptions and Looger in interposition.updater 2014-07-30 14:18:36 -04:00
Pankhuri Goyal
070574d220 Add the purpose section and comments to all the funtions in the Updater class in tuf.interposition.updater 2014-07-14 17:14:08 -04:00
Pankhuri Goyal
dc263af83d Made changes to the purpose section of interposition/updater.py 2014-07-10 23:37:03 -04:00
Pankh
98acdb8bc0 Add purpose section and comments to interposition/updater.py 2014-07-10 20:34:03 -04:00
Pankh
0cda6d3d22 Add purpose and comments to interposition/updater.py 2014-07-10 18:56:47 -04:00
Pankhuri Goyal
a3e63a293c Add purpose section and comments to interposition/updater.py 2014-07-10 11:31:43 -04:00
pankh
31adb150be Add purpose section and comments to interposition/updater.py 2014-07-10 11:14:56 -04:00
Hardik Darji
f58113a673 Partial header block added 2014-06-19 12:24:13 -04:00
Vladimir Diaz
009ddd9f37 Rename top-level role and functions of repository_tool.py. Update documentation and diagram.
add_key() -> add_verification_key()
remove_key() -> remove_verification_key()
release.json -> snapshot.json
Update repository_tool-diagram.png
Update README following the renamed functions and release role changes.
Minor edits, such as removing lint left over from a previous merge conflict.
2014-01-29 11:26:56 -05:00
vladdd
298f52ddb8 Modify format of paths in metadata and minor fixes.
Allow leading os.sep for target and restricted paths listed in metadata.  Previously, '{repository directory}/targets/file.txt' was listed as 'file.txt' and unsuccessfully compared against '/', or the root-most targets directory.  Now, '/file.txt' & '/' and similar examples may be compared and verified.

Fix issue where a hashed bin with empty targets was flagged as invalid because its targets did not produce a path hash prefix that matched any of those listed in the parent role.  Uncovered with _ensure_all_targets_allowed().

Minor edits to code that compared paths and and used path separators.
2014-01-25 16:40:53 -05:00
vladdd
fbd7b147e8 Address Issues #151 and #156.
Adjust logger messages and levels.
Update use of tuf.conf variable so that it can be updated in code.
Update updater.py comments.
2014-01-18 18:37:27 -05:00
Vladimir Diaz
04221d3f0d Address issue #163.
Changed behavior:
Write metadata only if the uncompressed version has not been written, has changed, or if
compressed versions are missing (if requested).  Not only is re-saving unmodified metadata not ideal, it also forces a new version of the release file if compressed metadata is rewritten.  gzip attaches a timestamp to compressed files, which may cause compressed content to generate different digests if independently written.

Update libtuf.py comments.
Minor edit to docstrings of previous commit that addressed interposition issues.
2014-01-13 09:34:21 -05:00
Vladimir Diaz
b73393c214 Resolve issues #149 and #155.
Move 'tuf.client.updater.Updater.refresh()' call in interposition to its updater's __init__().  The refresh() was previously executed on every target request.

Add tuf.interposition.refresh() for integrations that may require a manual refresh of top-level metadata (rare).
2014-01-09 09:48:37 -05:00
Vladimir Diaz
70afb5d4f3 Add comment to the open() call in tuf.interposition.updater.py
Add link and explain why 'rb' mode is used rather than 'r'.  Prevent newcomers, or future edits, from mistakenly/accidently opening files in text mode.
2013-12-12 10:06:37 -05:00
dachshund
4eeb8575de Fix #139. 2013-11-28 10:59:07 -05:00
dachshund
3ec3b8bc05 Return interposition configurations. 2013-08-12 19:18:54 -04:00
dachshund
7936324dff Updaters now clean up after deconfiguration. 2013-08-12 17:29:57 -04:00
dachshund
3d61a05762 Correctly mock some HTTP headers. 2013-08-10 20:07:21 -04:00
dachshund
e76454b4ed Allow deconfiguration of interposition. 2013-07-01 15:59:15 +08:00
dachshund
7a38640964 Log interposition hits and misses. 2013-03-14 21:31:21 -04:00
dachshund
be1a52c159 Better error logging. 2013-03-14 20:42:31 -04:00
dachshund
2aea94c009 Follow Seattle coding style. 2013-03-08 21:02:45 -05:00
dachshund
3c70103174 Better modularization of Updater. 2013-03-07 17:53:48 -05:00
dachshund
56e30797cc Some documentation edits. 2013-03-06 21:39:09 -05:00
dachshund
31b97634b4 Allow users to require SSL certificate verification during interposition. 2013-03-04 19:54:41 -05:00
dachshund
033a573819 Paranoid checks of configurations in order to prevent interposition cycles. 2013-03-04 13:01:52 -05:00
dachshund
8281d3b9dc Double check network location during updates. 2013-03-04 10:51:36 -05:00
dachshund
c7bb17a035 Import a (missed) module. 2013-03-04 09:40:47 -05:00
dachshund
c034d33a2e Avoid interposition cycles with a simple restriction. 2013-03-04 01:04:25 -05:00
dachshund
b1cf9538ec Better modules for interposition. 2013-03-04 00:43:02 -05:00