🐛 sec: Sanitize error leakage and input reflection in kc-agent#13425
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
Replace raw err.Error() in client-facing responses with generic messages. Remove user-supplied input reflection from error responses. Preserve detailed server-side slog logging for debugging. Fixes server_exec.go, prometheus.go, server_ai_mixed.go, server_ai_chat.go, provider_antigravity.go, and update_checker.go. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Copilot <223556219+Copilot@users.noreply.github.com>
0f00700 to
88dccd5
Compare
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
❌ Post-Merge Verification: failedCommit: |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
Fixes #13419
Sanitizes ~24 instances of error leakage and input reflection across 7 kc-agent files:
Error leakage fixed:
Input reflection fixed:
All instances now return generic error messages to clients while preserving detailed slog logging server-side.