Commit graph

1590 commits

Author SHA1 Message Date
Vladimir Diaz
0399e5ace8 Update tuf-spec.txt
Update specification following the changed behavior outlined in Issue #158.
2014-01-06 10:34:27 -05:00
dachshund
a6aba55605 WIP on spec. 2014-01-05 18:08:39 -05:00
dachshund
3fa84d7a58 WIP on spec. 2014-01-05 18:07:32 -05:00
Vladimir Diaz
bdef3756ef Update README.md
Update sections affected by Issue #100 changes.
2014-01-05 14:44:30 -05:00
vladdd
c39abf9e6c Update, test, and complete Issue #100 target methods.
Improve targets_of_role(rolename) behavior.  It now updates the minimum metadata needed for 'rolename'.
Ensure all_targets() adds targets in the expected order, where parent role targets come before children.
Minor updates to comments and docstrings.
2014-01-05 14:40:45 -05:00
vladdd
a2db039cf0 Update conf.py header and comments 2014-01-04 15:42:34 -05:00
vladdd
a9b27fc263 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-01-04 15:40:11 -05:00
vladdd
b5c640c128 Minor edits to previous commit.
Add docstring documentation for newly-added 'unsafely_update_root_if_necessary' argument.

Update comments.
2014-01-04 15:21:44 -05:00
Vladimir Diaz
5a7c8f3a47 Update README.md
Update documentation following Issue #165 changes.
2014-01-02 13:58:32 -05:00
vladdd
d5ca811eda Update libtuf-diagram.
Update the libtuf.py diagram following Issue #165 changes.
2014-01-02 13:57:52 -05:00
vladdd
f866da7cb8 Address Issues #165, #158, and #147.
Issue 147: Finalize conversion of all written metadata behavior.  This commit ensures that compressed and uncompressed metadata is also written as outlined in the issue.

Issue 158: As requested, updater.refresh() may now unsafely fetch (i.e., unknown file size and hash) Root metadata if valid top-level metadata cannot be downloaded successfully (e.g., top-level keys may have been revoked).  The repository must also sign the new Root file (at least until all clients have updated) with any revoked keys so that clients may successfully update.  After unsafely updating Root, the top-level metadata is updated again as normal (and only once to avoid an infinite loop).  By default, refresh() unsafely updates Root if only invalid top-level metadata can be downloaded, although this behavior may be overriden by the caller if they wish.  Changed default behavior: refresh(self, unsafely_update_root_if_necessary=True)

