Commit graph

1590 commits

Author SHA1 Message Date
vladdd
c1cdb2e8ff Merge remote-tracking branch 'upstream/develop' into develop 2014-03-08 17:56:57 -05:00
vladdd
845b98fda1 Modify installation setup.
Support the following installation setup:
# Minimal install intended for clients (pure Python, only ed25519 signatures).
pip install tuf

# Optional installation required by the TUF repository tools (RSA keys and rsassa-pss
# signatures, faster ed25519 cryptographic computations, general-purpose cryptography, etc.)
pip install tuf[tools]

Re-implement the fix for issue #167.

Update comments and docstrings related to the fixes above.
2014-03-08 17:56:40 -05:00
Vladimir Diaz
69d9f4e0e7 Update README.md
Fix broken repository tool diagram link.
2014-03-08 13:15:46 -05:00
vladdd
e3f067d673 Add note to requirements file. 2014-03-07 23:44:39 -05:00
vladdd
9249f8639b Address issues #175 and #176. Update installation modules.
Add setuptools' find_packages() to avoid repeated updates to the list of packages.
Add setup() arguments, such as classifiers (Trove classifiers used for project classification and searching), keywords, and extra requirements.
Add pip requirements installation file.
Update supported tuf installation options:
Installing from pip and installing an extras requirement (pip install tuf[fast_ed25519]).
2014-03-07 23:36:32 -05:00
vladdd
2d015797ef Update affected ed25519 modules.
Update modules affected by the changes made to the latest versions of pyca-ed25519 and pyca-pynacl:
Do not use the unsafe key and signature generation functions of pure python ed25519, but do support the signature verification routine.  Developers must use the faster and secure pynacl+libsodium to generate ed25519 keys and signatures.

Temporarily suppress pynacl's import warning error.

Minor edits to comments and code.
2014-03-07 23:21:54 -05:00
vladdd
406f5b0187 Address issues #175 and #176. Update pyca-ed25519.
Update the vendor'd pyca-ed25519 to the latest version: https://github.com/pyca/ed25519
2014-03-07 22:55:53 -05:00
Vladimir Diaz
b05080d365 Merge pull request #185 from vladimir-v-diaz/develop
Remove find-code.sh
Note: We are replacing find-code.sh because git-grep does the same, and more. Also, a development script unrelated to TUF should probably not be included in the source. Developers who may modify the source are likely to have their preferred way of doing things.
2014-03-06 10:21:11 -05:00
Vladimir Diaz
7cb555d2b8 Remove find-code.sh
git-grep:
http://git-scm.com/docs/git-grep
http://travisjeffery.com/b/2012/02/search-a-git-repo-like-a-ninja/
2014-03-06 08:13:51 -05:00
Vladimir Diaz
a479a48c2a Merge pull request #170 from theupdateframework/repository-tools
Thanks given to Trishank, Santiago, Justin, Zane, Monzur, Lai, Dennis, and the appsec students for reviewing & testing the changes made in this pull request.
2014-03-05 20:35:19 -05:00
vladdd
e9da58328b Update repository_tool-diagram.png and comments.
Minor updates to comments of the previous repository_tool.py commit.
Update repository_tool-diagram.png to list disable_console_log_messages().
Rename disable_console_messages().
2014-03-05 19:40:05 -05:00
Vladimir Diaz
d92b78b971 Update tuf-spec.txt
Update section on supported cryptographic signatures.
Add some whitespace to improve readability.
2014-03-05 12:20:44 -05:00
Vladimir Diaz
c1f9c86ad7 Log warning messages when sharing keys.
repository_tool.py methods that add keys to roles should also log a warning if it detects a shared key.
Add a console handler, and a function to disable it, to repository_tool.py.
Update _delete_obsolete_metatadata() docstring and comments in repository_tool.py.
2014-03-05 11:38:23 -05:00
vladdd
b30e43c98b Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-03-03 14:55:08 -05:00
vladdd
1a17ac9db2 Update repository_tool.py and util.py.
Rename the unused 'json_object' variable in util.py.

Roles are allowed to share verification keys.  Update repository_tool.py so that the targets role can successfully load an already recognized key when loading a repository.  Reported by Santiago.
2014-03-03 14:53:21 -05:00
Vladimir Diaz
416d39bfc8 Update tuf-spec.txt
Address issue #179
Lines 800, 803: (root|timestamp).digest.json -> digest.(root|timestamp).json
2014-02-26 09:33:09 -05:00
Vladimir Diaz
22aeff2c6a Update README.md
Add purpose section header.
Consistent snapshot section: file attributes (archive, hidden, access?) -> file hash.
2014-02-26 08:38:22 -05:00
vladdd
784b3bcf46 Update modules reviewed by Monzur.
Update keys.py and pycrypto_keys.py following Monzur's code review.
Update affected modules.
2014-02-25 20:33:48 -05:00
vladdd
595b6ae81f Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-02-24 23:09:02 -05:00
vladdd
6207d62db3 Update repository_tool.py.
Properly strip (again) the digest prepended to 'digest.filename' files.
The required '+1' appears to have been accidentally deleted in a recent commit:
298f52ddb8 (diff-59d384d80d746c800b16c8387756c0ccL2750)
Thanks to Santiago for locating the bug.
2014-02-24 23:08:29 -05:00
Vladimir Diaz
511382be36 Update README.md
Add Table of Contents.
Add documentation for the Consistent Snapshots section.
2014-02-24 16:35:57 -05:00
vladdd
a73dbaa395 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-02-24 12:14:45 -05:00
vladdd
512d24dadc Modify load_signing_key() exception message.
The previous exception raised when a non-signing key is loaded may be misinterpreted:
tuf.Error: The private key is unavailable.

