Skip to content

fix: stop returning exception text to remote A2A peers - #1396

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_958505013
Aug 5, 2026
Merged

fix: stop returning exception text to remote A2A peers#1396
copybara-service[bot] merged 1 commit into
mainfrom
test_958505013

Conversation

@copybara-service

Copy link
Copy Markdown

fix: stop returning exception text to remote A2A peers

AgentExecutor#failedMessage built the failure message sent back to the peer
out of Throwable#getMessage. Exception text routinely contains absolute
paths, class and module locations, configuration values and echoed request
payloads, so a peer could map the host by provoking errors.

It now logs the throwable under a short opaque id and sends only a fixed
summary plus that id. It also took over the logging that used to happen at the
call site, so the id in the response is the id in the log.

Set ADK_DEBUG_ERRORS=1 to get the detail back when debugging locally.

@copybara-service
copybara-service Bot force-pushed the test_958505013 branch 9 times, most recently from 0648585 to b57c1e3 Compare August 5, 2026 22:08
`AgentExecutor#failedMessage` built the failure message sent back to the peer
out of `Throwable#getMessage`. Exception text routinely contains absolute
paths, class and module locations, configuration values and echoed request
payloads, so a peer could map the host by provoking errors.

It now logs the throwable under a short opaque id and sends only a fixed
summary plus that id. It also took over the logging that used to happen at the
call site, so the id in the response is the id in the log.

Set `ADK_DEBUG_ERRORS=1` to get the detail back when debugging locally.

PiperOrigin-RevId: 959895666
@copybara-service
copybara-service Bot merged commit a3df463 into main Aug 5, 2026
@copybara-service
copybara-service Bot deleted the test_958505013 branch August 5, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant