Connections
The connection log: who reached which session, from which device, by which stream.
List connections
The connection log, oldest first - who reached which session, from which device, by which kind of stream, with how many bytes and why streams closed.
One row per window the worker reports: the verified tunnel streams of one grant, kind, port and client over about a minute, ping excepted. A window that opened a stream is also a dev.tunnel.connect record of the audit log. principal matches a row's person or its agent; since and until keep the windows that overlap them. A worker released before reports no windows. An audit read, a person's or a service's: an agent principal is refused 403 principal_not_allowed, and dev_connections_list serves an agent that runs under its person's credential, reading what that person may.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | Optional | |
limit | integer | Optional | |
session_id | string | Optional | |
principal | string | Optional | a subject, user:<id> or agent:<id> |
since | string (date-time) | Optional | windows that end at or after this moment |
until | string (date-time) | Optional | windows that start before this moment |
Response
datadata[].active- streams still open at its end
data[].agent- the verified agent identity, agent:<id>, when an agent acted
data[].bytes_down- bytes the worker sent in the window
data[].bytes_up- bytes the worker received in the window
data[].client- the client label, mcp:<pid>[:<agent>], cli, browser
data[].closed- streams closed in the window
data[].device- the device key's fingerprint
data[].fromdata[].grantdata[].kind- the stream kind's ticket name: tcp, sync, exec, ssh, ssh_ro, logs, browser,...
data[].opened- streams opened in the window
data[].port- a tcp stream's port
data[].principal- the ticket's principal, the person answerable: user:<id>
data[].reasons- why the closed streams ended, with counts: closed, or a failure code
data[].seq- the row's place in the log
data[].session_iddata[].todata[].workerhas_morenext_cursor
curl "$CIRESK_API/v1/dev/connections" \
-H "Authorization: Bearer $CIRESK_KEY"