[log] Add debug logging to proxy upstream forwarding - #14309
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Note
This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE
|

Adds 5 debug log calls to
internal/proxy/proxy.go, reusing the existinglogProxylogger:upstreamHost: scheme-less parse retry and raw host fallbackforwardToGitHub: GraphQL URL rewrite (GHES or not), request creation failure, artifact zip no-redirect pathThe log arguments have no side effects. They don't log paths, URLs or credentials, so enclave and delegation modes stay safe.
Validation:
go vetandgo test ./internal/proxypass, andgo buildsucceeds.