Commit graph

88 commits

Author SHA1 Message Date
Vladimir Diaz
1c8f41b0c0 Update import statements of unvendored dependencies 2015-06-02 08:29:22 -04:00
Vladimir Diaz
fb7dfaa6e6 Update README.md
Fix link to pip over TUF document.

@asm582: Thank you for reporting the broken link.
2015-05-03 15:36:43 -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
7d91e6e225 Add docstring header to __init__.py and TODOs 2015-02-06 14:49:27 -05:00
Vladimir Diaz
fdbc4e98a8 Cosmetic edits to updater.py 2015-02-05 14:22:25 -05:00
Vladimir Diaz
e2a4d9fe2c Test interposition with real example and fix issues encountered
Fix issues with 'configuration' variable name and incorrect reference to 'six.moves.urllib.request.Request'.
2015-02-05 14:22:01 -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
Vladimir Diaz
cb06aee960 Reviewed and edits configuration.py
Add missing docstring labels (to be fully populated in a future pull request that includes unit tests and that validates arguments.
Add missing header block.
Renamed 'Logger' object to 'logger, to be consistent with the rest of the modules.
Minor formatting edits.
2015-01-30 14:05:56 -05:00
Vladimir Diaz
9887bb976d Re-add option 2 example of interposition 2015-01-30 11:37:25 -05:00
Vladimir Diaz
705d396dff Review and make minor edits to __init__.py 2015-01-30 11:33:07 -05:00
Vladimir Diaz
2efe923c8d Edit interposition text 2015-01-29 17:18:58 -05:00
Pankh
ee1331205e Add tuf.interposition.refresh in tuf.interposition.README.md 2014-11-10 13:57:47 -05:00
Pankh
c0f1936faf Add tuf.interposition.refresh in tuf.interposition.README.md 2014-11-10 13:52:36 -05:00
Pankh
045e7c4bcd Remove unnecessary explanation from README.md 2014-10-22 14:52:22 -04:00
Pankh
a2928d60b2 Exceptions updater in tuf.interposition.updater 2014-09-29 14:21:12 -04:00
Pankhuri Goyal
1a5a746df2 Add purpose to tuf.interposition.README 2014-08-04 17:24:42 -04:00
Pankhuri Goyal
ccaa3ad648 Add purpose to tuf.interposition.README 2014-08-04 17:18:39 -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
d2bb3cb136 Changes in error name in tuf.interposition.configuration 2014-08-01 13:41:48 -04:00
Pankhuri Goyal
750b9b3bea Changes in error name in tuf.interposition.__init__ 2014-08-01 13:40:08 -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
513e051296 Changes in tuf.interposition.configuration
Instead of making a set of repositiory mirror hostname,
a set of repository mirror network location is created.
2014-07-31 18:43: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
97d88d29c2 Removed the repeated sentences in comments in tuf.interposition.__init__ 2014-07-31 18:32:02 -04:00
Pankhuri Goyal
da7a8faa49 Few changes in tuf.interposition.__init__
Made few changes after adding InvalidConfiguration Exception into tuf.__init__
Also made changes in comments
2014-07-31 18:24:44 -04:00
Pankhuri Goyal
ca81096c8c Remove Logger from configuration.py and add Python 3 compatibility 2014-07-30 14:48:46 -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
JustinCappos
a6ca35622a Update README.md 2013-11-05 19:41:07 -05:00
dachshund
1efc1ee5b9 Remove console logging from the wrong place. 2013-09-09 16:05:51 -04:00