Skip to content

feat(security): Port IronClaw security modules to workspace structure, fix merge conflicts#84

Merged
rexlunae merged 2 commits intofeature/ironclaw-importsfrom
copilot/sub-pr-76
Feb 27, 2026
Merged

feat(security): Port IronClaw security modules to workspace structure, fix merge conflicts#84
rexlunae merged 2 commits intofeature/ironclaw-importsfrom
copilot/sub-pr-76

Conversation

Copy link

Copilot AI commented Feb 26, 2026

feature/ironclaw-imports had merge conflicts with main because main restructured 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 matching main; added aho-corasick = "1.1" to [workspace.dependencies]
  • src/lib.rs — Deleted; main removed 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 inline LeakDetector/LeakResult stubs previously embedded in safety_layer.rs
  • validator.rs — Input validation: length limits, null-byte detection, whitespace/repetition heuristics, forbidden-pattern matching, recursive JSON param validation
  • safety_layer.rs — Updated to import from leak_detector and validator instead of carrying inline definitions
  • mod.rs — Re-exports all public types from the new modules
  • crates/rustyclaw-core/Cargo.toml — Adds aho-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.

…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
@rexlunae rexlunae marked this pull request as ready for review February 27, 2026 00:29
@rexlunae rexlunae merged commit 914f455 into feature/ironclaw-imports Feb 27, 2026
@rexlunae rexlunae deleted the copilot/sub-pr-76 branch February 27, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants