feat(security): Port IronClaw security modules to workspace structure, fix merge conflicts#84
Merged
rexlunae merged 2 commits intofeature/ironclaw-importsfrom Feb 27, 2026
Merged
Conversation
…to workspace structure Co-authored-by: rexlunae <6726134+rexlunae@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Import IronClaw leak detection and validation
feat(security): Port IronClaw security modules to workspace structure, fix merge conflicts
Feb 26, 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.
feature/ironclaw-importshad merge conflicts withmainbecausemainrestructured from a monolithic crate to a Cargo workspace while the feature branch was still based on the old layout.Conflict resolutions
Cargo.toml— Replaced old single-package manifest with workspace format matchingmain; addedaho-corasick = "1.1"to[workspace.dependencies]src/lib.rs— Deleted;mainremoved this file during the workspace split (delete/modify conflict)New files in workspace location (
crates/rustyclaw-core/src/security/)leak_detector.rs— Aho-Corasick O(n) multi-pattern credential leak detection (IronClaw-inspired); replaces the inlineLeakDetector/LeakResultstubs previously embedded insafety_layer.rsvalidator.rs— Input validation: length limits, null-byte detection, whitespace/repetition heuristics, forbidden-pattern matching, recursive JSON param validationsafety_layer.rs— Updated to import fromleak_detectorandvalidatorinstead of carrying inline definitionsmod.rs— Re-exports all public types from the new modulescrates/rustyclaw-core/Cargo.toml— Addsaho-corasick.workspace = true✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.