This repository was archived by the owner on Jul 8, 2026. It is now read-only.
Fresh start - #6
Merged
Merged
Conversation
…mponents DBLB (Database Load Balancer): - Add Auth Manager tests (15 tests) - user auth, IP whitelist, rate limiting - Add Threat Intelligence tests (13 tests) - IP/domain threats, auto-blocking - Add SQLite Handler tests (21 tests) - config, lifecycle, query detection - Fix Dockerfile to use CGO_ENABLED=1 for SQLite support AILB (AI Load Balancer): - Add RBAC tests (56 tests) - roles, permissions, JWT, API keys - Add Token Manager tests (63 tests) - counting, conversion, quotas - Add Prompt Security tests (74 tests) - injection, jailbreak detection CI/CD: - Add modular-lb-ci.yml workflow for DBLB, AILB, NLB, ALB, RTMP - Path-based filtering for efficient builds - Security scanning with Trivy All 4 main components build successfully: - DBLB: CGO_ENABLED=1 go build ✓ - NLB: go build ✓ - RTMP: go build ✓ - AILB: Python imports ✓ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…o on: block 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Trivy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
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.
Summary
Port missing features from source projects (ArticDBM, Gazer, WaddleAI) to MarchProxy modular load balancer components and add comprehensive test coverage with CI/CD workflow.
Changes
DBLB (Database Load Balancer)
internal/auth/manager.go): User authentication, IP whitelisting, rate limiting, API key validation, TLS enforcementinternal/security/threat_intelligence.go): IP/domain threat detection, auto-blocking, threat feed managementinternal/handlers/sqlite.go): Full SQLite protocol support with connection pooling and WAL modeCGO_ENABLED=1for SQLite supportAILB (AI Load Balancer)
app/auth/rbac.py): 5-role hierarchy (Admin, Resource Manager, Auditor, User, Service), JWT authentication, API key managementapp/tokens/token_manager.py): Token counting, LLM token conversion, quota enforcement, usage trackingapp/security/prompt_security.py): Prompt injection/jailbreak detection, threat classification, security policy enforcementCI/CD
modular-lb-ci.yml): Path-based filtering for DBLB, AILB, NLB, ALB, RTMP componentsbuild-and-test.ymlschedule block syntaxTesting
All components verified:
CGO_ENABLED=1 go build- builds successfullygo build- builds successfullygo build- builds successfullyTest Results:
Backwards Compatibility
✅ All changes are additive - no breaking changes to existing code
✅ New modules operate independently
✅ Existing workflows (
build-and-test.yml,ci.yml) unaffectedDeployment Notes
The
modular-lb-ci.ymlworkflow will be active once merged to main branch. It provides:proxy-dblb/**,proxy-ailb/**,proxy-nlb/**,proxy-alb/**,proxy-rtmp/**Related Issues
Closes #[issue-number] (if applicable)
Checklist
This PR is ready to merge. Once merged to main, the new modular-lb-ci.yml workflow will be activated and will automatically run on future pushes to the modular load balancer components.