Repository navigation
fix(vcs): stop printing request params on provider errors - #14826
Conversation
Adapter::call() echoed the full request params to stdout whenever a provider answered 500. Those params include webhook secrets and other credentials, and the output lands in worker logs. Callers already get the status code and body in the returned response.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR fixes a secret-leakage issue in the VCS HTTP adapter by dropping the echo of failed-response output, and introduces a real-socket test harness for adapter calls.
Reviewed commit: 3394e27 |
🟢 Tier S · Ready to merge
Removed the VCS adapter's stdout dump when a provider returns HTTP 500, leaving the response available through the existing return value. Added a regression test that checks a 500 response does not emit output and a test-only Gitea adapter and fixture server to exercise the request path.
📂 Walkthrough · 4
Reviewed |
|
On the port nitpick: |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
…r-output fix(vcs): stop printing request params on provider errors (cherry picked from commit 0d3dfba)
Summary
Utopia\VCS\Adapter::call()echoed the method, path, full request params and response body to stdout whenever a provider answered with a 500. Request params can include webhook secrets and other credentials, and that output ends up in worker logs. The echo is removed; callers already receive the status code and body in the returned response and handle errors from there.Test plan
bin/monorepo check vcsbin/monorepo test vcs; newAdapterCallTestrunscall()against a localphp -Sserver that always returns 500 and asserts nothing is written to output (fails without the fix)Related: appwrite-labs/cloud#6674