This repository was archived by the owner on Dec 21, 2025. It is now read-only.
Audit codebase and improve production readiness#2
Merged
Conversation
…hancements Security Improvements: - Add constant-time comparison for webhook secrets (prevents timing attacks) - Replace MD5 with SHA256 for anonymous user key hashing - Add subprocess timeout and parameter validation in generate_qart() - Add file upload validation with MIME type detection and size limits - Run Docker container as non-root user New Modules: - config.py: Centralized configuration with validation and type safety - utils.py: File upload validation and temp file management utilities Docker & Configuration: - Fix version inconsistency (now 0.3.0 everywhere) - Fix Docker port configuration (consistently 8000) - Add production-ready docker-compose with health checks - Add .env.example documenting all configuration options - Add setuptools package discovery configuration Documentation: - ARCHITECTURE.md: System design, module structure, data flow diagrams - INSTALL.md: Comprehensive installation guide for all platforms - CHANGELOG.md: Version history following Keep a Changelog format Testing: - Add test_config.py: Tests for configuration module (17 tests) - Add test_utils.py: Tests for utilities module (12 tests) - All 62 tests passing Dependencies: - Add httpx to main dependencies (required for auth validation) - Update Python requirement to >=3.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…hancements
Security Improvements:
New Modules:
Docker & Configuration:
Documentation:
Testing:
Dependencies: