durable_queue_encryption library
Encryption at rest for durable_queue.
- EncryptedQueueStorage: wraps any
QueueStorageand encrypts task payloads, error messages, and (by default) deduplication keys and groups before they are written. - AesGcmCipher: AES-256-GCM with keys you keep in the platform's secure storage, key rotation, and HMAC-SHA256 lookup tags.
- PayloadCipher: the interface to plug in another cipher.
Classes
- AesGcmCipher
- AES-256-GCM encryption with HMAC-SHA256 lookup tags.
- EncryptedQueueStorage
-
A
QueueStoragethat encrypts what tasks contain before another storage writes it. - PayloadCipher
- Encrypts the protected fields of a task for EncryptedQueueStorage.
Exceptions / Errors
- PayloadDecryptionException
- A stored task could not be decrypted: the key is unknown or wrong, the record was changed, or it was copied from another task.