Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions crates/proxy-wasm-evidence/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ impl HttpContext for EvidenceFilter {
"x-aep-recording-mode",
Some(evidence.recording_mode.as_str()),
);
// Surface MCP 2026-07-28 header leakage detection on the response so
// downstream observers can react without parsing the AEP record body.
// Carries the same snake_case variant name stored on
// `ActionEvidence::mcp_header_risk`; omitted entirely when no risk was
// detected (None clears/omits the header).
self.set_http_response_header(
"x-aep-mcp-header-risk",
evidence.mcp_header_risk.as_deref(),
);
// Increment the appropriate Prometheus counter for this recording mode.
let metric_id = match evidence.recording_mode {
RecordingMode::Validation => self.metric_validation,
Expand Down
Loading