Changed to: This is not a private key.
2014-02-24 12:14:24 -05:00
Vladimir Diaz
08c41bd946 Update README.md
Lines 204-213: Update comments for get_filepaths_in_directory() and add_targets() examples.
2014-02-24 11:59:38 -05:00
Vladimir Diaz
643ab34b31 Update README.md
Fix write() parameter in the Consistent Snapshots section.
consistent_snapshots -> consistent_snapshot
2014-02-24 10:54:17 -05:00
vladdd
77dfbc34bc Raise exception if key not found in the key-removal methods.
Santiago's request:  The key-removal methods in repository_tool.py should raise an exception if the key argument has not been previously loaded.  They previously returned silently if the key was not found.
2014-02-21 12:16:56 -05:00
Vladimir Diaz
b22b769d41 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-02-19 09:13:20 -05:00
Vladimir Diaz
73adff9edf Update format_rsakey_from_pem() in keys.py.
Update repository_tool.py and keys.py functions that import rsa publickey files.  Perform a simple check of the PEM string so that an improperly formatted PEMis detected sooner.  Reported by Santiago.
2014-02-19 09:13:01 -05:00
Santiago Torres
982704cf07 Clean up of some commented lines 2014-02-18 11:36:23 -05:00
Santiago Torres
9b5a18527d Added the layout_type variable, fixed some stability issues
The layout_type flag is used to decide whether a regular directory
structure is going to be used. This means, that if the targets folder is
under the metadata_directory tree or not. This flag lets the project
module decide in which places to locate metadata (i.e. if it needs a
metadata subdirectory or not).

Also fixed stability issues, in which the delegated target files didn't
lose their prefix.
2014-02-17 23:50:42 -05:00
Santiago Torres
3329428041 Merge branch 'repository-tools' of github.com:theupdateframework/tuf into developer-tools 2014-02-14 15:52:20 -05:00
Santiago Torres
b48741e1d7 Added thin wrappers for the key and delegation management functions 2014-02-13 17:10:15 -05:00
Vladimir Diaz
3e9ac96454 Update README.md
Modify the exception raised by repository.write() in the `Create Root` section.
2014-02-13 13:16:16 -05:00
Vladimir Diaz
636dfefce0 Update repository_tool.py.
Exclude the invalid metadata object included when a repository.write() exception is raised.
2014-02-13 13:15:35 -05:00
Vladimir Diaz
637d7af5a2 Merge branch 'repository-tools' of https://github.com/theupdateframework/tuf into repository-tools 2014-02-13 12:10:28 -05:00
Vladimir Diaz
00c69116aa Implement key format requested in issue #171.
Exclude the 'private' attribute from metadata key objects, and when calculating keyids.
2014-02-13 12:10:12 -05:00
Vladimir Diaz
a6c3b447d4 Update tuf-spec.txt 2014-02-13 12:10:08 -05:00
Vladimir Diaz
a357859919 Update repository_tool.py.
Raise exception if signature not found in remove_signature().
Minor edits to comments and whitespace.
2014-02-13 10:03:25 -05:00
Vladimir Diaz
9078814fe5 Update repository_tool.py.
Add missing comments for three of the arguments in generate_snapshot_metadata()'s docstring.
Expand docstring comment in non-public function and mention that temporary metadata is generated to a temporary location.
Minor cosmetic changes.
2014-02-13 08:56:54 -05:00
Santiago Torres
5e25deb859 Added a soft wrapper for the add_target
Added the 'project.add_target()' function, that points to the
project._targets.add_target() method.
2014-02-11 22:02:43 -05:00
Santiago Torres
086c3134e8 Fixed some format issues with the docstrings 2014-02-11 21:39:14 -05:00
vladdd
cdaacb9da3 Update tuf-spec.txt.
Incorporate recent design changes, such as a role name change, supported signature schemes, and expected metadata extension.
Fix for issue #171.
2014-02-07 22:39:41 -05:00
vladdd
57e42f0072 Fix updater.py typo. 2014-02-05 09:47:32 -05:00
Vladimir Diaz
b84225f3e7 Add disclaimer for deprecated latex documents. 2014-02-04 08:37:33 -05:00
Vladimir Diaz
0e100a9aac Update README.md.
Update the expected use of the repository_tool.py module and list the modules that may be used in TUF integrations, which the repository tool does not handle.Rewrite the sentence that mentions the integration tools so that it does not appear to be out of context.
2014-02-04 08:24:21 -05:00
vladdd
75c7ea5138 Update test_extraneous_dependencies_attack.py.
Remove text inserted and improperly removed from a previous merge conflict.
2014-02-03 12:45:17 -05:00
vladdd
e92cf75f5a Update METADATA.md.
Re-word sentence and update outdated rolenames.  Add note about out-of-date metadata content and names in the listed examples.
2014-02-03 12:43:10 -05:00
Santiago Torres
2ab9be71a9 Added the load project function
Load_project(path) now loads a projects metadata and builds the
corresponding object. Methods to save supporting metadata in the
project.cfg file were also refined
2014-01-31 22:02:28 -05:00
vladdd
a22099699e Resolve remaining unit test failures.
Update the remaining unit tests following the many design changes.  The unit tests should next be factored to use repository_tool.py, avoid pseudo repositories and repository objects, monkey patching, etc.
2014-01-31 14:47:48 -05:00
Santiago Torres
5d641ef4db Merge branch 'repository-tools' of github.com:theupdateframework/tuf into developer-tools 2014-01-30 19:24:06 -05:00