Repository navigation
[log] Add debug logging to server/guard_pipeline.go - #16634
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
A critical active finding remains because enclave-session initialization errors may log private selectors or response details without the required redaction.
1 open issue
What changed in this PR
Adds debug-level observability to the server guard pipeline while preserving existing behavior and avoiding direct logging of tool arguments or payloads.
Changes:
- Adds a
server:guard_pipelinelogger vialogger.ForFile(). - Logs pipeline construction, guard initialization failures, and completed pipeline metadata.
- Reuses the computed payload-redaction state for pipeline input construction.
- Requires enclave-aware redaction for guard initialization errors before logging.
| File | Description |
|---|---|
| internal/server/guard_pipeline.go | Adds guard-pipeline debug logging and reuses the computed payload-redaction state. |
Review effort: Lite (adaptive)
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
@copilot fix the failing lint ci check |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Fixed in commit |
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE Notes:
Result file: /tmp/gh-aw/agent/readonly-stress-result-44350374214.txt → RESULT=INCONCLUSIVE RUNTIME=default RUNID=44350374214
|

Adds a
logGuardPipelinelogger (server:guard_pipeline, vialogger.ForFile()) tointernal/server/guard_pipeline.go, which previously had none.Logging added in
buildPipelineInput:util.FormatSessionIDForLog)The
SensitiveLoggingvalue is now computed once into a local variable and reused, with no change in behavior. No tool arguments or payloads are logged.Validation:
go vet ./internal/server,go test ./internal/server, andgo buildall pass.