How an Entrypoint Decides Who the User Is

Before an entrypoint hands anything to an agent, it has to answer one question: who is this? I covered the entrypoint types in Points of entry and exit: Entrypoint Types. This post is about the identity part, because it decides what every downstream agent and tool is allowed to do.

First, how traffic reaches the entrypoint. There are two shapes:

  • Inbound entrypoints, like Webhook, Teams and the Web UI, need an HTTP route into your cluster. A webhook lives at /gw/<entrypoint-id><route-path> on your Agent Mesh host, and the Entrypoint Executor routes each request to the right entrypoint by that path.
  • Outbound entrypoints connect out. Slack uses Socket Mode over an outbound WebSocket, and Event Mesh connects to a broker as a client. Neither needs an inbound firewall rule.

Then identity. The rule I keep coming back to: identity has to come from something the caller can’t change. Slack is a good example. The entrypoint asks Slack’s API for the email on the sender’s Slack profile (that’s why the app needs users:read.email), so it comes from Slack, not from anything typed in the message. A name typed into a message would be worthless.

Some requests have no user at all: webhooks, Event Mesh events, and messages in shared Slack or Teams channels. Those run as a system user. The built-in default can invoke any agent that doesn’t declare required_scopes, which is broad. To narrow it, create a scoped one and point the entrypoint’s run_as at it:

kind: rbacRole
name: orders_invoke_only
spec:
  scopes:
    - "agent:OrderProcessor:invoke"
---
kind: systemUser
name: orders-bot
spec:
  displayName: "Orders webhook"
  roleNames: [orders_invoke_only]

On an Event Mesh rule, a system: value that arrives inside a message is rejected. Only the operator’s run_as can name a system user, so an attacker can’t promote themselves by putting it in the payload.

In a Slack DM you’re you; in a channel, the same message runs as the system user, so a task in a shared space can’t use your personal access.

Download the Solace Agent Mesh desktop app and add a webhook entrypoint to see its route under Networking Details.

Docs:

What do your machine entrypoints run as today?