Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Lists Teleport nodes and optionally synchronizes them into the knowledge graph. It is independent of application sign-in and SSH transport.

Prerequisites

  • Reachable Teleport proxy address and port.
  • Worker-readable Teleport identity file with node-listing access and external renewal.

Setup

  • Mount the identity file and configure:
[modules.teleport]
identity_path = "/etc/tbot/identity/identity"
proxy_address = "teleport.example.com:443"

This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

This module lists the nodes registered in a Teleport cluster.

When knowledge graph sync is enabled, each sync treats the discovered nodes as the complete set of Teleport facts for the tenant. Nodes that are no longer discovered, including every node when discovery returns none, are closed and remain queryable as history. Facts from other systems and other tenants are not changed. The sync runs every 5 minutes.

Members

get_nodes

teleport.get_nodes(hostname?, labels?)

Get the Teleport nodes that match an optional search keyword and labels. Returns a list of teleport.Node objects.

Parameters
hostname?optionalstringCase-insensitive search keyword, not an exact hostname filter. Teleport returns every node whose name, hostname, address, public address, label key or value, or command label contains it; compare node.hostname for an exact match.
labels?optionaldict[string:string]Label filters as a dict (e.g., {‘cluster’: ‘cluster01’}). Merged with module-configured labels, which win on conflicting keys.
Returns
nodeslist[teleport.Node]A list of teleport.Node objects.