Commit 8a4c208
fix: redact sensitive data from evaluation SDK log messages (#45176)
* fix: redact sensitive data from log messages to resolve CredScan alert
Remove user-provided content (queries, responses, tool definitions, exception
messages) from log strings that flow into Geneva telemetry. This prevents
database connection strings and other credentials embedded in user payloads
from being flagged by CredScan.
Changes:
- Remove f-string interpolation of query/response/tool_definitions in
warning and debug log messages
- Downgrade noisy agent-response warnings to debug level
- Sanitize upload error messages to emit only exception type name
- Chain original exception with 'from e'
Resolves ICM 738457593
* fix: call PROXY_URL() as function instead of using as value
PROXY_URL in devtools_testutils.config is now a function, not a constant.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 603be58 commit 8a4c208
2 files changed
Lines changed: 9 additions & 11 deletions
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
| 709 | + | |
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | | - | |
| 768 | + | |
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
791 | | - | |
792 | | - | |
| 790 | + | |
793 | 791 | | |
794 | 792 | | |
795 | 793 | | |
| |||
915 | 913 | | |
916 | 914 | | |
917 | 915 | | |
918 | | - | |
919 | | - | |
| 916 | + | |
| 917 | + | |
920 | 918 | | |
921 | 919 | | |
922 | 920 | | |
923 | | - | |
| 921 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
0 commit comments