Repository navigation
BrandKit v1.1.5 — Performance, Hardening, Supply-Chain & UI Theme Decoupling
This release introduces significant optimizations to asset generation speed, strengthens container execution and input boundary security, pins bit-for-bit reproducible supply-chain dependencies, and decouples the UI theme to automatically match client system preferences.
⚡ Performance & Caching
• Hoisted cache key hash generation outside the format loop in image_processing.py, eliminating 45 redundant file reads and MD5 hashing operations per request.
• Precomputed source image file hash upfront, reused across variation generation and format export.
• Optimized metadata stripping in app.py via native Image.new() and paste() to avoid huge in-memory pixel list allocations and future deprecation warnings.
🛡️ Security & Container Hardening
• Dedicated non-root USER brandkit (UID 1000) and ownership configuration in Dockerfile.
• Added comprehensive root .dockerignore excluding tests, virtual environments, Git metadata, documentation, and development artifacts from image builds.
• Enforced strict input range boundary clamping (parse_clamped_float, parse_clamped_int) on all numeric filter inputs (blur_radius, crop_padding, quality, saturation, brightness, etc.) with NaN/Inf protection.
🎨 UI & Theme Decoupling
• Fully automated client color scheme synchronization responding dynamically to OS/browser prefers-color-scheme media query changes in real time.
• Streamlined top navigation header by removing redundant status indicators and manual theme switcher.
• Decoupled and harmonized form controls, native checkboxes, and color swatches across dark and light palettes.
📦 Supply Chain & Testing
• Adopted bit-for-bit reproducible, universal hash-pinned lockfile requirements.lock generated via uv.
• Pinned exact versions for test dependencies pytest==9.1.1 and pytest-cov==7.1.0 in requirements.txt.
• All 51 hermetic unit, integration, and security boundary tests passing.