Conversation
…tion Adds enhanced security modules to crates/rustyclaw-core/src/security/: - leak_detector.rs: Aho-Corasick accelerated credential leak detection - Multi-pattern scanning for API keys, tokens, passwords - HTTP request/response boundary scanning - Configurable severity levels and actions (warn/redact/block) - validator.rs: Input validation framework - Length limits, encoding validation, pattern matching - Reusable ValidationResult types - Updated safety_layer.rs to integrate new modules - InputValidator + LeakDetector now wired into SafetyLayer - Cleaner separation of concerns Attribution: HTTP scanning patterns inspired by IronClaw (Apache-2.0). Rebased from PR #76 onto main's crates workspace structure.
Owner
Author
|
Reviewed — looks great! 🎉 leak_detector.rs: Excellent Aho-Corasick approach with HTTP boundary scanning. Love the binary body edge case test. validator.rs: Solid input validation framework with configurable limits. safety_layer.rs: Nice unified API consolidating all defenses. Clean policy engine design. Architecture fits well with the crates layout. Ready to merge. One enhancement for later: runtime-registerable patterns for user-defined secrets. But that's a separate PR. Ship it! 🚢 |
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.
Rebased version of PR #76 onto main's crates workspace structure.
Changes
Adds enhanced security modules to
crates/rustyclaw-core/src/security/:leak_detector.rs: Aho-Corasick accelerated credential leak detection
validator.rs: Input validation framework
Updated safety_layer.rs to integrate new modules
Attribution
HTTP scanning patterns inspired by IronClaw (Apache-2.0).
Supersedes
This replaces PR #76 which had merge conflicts due to the crates restructure.