Commit graph

13 commits

Author SHA1 Message Date
Lukas Puehringer
ff8819577b Adopt sslib keygen interface encryption changes
secure-systems-lab/securesystemslib#288 changes the key generation
interface functions in such a way that it is clear if a call opens
a blocking prompt, or writes the key unencrypted. To do this two
functions are added per key type:
 - `generate_and_write_*_keypair_with_prompt`
 - `generate_and_write_unencrypted_*_keypair`

The default `generate_and_write_*_keypair` function now only allows
encrypted keys and only using a passed password. This respects the
principle of secure defaults and least surprise.

sslib#288 furthermore adds a protected
`_generate_and_write_*_keypair`, which is not exposed publicly
because it does not encrypt by default, but is more flexible and
thus convenient e.g. to consume all arguments from a key generation
command line tool such as 'repo.py'.

This commit adds the new public functions to the tuf namespace and
adopts their usage accordingly.

NOTE regarding repo.py:
This commit does not fix any problematic password behavior of
'repo.py' like default passwords, etc. (see #881). It only adopts
the sslib#288 changes to maintain the current behvior, plus
removing one glaringly obsolete password prompt.

NOTE regarding key import:
The securesystemslib private key import functions were also changed
to no longer auto-prompt for decryption passwords , TUF, however,
only exposes custom wrappers (see repository_lib) that do
auto-prompt. sslib#288 changes to the prompt texts are nevertheless
propagated to tuf and reflected in this commit.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2020-11-11 10:27:56 +01:00
Vladimir Diaz
8a5475eb88
Remove or edit remaining instances of 'restricted paths'
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-19 14:20:38 -05:00
Santiago Torres
8382bf5576 Updated spelling and code examples for consistency
README-developer-tools had a minor spelling mistake. I also ran the code
examples step by step to ensure they could be ran as-is.
2014-09-23 11:45:07 -04:00
zanefisher
2463cc3cc1 Update README-developer-tools.md 2014-07-01 10:17:48 -04:00
zanefisher
89b1b54f46 complete first draft to developer tool document 2014-06-03 15:23:25 -04:00
zanefisher
be320acf30 Expand Delegations section. 2014-04-30 16:44:15 -04:00
zanefisher
a4c483f5c6 Add headers for sections to be added. 2014-04-17 16:19:20 -04:00
zanefisher
b89bb02730 remove whitespace and empty lines from examples 2014-04-17 15:51:26 -04:00
zanefisher
69c88e2328 fixes to headers and links 2014-04-17 15:43:43 -04:00
SantiagoTorres
c35d50e310 Update README-developer-tools.md
Updated the document with mentions to project names and to fix general redaction issues.
2014-04-04 17:27:47 -04:00
Santiago Torres
ab765d6c85 Ran a spellchecker on the readme document
Also did a minor proofreading effort. A more thorough proofread will me
made after finishing the whole document.
2014-04-04 14:36:01 -04:00
SantiagoTorres
a34dfb0bb9 Update README-developer-tools.md
Updated part of the documentation, Added a sketch for the delegate method and finished the managing keys section
2014-03-31 18:17:48 -04:00
Santiago Torres
c3a9d7d025 Added first draft of the developer tools readme 2014-03-24 13:37:48 -04:00