pegleg/pegleg/engine
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
..
catalog CLI capability to generate and encrypt passphrases 2019-01-29 16:24:31 -06:00
catalogs CLI capability to generate and encrypt passphrases 2019-01-29 16:24:31 -06:00
common pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
generators Add CLI generation of salt 2019-02-20 16:51:01 +00:00
util Fix exception handling and add tests 2019-02-22 16:14:25 -06:00
__init__.py Pegleg encryption of site secrets 2018-10-30 16:53:51 +00:00
errorcodes.py tests: Increase test coverage for lint checks 2019-01-01 19:17:11 +00:00
exceptions.py CLI capability to generate and encrypt passphrases 2019-01-29 16:24:31 -06:00
lint.py Add hacking extension 2019-01-01 00:18:03 -06:00
repository.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
secrets.py Add CLI generation of salt 2019-02-20 16:51:01 +00:00
site.py Add hacking extension 2019-01-01 00:18:03 -06:00
type.py Pegleg CLI output improvement 2018-10-10 15:30:54 -04:00