User Token Passthrough for Secure Tool Calls #140
Replies: 2 comments
-
|
Hi @VerdantForge thanks for the concise critique of agentic orchestration: security delegation versus infrastructure enforcement. You have really covered well the tension between intuitive agent design and the need for robust, identity-scoped execution. I just want to validate my reading of this: Core Concern: Over-reliance on Agent Logic for Security
Proposed Enhancement: Bearer Token Passthrough at Thread Level Identity-bound execution | Every tool call reflects the actual user’s identity, not a generic agent context. Token Lifecycle Considerations
Current Workaround: Local Function Invocation
Suggested Implementation Path
|
Beta Was this translation helpful? Give feedback.
-
|
Yeah that's exactly what I had in mind! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Technical Feedback
I’m really enjoying the agent creation experience in Azure AI Foundry — the formalism is simple and intuitive.
That said, the current authentication model for OpenAPI-based tools feels too loose. At the moment, it’s up to the agent to behave responsibly: not leaking data to users who shouldn’t see it, and not performing actions they shouldn’t be able to trigger.
This puts a lot of trust on the agent logic rather than enforcing security at the infrastructure level.
To strengthen this, it would be extremely useful to pass through the user’s bearer token into tool calls at the thread level, so that:
Desired Outcome
Enable bearer token passthrough within a thread.
Ideally, tokens would have an expiration mechanism (or be refreshed appropriately), ensuring that tool authentication remains scoped to the thread and tied to the user’s real permissions.
Current Workaround
Right now, I’m using local function calling from the client side (where the user is already authenticated) instead of routing calls directly through Azure AI Foundry’s orchestration. This works, but it bypasses Foundry’s intended workflow and limits the benefits of the platform.
Beta Was this translation helpful? Give feedback.
All reactions