Skip to content

Validate function call author before resuming auth-gated tool calls#6474

Open
prasanna8585 wants to merge 1 commit into
google:mainfrom
prasanna8585:fix-auth-preprocessor-cross-agent-resume
Open

Validate function call author before resuming auth-gated tool calls#6474
prasanna8585 wants to merge 1 commit into
google:mainfrom
prasanna8585:fix-auth-preprocessor-cross-agent-resume

Conversation

@prasanna8585

Copy link
Copy Markdown

_AuthLlmRequestProcessor.run_async resumes and executes a tool call found by ID in session history, but did not check that the call was authored by the current agent before doing so.

request_confirmation.py's equivalent resume path already validates this (original_fc_event.author != agent.name). This applies the same check here, consistent with that existing pattern.

_AuthLlmRequestProcessor.run_async resumed and executed a tool call
found by ID in session history without checking that the call was
authored by the current agent. request_confirmation.py's equivalent
resume path already validates this (original_fc_event.author !=
agent.name), but auth_preprocessor.py did not.

In a shared session, this could cause one agent to resume and execute
a different agent's auth-gated tool call using its own canonical_tools,
rather than the originating agent's.
@adk-bot adk-bot added the core [Component] This issue is related to the core interface and implementation label Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core [Component] This issue is related to the core interface and implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants