Commit graph

92 commits

Author SHA1 Message Date
Vladimir Diaz
ab1ef7252e
Improve the help descriptions and usage comments
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-08 16:54:05 -05:00
Vladimir Diaz
1fbedb249a
Handle case where --key does not have a filename to write to
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-06 15:47:59 -05:00
Vladimir Diaz
cca9f283e3
Add --key option to repo.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-06 14:38:24 -05:00
Vladimir Diaz
7a845ae264
Add --sign command-line option
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 17:20:13 -05:00
Vladimir Diaz
8f65fa4154
Rename license files in modules
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 11:31:19 -05:00
Vladimir Diaz
e479aa9609
Support directories with --add in repo.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-02 15:36:57 -05:00
Vladimir Diaz
6a7db797d5
Remove print statement for parsed argument
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-01 14:59:42 -05:00
Vladimir Diaz
fb61f1fee9
Refactor constants and enable --path with --add
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-01 14:59:12 -05:00
Vladimir Diaz
29f168cd6d
Add --path option and have --init and --clean use it
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-01 13:44:39 -05:00
Vladimir Diaz
de32fc5939
Remove get_password from repo.py and use securesystemslib.interface.get_password()
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-31 16:13:34 -05:00
Vladimir Diaz
9d3981b485
Refactor --pw
The password prompt is handled outside of the add_argument(); the type=callable wasn't working as expected

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-30 15:09:58 -05:00
Vladimir Diaz
b13b7be7c6
Add option to use non-default password when encrypting keys
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-30 12:18:36 -05:00
Vladimir Diaz
21901837ef
Minor revision to comments
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-29 17:05:39 -05:00
Vladimir Diaz
812a395f75
Switch to argparse, modify command-line behavior, revise
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-29 17:05:01 -05:00
Vladimir Diaz
22df479392
Refactor constants and remove incomplete options
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-29 15:25:19 -05:00
Vladimir Diaz
585469abbc
Implement --add
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-29 14:46:44 -05:00
Vladimir Diaz
7ae1fd50eb
Implement --clean option
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-26 17:09:51 -05:00
Vladimir Diaz
3ef732fa3a
Implement first cut of --init option
Refactor function names.
Remove commented argument options.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-26 16:23:17 -05:00
Vladimir Diaz
2b177d91d6
Edit --bare and --consistent_snapshots argument
The corresponding settings should be enabled if the user specifies these arguments

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-26 11:19:16 -05:00
Vladimir Diaz
70c4383c22
Use argparse instead of optparse
Begin implementing --init, --verbose, --consistent_snapshots, and --bare CLI options

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-25 16:55:34 -05:00
Vladimir Diaz
d7bb67b8c4
Initial edit of client script
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-24 17:31:42 -05:00
Vladimir Diaz
78e73d72f4
Add repo.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-24 17:26:57 -05:00
Vladimir Diaz
1d92515e45
Add copyright, license, and __name__ == '__main__':
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-13 15:14:33 -05:00
Vladimir Diaz
9294630307
Fix SystemRandom() call and add comment for chosen port range
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-13 15:03:55 -05:00
Vladimir Diaz
798f4ee08b
Fix link to SimpleHTTPServer
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-13 13:53:24 -05:00
Vladimir Diaz
31c73a52b8
Resolve Bandit warning for use of random module
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-11 15:09:26 -05:00
Vladimir Diaz
65a9a7c267
Resolve conflicts
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-11 13:24:19 -05:00
Vladimir Diaz
3894bc4e31
Add copyright and license info to module files
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:23:38 -05:00
Vladimir Diaz
d781f03e85
Remove tufcli.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-16 12:04:10 -05:00
Vladimir Diaz
cf84d3f51f Add simple_server.py as a script to make testing easier 2017-02-15 15:07:36 -05:00
Vladimir Diaz
a8e3b01171 Fix import statements in basic_client.py 2017-01-13 11:34:41 -05:00
Jerry Trieu
234f873cc0 Fix import simple_settings in basic_client.py 2017-01-11 15:22:29 +01:00
Vladimir Diaz
4135487c2d Make cosmetic changes and import expected tuf.ssl_commons.exceptions module 2016-11-09 14:46:05 -05:00
Vladimir Diaz
b4fb6fa25f Remove tufformats from tufcli.py 2016-11-09 14:42:10 -05:00
Artiom Baloian
b793c81739 Added simple_settings, now it is a requirement of TuF.
Rename conf.py into the settings.py an changed import call.
2016-11-01 15:38:40 -04:00
Artiom Baloian
b07d9a5d0f Move some part of tufformats into the common formats 2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737 Moved TuF exceptions and schem into the ssl_commons 2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a Move _vendor dir and split formats into the formats and tufformats 2016-10-28 18:37:28 -04:00
Vladimir Diaz
f2bd05bcbe Prevent rudimentary client module from refetching root.json
Not re-fetching root simplifies examples in documentation and attack simulations
2016-10-07 11:33:01 -04:00
Vladimir Diaz
8cfaf2ccb6 Rename tuf.py to tufcli.py to prevent name clash 2016-10-07 11:27:52 -04:00
Vladimir Diaz
f9e22f0b36 Add function to mark roles as dirty and update setup.py to list tuf.py 2016-08-25 14:22:31 -04:00
Vladimir Diaz
e17550873f Create scripts directory. Store basic_client.py and tuf.py (CLI). 2016-08-25 14:19:19 -04:00