Skip to content

Log reflect responses for detection debugging#122

Merged
davidslater merged 1 commit into
mainfrom
davidslater/threat-detect-verbose
May 15, 2026
Merged

Log reflect responses for detection debugging#122
davidslater merged 1 commit into
mainfrom
davidslater/threat-detect-verbose

Conversation

@davidslater
Copy link
Copy Markdown
Collaborator

Adds an opt-in debug path for printing raw /reflect responses during detection-only troubleshooting.

Summary:

  • enables THREAT_DETECTION_LOG_REFLECT_RESPONSE in the detection-only workflow
  • prints grouped GET/POST /reflect responses from the Go reflect client when the env var is true
  • documents the debug env var and its artifact-content risk
  • adds unit coverage for the logging helper, including the isolated enabled/disabled buffer phases

Verification:

  • gofmt -w pkg/engine/reflect.go pkg/engine/reflect_test.go
  • git diff --check
  • go test ./pkg/engine

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