Add operational hygiene layer: password enforcement, rate limiting, log rotation#4
Draft
Copilot wants to merge 8 commits into
Draft
Add operational hygiene layer: password enforcement, rate limiting, log rotation#4Copilot wants to merge 8 commits into
Copilot wants to merge 8 commits into
Conversation
- Introduced `export_proof_pack.sh` for generating auditable archives with integrity checks. - Ensured mandatory audit log presence and optional file handling with warnings. - Implemented SHA256 checksum generation and archive creation. feat: Create installation cleanup script - Added `install0.sh` for deep cleaning the installation environment. - Stops the MiniFW-AI service, removes service files, and cleans up installation directories. feat: Implement interactive test suite TUI - Developed `run_tests_tui.py` for a terminal-based interface to select and execute tests. - Supports real-time results display and navigation controls. feat: Establish test registry for unified test suite - Created `test_registry.py` to catalog all test files with metadata for execution. - Provides functions to filter tests by category and type, and validate test paths. feat: Build TUI components for test execution - Added `tui/__init__.py`, `tui/runner.py`, and `tui/screen.py` for TUI functionality. - Implemented a polymorphic test runner to handle both pytest and standalone scripts. - Enhanced screen management with color support and simplified drawing methods.
• Security: Improved. Detection-to-Enforcement binding, Cookie hardening. • Audit Trail: Enhanced. UUID-based event linkage for regulatory compliance. • Frontend: Hardened. safeFetch(), AJAX login, role-based redirects. • Documentation: Updated. Manual expanded with frontend setup guide. • Infrastructure: Simplified. Docker files removed (native systemd deployment).
…rate limiting, logrotate, CI/CD discipline Co-authored-by: vadhh <149752468+vadhh@users.noreply.github.com>
Co-authored-by: vadhh <149752468+vadhh@users.noreply.github.com>
Co-authored-by: vadhh <149752468+vadhh@users.noreply.github.com>
Co-authored-by: vadhh <149752468+vadhh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add operational hygiene layer for system readiness
Add operational hygiene layer: password enforcement, rate limiting, log rotation
Feb 2, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements production-readiness controls for MiniFW-AI gateway: mandatory password change on first login, login rate limiting, and audit log rotation. Does not modify existing detection-to-enforcement binding.
Password Change Enforcement (P0)
New users must change their generated password before accessing dashboard:
must_change_passwordflag post-authenticationcreate_user()defaults flag toTruefor new accountsLogin Rate Limiting (P1)
Token Bucket algorithm limits login attempts to 5/minute per source IP:
rate_limiter.pymodule with thread-safe bucket implementationPOST /auth/loginRetry-Afterheader on limit exceededAudit Log Rotation (P2)
Standard logrotate configuration for
/opt/minifw_ai/logs/audit.jsonl:delaycompress, preserve permissions (640 minifw adm)install_systemd.sh# config/minifw-audit.logrotate /opt/minifw_ai/logs/audit.jsonl { daily rotate 30 compress create 640 minifw adm }CI/CD Protection
Marked
TestDetectionEnforcementBindinginverify_sprint.pyasCRITICAL CI/CD COMPONENTto prevent accidental removal of audit binding tests.Security Properties
threading.Lockfor atomic operationsPASSWORD_CHANGEDactionOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.