Configuring Beams for Delegated Access
This guide explains how to limit the permissions delegated to a beam, request additional access when a workload needs it, and review delegated activity in the audit log. As a cluster administrator, you control which roles users can delegate. Users then choose the roles needed for each workload when creating a beam.
Start agentic workloads with the least access they need. An agent may interpret an instruction unexpectedly or act on untrusted content. Giving it access to only the resources and operations required for its task limits the impact of unintended behavior. Just-in-time Access Requests provide a review point before the workload gains additional access.
How it works
A beam runs with its own Teleport identity, acting on behalf of the user who created it. Teleport records this relationship in a delegation chain, starting with the original user and continuing through any sub-beams. Permissions are enforced by Teleport when the workload accesses protected resources; they do not depend on the agent following instructions about what it may access.
Without an explicit role selection, a new beam receives all of the creator's
standing roles that cluster policy permits them to delegate. With the default
beam-user role, this includes all standing roles. Standing roles are the user's
regular permissions, excluding temporary access obtained through Access Requests
or Access Lists. Temporary access cannot be delegated to turn it into standing
access.
Users can select a smaller set of roles when creating a beam. A beam can create sub-beams with a further reduced set of its delegable standing roles. Teleport checks that selected roles are both held by the creator and permitted by the cluster's delegation policy.
Omitted roles do not grant immediate access. Instead, they enable the beam to
discover resources and submit resource-based Access Requests. The beam also
retains the ability to discover and request resources that the creator could
request. See the Access Request configuration guide
for more information on using search_as_roles to restrict resource requests.
Approval grants time-limited access scoped to the requested resources.
Preserving restrictions when reducing access
Roles can contain restrictions as well as permissions. Teleport requires every
standing role with deny conditions to be included in a delegation. If a user
omits one, or cluster policy prevents it from being delegated, beam creation is
rejected. This prevents removing a deny rule from increasing the beam's access.
The beam inherits the creator's user traits so that trait-based role expressions
can resolve for the delegated identity.
Restrictions in role options are not treated like deny conditions. Omitting a
role can remove a shorter max_session_ttl, an ssh_file_copy: false setting, or
restrictions on SSH forwarding. Put the required options in roles that workloads
will receive, and review the resulting role set before allowing users to reduce
access.
For agentic workloads, prefer roles that select a narrow set of resources and allow limited operations. For example, a database role can allow only a database account whose database permissions are read-only. Resource selection alone does not make operations on that resource read-only. See the role reference for access controls and role option behavior.
Reviewing additional access
Teleport routes a delegated request to the original user in the delegation
chain for review when that user currently holds every role required by the
requested resources as standing access, and review is not explicitly denied.
This applies to resource-based requests only and requests for an entire role are
never routed to the delegator. The user does not need an additional
allow.review_requests.roles grant for this review. This also applies to
requests from sub-beams: the original user reviews them, rather than the parent
beam.
If the original user cannot review the request, it is escalated to reviewers with the usual Access Request review permissions. The original user receives a notification in the Web UI, and eligible reviewers receive notifications when the request is escalated. Temporary access held by the original user does not qualify them to approve a delegated request through this mechanism.
Delegated requests are rate limited per delegated identity to an average of one request per minute, with an initial burst of ten. This helps limit repeated requests from runaway workloads and reduces review fatigue.
Prerequisites
- A Teleport Beams cluster. Start your free trial.
- The
tctlandtshclients, version 18.11.9 or later. - An active Teleport session (
tsh login) with permission to read and update roles for the configuration step. - A user who can create beams and holds the roles you intend to delegate.
- For resource access examples, existing enrolled resources and roles granting access to them. Use the commands appropriate to the resource types in your cluster; you do not need every resource type shown in this guide.
The examples use delegated-access for an existing role that grants the
workload's initial resource access. Substitute a role from your cluster. If you
need a resource to test with, follow the Beams database
guide separately before configuring delegation.
Step 1/4. Restrict which roles can be delegated
The built-in beam-user role grants permission to create beams, access owned
beam resources over SSH, and access LLM proxy applications, including the
built-in anthropic and openai proxies. It also allows delegation of any
standing role through spec.allow.delegation.roles: ["*"].
To limit this, open Access Management > Roles in the Teleport Web UI and edit
beam-user, or use the interactive CLI editor:
tctl edit role/beam-user
Replace the delegation wildcard with explicit role names. Keep the rest of the role's existing configuration:
spec:
allow:
delegation:
roles:
- beam-user
- delegated-access
Include beam-user so the workload retains the Beams and inference permissions
it needs. Include any roles with deny conditions held by affected users, since
Teleport requires those roles to be delegated.
Alternatively, export the existing role, edit the file, and apply it:
tctl get role/beam-user > role-beam-user.yamlEdit spec.allow.delegation.roles in role-beam-user.yaml.
tctl create -f role-beam-user.yaml
Delegation permissions combine across a user's roles. An allow wildcard in
another role still permits delegation of all standing roles; explicit
deny.delegation.roles entries take precedence over allows. Check all roles
assigned to affected users if you want the list above to be their effective
limit.
This list controls which roles can be delegated as standing access. Any roles in
this list that are not delegated when creating a beam (using --roles) are used
when searching for resources that can be requested. Configure the usual Access
Request review policy for access that requires a separate reviewer, using the
Access Request configuration
guide.
Verify the saved role:
tctl get role/beam-user
Confirm that spec.allow.delegation.roles contains the intended list before
creating a beam.
Step 2/4. Create a beam with reduced access
Run the following on the user's workstation, while logged in as the user who will delegate access:
tsh beams add --roles=beam-user,delegated-access
This creates a beam and opens its SSH console. Add any required deny roles to
--roles; the command will report an error if they are missing. Explicitly
selecting roles is useful even when the cluster permits broader delegation,
since each workload can start with only the permissions it needs.
Inside the beam, inspect the active identity:
tsh status
Check Roles and Delegation chain. The chain should start with the user who created the beam and identify the current beam. The role list can also contain automatically generated roles that support Beams and Access Requests. These do not mean the beam has immediate resource access from omitted roles.
List accessible resources using the commands appropriate to your cluster:
tsh apps lstsh mcp lstsh db lstsh kube lstsh ls
An empty list may be expected if the selected roles do not grant access to that resource type. Use the next step to discover resources available through an Access Request.
Applications, including MCP servers, and database resources are accessible
through VNet running in the beam. Use the application's public address shown by
tsh apps ls.
curl https://<app-name>.$TELEPORT_CLUSTER
For databases, inspect the database's DNS identifier:
tsh db ls --format=yaml
To access a database resource, use status.vnet_dns_name as the hostname
prefix:
psql -h <vnet_dns_name>.db.$TELEPORT_CLUSTER -U guest -d example
For databases enrolled by auto-discovery, VNet also accepts the database resource name as the DNS name. Read Database Discovery for an introduction. Connect with the database's native client and an allowed database user. For a worked example, see the Beams database guide. Access other resource types using their usual Teleport client commands.
Step 3/4. Request additional access
Run these commands inside the beam. Choose the resource kind relevant to your workload. For example, discover applications:
tsh request search --kind=app
For other resource types, use node, db, kube_cluster, or
windows_desktop. Search results show resources available to request, which
may include resources the beam cannot currently access. Searching does not grant
access. See Resource Access
Requests for
additional kinds and filters.
Copy the Resource ID from the search results into a request, and provide a reason that explains the task and the access needed:
tsh request create \ --resource=/resource-id \ --reason="Read the application's deployment status to investigate the failed release"
The command waits for review. On approval, it obtains updated credentials and
assumes the request automatically. If denied, the workload does not gain the
requested access. Agents can use the preinstalled teleport-access-request
skill to discover resources and submit requests through the same review process.
The reviewer can open the notification in the Web UI, inspect the requested resources, delegation chain, and reason, then approve or deny the request. Reviewers can also use the CLI from their own logged-in workstation:
tsh request show request-idtsh request review --approve request-id
Use --deny instead of --approve to reject a request. Approve only the
resources needed for the stated task.
Switch between approved requests
Resource-based requests are non-additive: assuming one scopes the active credentials to that request's resources, rather than combining access across requests. For CLI access, switch to another approved request explicitly:
tsh request droptsh login --request-id=request-idtsh status
Check Active requests and Allowed Resources before using the resource. To return to the beam's standing access:
tsh request drop
For application, MCP, and database connections through Beams VNet, VNet selects an applicable approved request for each connection automatically. This allows connections to different approved resources without manually switching the CLI session; each connection is still scoped to its corresponding request.
Step 4/4. Review delegated activity in the audit log
Open Audit > Audit Log in the Teleport Web UI. Find the Access Request or resource access event you want to investigate and select Details to inspect the event's JSON.
For an access_request.create event, inspect delegation.chain to identify the
original user, the requesting beam, and any intermediate sub-beams. The first
entry is the original delegator; the last is the requesting identity. Compare
the requested resources and reason with the review decision, using the request
ID to connect creation and review events.
For resource activity, use beam_id, where present, to identify the beam that
performed the action. Identity fields such as user and bot_name identify the
acting identity, while access_requests links activity to approved requests
when included by the event. This lets you distinguish the workload's actions
from the original user's own activity and check which approved access it used.
See the audit event reference for fields available on each event type and the audit logging guide for viewing events and session recordings.