mirror of
https://github.com/beshu-tech/deltaglider.git
synced 2026-04-19 23:11:26 +02:00
feat: Add cache encryption and memory backend support
Implements cache encryption and configurable memory backend as part of DeltaGlider v5.0.3 security enhancements. Features: - EncryptedCache wrapper using Fernet (AES-128-CBC + HMAC) - Ephemeral encryption keys per process for forward secrecy - Optional persistent keys via DG_CACHE_ENCRYPTION_KEY env var - MemoryCache adapter with LRU eviction and configurable size limits - Configurable cache backend via DG_CACHE_BACKEND (filesystem/memory) - Encryption enabled by default with opt-out via DG_CACHE_ENCRYPTION=false Security: - Data encrypted at rest with authenticated encryption (HMAC) - Ephemeral keys provide forward secrecy and process isolation - SHA256 plaintext mapping maintains CAS compatibility - Zero-knowledge architecture: encryption keys never leave process Performance: - Memory cache: zero I/O, perfect for CI/CD pipelines - LRU eviction prevents memory exhaustion - ~10-15% encryption overhead, configurable via env vars Testing: - Comprehensive encryption test suite (13 tests) - Memory cache test suite (10 tests) - All 119 tests passing with encryption enabled Documentation: - Updated CLAUDE.md with encryption and cache backend details - Environment variables documented - Security notes and performance considerations Dependencies: - Added cryptography>=42.0.0 for Fernet encryption 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,7 @@ classifiers = [
|
||||
dependencies = [
|
||||
"boto3>=1.35.0",
|
||||
"click>=8.1.0",
|
||||
"cryptography>=42.0.0",
|
||||
"python-dateutil>=2.9.0",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user