pegleg/pegleg/engine
Phil Sphicas c7b903a6ea Cache fernet keys when encrypting or decrypting
The PEGLEG_PASSPHRASE and PEGLEG_SALT environment variables are used to
generate the fernet key for encryption and decryption of site documents,
and the global passphrase and salt are used to generate the fernet key
for global documents.

This change caches the resulting fernet keys to avoid recalculating them
for each document that needs to be encrypted or decrypted, resulting in
a small time savings.

Change-Id: I7b7e77a4740e7abb54efce2fcb3cca6d84a9d7d4
2021-01-19 15:26:11 +00:00
..
catalog Fix bug with block_literal_representer 2020-09-22 04:53:31 +00:00
catalogs Add profiles to passphrase catalog 2019-09-24 16:19:36 +00:00
common pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
generators Add passphrase catalog override option 2019-12-10 20:40:31 +00:00
util Cache fernet keys when encrypting or decrypting 2021-01-19 15:26:11 +00:00
__init__.py Pegleg encryption of site secrets 2018-10-30 16:53:51 +00:00
bundle.py Fix: Allow Pegleg to generate unencrypted bundle 2019-08-06 13:17:55 +00:00
errorcodes.py Add nosec to Bandit False Positives 2019-05-09 15:29:26 +00:00
exceptions.py Add profiles to passphrase catalog 2019-09-24 16:19:36 +00:00
lint.py Standardize Pegleg code with YAPF 2019-07-25 17:28:18 +00:00
repository.py Standardize Pegleg code with YAPF 2019-07-25 17:28:18 +00:00
secrets.py Making certificate check more robust 2020-12-29 16:16:57 -05:00
site.py Ensure Tag Name is a string in deployment data 2020-07-06 17:58:27 -04:00
type.py Implement default umask for 640 file permissions 2019-06-29 17:56:55 +00:00