Issue 165: Delegated roles are no longer added as attributes of a Targets object by libtuf.py (e.g., repository.targets.delegated_role).  The previous bahavior restricted rolenames to Python identifiers (i.e., can only include letters, numbers, the underscore character, and must start with a nonnumeric character).  Now, delegated roles may be referenced as strings (e.g., repository.targets('recently-claimed')) and include characters other than '_'.  In addition, methods have been added to return all the delegated rolesnames of a target (e.g., repository.targets.get_delegated_rolenames()) and the immediate delegated Target objects of a role.  Previous behavior: repository.targets.unclaimed.django.version = 8
Current behavior: repository.targets('unclaimed')('django').version = 8.
2014-01-02 12:18:44 -05:00
Vladimir Diaz
0548eda896 Address Issue #147 in libtuf.py 2013-12-20 16:46:59 -05:00
Vladimir Diaz
2a61a80162 Update modules affected by the vendored ed25519 and update libtuf.py 2013-12-20 16:06:25 -05:00
Vladimir Diaz
4833898d27 Vendor ed25519 and address Issue #122
Fall back to the vendored version of ed25519 if 'pynacl' is not configured or not available.  If available, use pynacl to verify signatures on the client side.
2013-12-20 13:39:18 -05:00
Vladimir Diaz
8a805bdc3f Fix pycrypto_keys.py header block, libtuf.py doc update, and minor formats.py schemas edit 2013-12-20 12:47:27 -05:00
Vladimir Diaz
ba28237e42 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2013-12-19 14:10:25 -05:00
Vladimir Diaz
6cb230af21 Add whitespace to log messages and update the top-level role objects in libtuf.py 2013-12-19 14:10:03 -05:00
Vladimir Diaz
1a1f9ced49 Update README.md 2013-12-18 14:58:54 -05:00
Vladimir Diaz
246d2e7ece Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2013-12-18 14:57:24 -05:00
Vladimir Diaz
4647d4a01d Address Issue #120 2013-12-18 14:57:17 -05:00
Vladimir Diaz
6c7a758ff2 Update README.md 2013-12-18 14:16:27 -05:00
Vladimir Diaz
47c4364339 Update METADATA.md 2013-12-18 13:51:53 -05:00
Vladimir Diaz
4e8f5b1801 Update SECURITY.md 2013-12-18 13:36:20 -05:00
Vladimir Diaz
ba2a5dba13 Update SECURITY.md 2013-12-18 13:34:16 -05:00
Vladimir Diaz
ee2ce4c8a7 Update SECURITY.md 2013-12-18 13:30:32 -05:00
Vladimir Diaz
b64a905f07 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2013-12-18 13:25:13 -05:00
Vladimir Diaz
52e9e08a60 Move documentation to root directory 2013-12-18 13:24:53 -05:00
Vladimir Diaz
ec550ff3da Update README.md 2013-12-18 13:22:29 -05:00
Vladimir Diaz
89dbd38304 Initial metadata and security documentation 2013-12-18 13:21:49 -05:00
Vladimir Diaz
03dcb3fb1e Update the Targets methods in libtuf.py 2013-12-18 11:49:28 -05:00
Vladimir Diaz
4aee4bff95 Continue documentation updates to libtuf.py
Update _delete_obsolete_metadata(), _remove_invalid_and_duplicate_signatures(), and _check_role_keys().
2013-12-17 09:22:40 -05:00
Vladimir Diaz
d07d0b2139 Fix typo 2013-12-16 15:00:02 -05:00
Vladimir Diaz
d3abb07092 Update formats.py readability
Ensure consistent spacing in all SCHEMA definitions.
2013-12-16 14:57:48 -05:00
Vladimir Diaz
45c65c9178 Merge branch 'develop' into repository-tools 2013-12-16 14:22:31 -05:00
Vladimir Diaz
5c614f3d17 Add create_new_repository() docstring in libtuf.py 2013-12-16 14:20:09 -05:00
Vladimir Diaz
8199033207 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2013-12-16 13:40:13 -05:00
Vladimir Diaz
182368e973 Update README.md
Minor updated to comments.
2013-12-16 13:39:54 -05:00
Vladimir Diaz
d22c48fcb2 Add missing docstring to updater.py
Add missing docstring for refresh_targets_metadata_chain().
Minor updates to comments.
2013-12-16 13:38:38 -05:00
Vladimir Diaz
ac2192f228 Update README.md
Lines: Add simple integration example and its output.

Minor updates to comments.
2013-12-16 11:59:42 -05:00
Vladimir Diaz
026daacb7d Update README.md
Line 18:  Fix heading.
Lines 76-78: Expand comment on refresh().
Lines 81-83: Expand comment on all_targets().
Lines 103: Fix heading.
Lines 111-113: Add refresh_targets_metadata_chain() example.
115-116: Expand comment on refreshing target files and determining
the ones that have changed.
128: Add refresh() comment.
2013-12-16 10:48:03 -05:00
Vladimir Diaz
bf1c319f4a Update README.md
Line 41: Add sub-heading.
Lines 100-110: Add targets of role example.
Lines 113-123: Add downloading specific target file example.
2013-12-16 10:15:11 -05:00
Vladimir Diaz
18ce211ff4 Update README.md
Line 13: Fix typo.
Line 14: Add Bold text.
Lines 94-96: Add remove_obsolete_targets() example.
2013-12-16 09:48:58 -05:00
Vladimir Diaz
ae55f0a769 Add initial tuf.client.updater.py README documentation 2013-12-16 09:42:54 -05:00
Vladimir Diaz
d27543258e Update libtuf.py documentation and address issues #143 and #144
Add support for encrypted (and public ed25519 keys) TUF key files.
Add support for ed25519 keys, signatures, and key files in libtuf.py.
Update libtuf.py diagram.
Move canonical encoding operations to the create and verify key functions.
2013-12-16 08:45:40 -05:00
Vladimir Diaz
3ab19eeb7e Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop 2013-12-12 10:08: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
Vladimir Diaz
8b7745cb09 Add final comment+docstring updates to keys.py
Minor comment change to libtuf.py
2013-12-12 09:26:25 -05:00
Vladimir Diaz
7a08bad781 Continue documentation effort and fix outdated libtuf.py 2013-12-11 14:14:16 -05:00
Vladimir Diaz
79c0c5d90b Re-add generate_rsa_encrypted_pem 2013-12-09 12:46:45 -05:00
Vladimir Diaz
56bdd48b53 Add comments and re-add ed25519 to conf.py 2013-12-09 11:22:37 -05:00