pegleg/pegleg/engine/util
Tin Lam aa241081c9 Fix exception handling and add tests
Per [0], fernet decrypt can never throw an InvalidSignature exception as that
is re-raised as InvalidToken. This patch set corrects the handling of the
exception, and added additional unit tests for coverage.

[0] https://cryptography.io/en/latest/fernet/#cryptography.fernet.Fernet.decrypt

Co-Authored-By: Drew Walters <drewwalters96@gmail.com>
Change-Id: Ic5ee7ef451a5657519c5397fc4b903b5adcb1d18
Signed-off-by: Tin Lam <tin@irrational.io>
2019-02-22 16:14:25 -06:00
..
__init__.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
catalog.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
cryptostring.py Add CLI generation of salt 2019-02-20 16:51:01 +00:00
deckhand.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
definition.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
encryption.py Fix exception handling and add tests 2019-02-22 16:14:25 -06:00
files.py Add hacking extension 2019-01-01 00:18:03 -06:00
git.py CLI capability to generate and encrypt passphrases 2019-01-29 16:24:31 -06:00
pegleg_managed_document.py Fixed metadata schema for managed documents 2019-02-13 20:00:32 -06:00
pegleg_secret_management.py CLI capability to generate and encrypt passphrases 2019-01-29 16:24:31 -06:00
shipyard_helper.py Add hacking extension 2019-01-01 00:18:03 -06:00