Skip to content

Apply SecretDetector to the extraction payload before LLM submission #103

Description

@troylar

Extraction (`extractor.py`) reads raw instruction-file contents and formats them directly into the LLM prompt. `SecretDetector` currently guards only MCP-config templating in `package_creator.py` — the extraction payload itself is never scanned.

Hardening ask:

  • Run the extraction payload through secret detection (redact/template hits) before any provider call, on both the AI path and anything the non-AI path persists
  • Add a test that asserts a planted secret in an instruction file does NOT appear in the outbound payload

Tracked as DEBT-001 in `.codehealth/REGISTER.md`.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions