pub struct EncryptionProcessor { /* private fields */ }Expand description
Encryption processor for storage destinations
Encrypts text content when the destination requires encryption (Storage). Streaming destinations receive the original (unencrypted) content.
§⚠️ DEVELOPMENT ONLY - NOT FOR PRODUCTION USE ⚠️
This implementation uses a simplified key derivation scheme and lacks:
- Proper HKDF-based key derivation
- KMS integration (AWS KMS, GCP KMS, Azure Key Vault)
- Envelope encryption for large payloads
- Key rotation support
- Audit logging for key access
This processor will panic if enabled when ENACT_PRODUCTION=true.
For production deployments, implement a custom OutputProcessor that
integrates with your organization’s key management infrastructure.
Implementations§
Source§impl EncryptionProcessor
impl EncryptionProcessor
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new encryption processor (disabled by default).
See struct-level documentation for development-only usage restrictions.
Sourcepub fn enabled(self) -> Self
pub fn enabled(self) -> Self
Enable encryption
§Panics
Panics if ENACT_PRODUCTION environment variable is set to “true”.
This processor is for development/testing only and must not be used
in production environments.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if encryption is enabled