Skip to content

spike: wire secrets detection runtime plugin - #70

Draft
gandhipratik203 wants to merge 2 commits into
mainfrom
spike/secrets-detection-cpex-runtime
Draft

spike: wire secrets detection runtime plugin#70
gandhipratik203 wants to merge 2 commits into
mainfrom
spike/secrets-detection-cpex-runtime

Conversation

@gandhipratik203

@gandhipratik203 gandhipratik203 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

This is an experimental spike to wire the Rust-native secrets detection plugin from IBM/cpex-plugins#148 into the data-plane runtime CPEX path.

It adds a feature-gated secrets-detection-plugin dependency, registers SecretsDetectionFactory directly with CpexRuntimeRegistry, and documents a Redis runtime config for manual testing. The spike only targets the currently supported data-plane hooks: cmf.tool_pre_invoke and cmf.tool_post_invoke.

Validation

  • cargo +1.96 check -p contextforge-gateway-rs --features secrets-detection-plugin
  • cargo +1.96 test -p contextforge-gateway-rs-cpex
  • cargo +1.96 test -p contextforge-gateway-rs-lib --test gateway_plugins -- --nocapture
  • cargo +1.96 test -p contextforge-gateway-rs --features secrets-detection-plugin --test secrets_detection_e2e -- --ignored --nocapture

Notes

  • The plugin must be compiled into the gateway binary; Redis config only activates the already-registered factory.
  • Prompt/resource hooks are out of scope for this spike because data-plane currently rejects non-tool CPEX hooks.
  • The binary E2E is ignored by default because it starts redis-server, a test MCP backend, and the real gateway binary.
  • This depends on the local experimental PR148 crate path and is not intended as a production-ready dependency shape.

Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
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.

1 participant