Connections
Open SSH, RDP and VNC sessions to allowed inventory targets in the browser. Piping relays the protocol traffic through the backend or assigned proxy node; no agent is required on the target. The cctv protocol opens a device console instead of a session.
The connections workspace
Open Connections → Workspace to browse inventory targets as a table, cards or tree. Use full-text search, filters and saved presets to find a host. The list refreshes roughly every 10 seconds.
Click a target to open its inspector: site, role, IP addresses, tenant and Connect buttons for configured, permitted protocols. To change the host or related records, choose Edit (see Inventory). Each host has a shareable URL.
Sessions open as workspace tabs. Drag to reorder them, hover for host details (role, site, region, tenant, cluster), or press Alt+1..9 to select a tab. A single tab or the whole strip can be detached to another browser window; tabs can also be pulled out of a detached group. Bulk selection starts a playbook run across several targets.
Live sessions across all users are monitored under Connections → Active — see Active sessions.
Opening a session
- Find the target in Connections → Workspace or in the Inventory views.
- Click Connect (or the protocol-specific launch button).
- Pick an account: shared accounts are direct buttons, your personal accounts sit in the caret menu beside them. If the account has no stored secret for you, a credentials dialog opens to collect it before launch.
- The session opens in a new panel within the same browser window.
Tip: If the launch button is greyed out, your RBAC policy does not grant the
connectaction on that connection target. Contact your administrator or see Access control.
Protocol details
SSH
The backend negotiates SSH with the target, so nothing is installed on it.
- Window resize is forwarded to the remote PTY automatically.
- A dropped connection, including a silent network death, is distinguished from a clean logout: the terminal shows a disconnected overlay with one-click reconnect. Authentication failures fail fast with a clear error state.
- A dockable file browser transfers files over the same authenticated session — no separate SFTP credentials. See Active sessions.
RDP
The backend hands RDP to guacd and relays the desktop to the browser.
- Full desktop rendering; the remote display resizes dynamically to match the browser window.
- The security mode is configurable per record —
any,nla,rdp, ortls— along withignore_certfor self-signed certificates. - Resolution, DPI, and colour depth come from the resolved connection configuration.
- A health check detects dropped or half-open connections and offers reconnect.
VNC
Piping proxies VNC to the target and renders the screen in the browser.
- Supports both VNC password authentication and password-less servers.
- Viewport scales to the browser window.
- Keyboard and mouse input is forwarded directly.
- A health check detects dropped or half-open connections and offers reconnect.
CCTV
Cameras and recorders are launched the same way as the other protocols — a CCTV button in the target's connect panel — but what opens is a device console, not a session. The console calls /api/v1/cctv/{target_id}/… directly, so no backend session record, WebSocket, or session token is created.
- Because no session record exists, a camera console never appears in Connections → Active, and none of the session states below apply to it.
- Closing the tab drops it locally; there is no disconnect call. Reconnecting refetches the console's device queries rather than re-establishing a transport.
- Reopening the same camera focuses the existing tab instead of stacking a duplicate.
- The backend dials cameras and recorders directly. CCTV traffic does not go through proxy nodes today, so the backend itself must be able to reach the device.
The console — live view, channels, PTZ, the recording archive, clip export, and on-device accounts — is documented on CCTV.
Note: RDP observe/control is not available through the MCP server today. RDP sessions are browser-only. SSH and VNC have MCP tool support — see the MCP page.
Session lifecycle
Every session passes through the following states:
| State | Description |
|---|---|
pending | Session record created; proxy leg not yet confirmed |
active | Proxy connection established; traffic flowing |
disconnected | Closed gracefully by its owner |
terminated | Force-killed by an operator with sufficient rights |
failed | Connection dropped or never established |
The three end states are terminal; transitions are validated server-side. See Active sessions for monitoring, disconnect and terminate actions.
The backend WebSocket endpoints for each protocol are:
GET /api/v1/ws/ssh/{session_id}
GET /api/v1/ws/rdp/{session_id}
GET /api/v1/ws/vnc/{session_id}
Audit events are written at each lifecycle transition — connection.session.created, .activated, .disconnected, .terminated, .failed — with the actor's identity, the target, and the protocol. See Audit log.
Launch accounts
When you open the launch picker, Piping resolves which credential accounts are available for that target and protocol. Each account in the list has:
| Field | Meaning |
|---|---|
kind | shared — org-wide account; personal — belongs to your user profile |
label | Display name shown in the picker |
username | The OS username that will be used (if known in advance) |
is_default | Whether this account is pre-selected |
requires_input | Whether the account needs a password or key from you; launching it opens the credentials dialog |
color / icon | Optional visual hints configured by the administrator |
source | Attribution: which connection-config record or credential set contributed this account |
Shared accounts come from connection-config records assigned to the target's scope hierarchy (global → region → site → … → device → vm). A record becomes a shared account when its resolved parameters include credentials.username; records without a username act as defaults for address, port, URL, RDP options, and presentation.
Personal accounts come from your own credential sets stored in your user profile. They do not create launch buttons by themselves: an administrator must configure a connection-config record for the protocol on the target or one of its scopes. Once that exists, your personal set appears in the launcher as a login option and is overlaid on top of the connection-config parameters. See Connection configuration for how the resolver works.
Personal credential sets
You can store your own named credential bundles under Account → Settings, in the Credentials section. A personal credential set is per-protocol and contains:
- For SSH: username, password or private key.
- For RDP: username, optional domain, password.
- For VNC: password.
Personal credential sets are private — only you can see or use them. One set per protocol can be marked default, and secret values are write-only: they are never displayed back. See User settings and Secrets.
Proxy nodes
If a target host lives in a network segment that is not directly reachable from the main Piping backend (e.g., a remote data centre or an isolated DMZ), a proxy node reaches it instead. A proxy node is the same backend binary running with PIPING_RUN_MODE=proxy: it terminates protocol traffic next to the targets and exchanges WebSocket frames with the central backend.
Nodes are registered under Administration → Proxy Nodes, and each inventory target can be pinned to a node. Targets without an assignment are served by the embedded proxy runtime inside the backend. Deployment, registration, and routing are covered on Proxy nodes.
Proxy nodes carry SSH, RDP, and VNC traffic. CCTV device I/O is dialled directly from the backend and is not routed through a node.
Credential security
Credentials are never stored in the browser. For SSH they never leave the backend at all — the backend negotiates SSH itself. For RDP and VNC, after a session is created the browser fetches the minimum the protocol client needs:
GET /api/v1/connections/sessions/{id}/client-credentials
The response is scoped to that session only — username and password for RDP, password for VNC. Secret values are decrypted server-side and are not written to the audit log or retained in browser storage. See Secrets for the storage model.
REST API reference
| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/connections/targets | List connection targets |
GET | /api/v1/connections/targets/{id}/launch-options | Resolve launch options |
GET | /api/v1/connections/targets/{id}/effective-config | Resolve effective connection config |
GET | /api/v1/connections/sessions | List sessions |
POST | /api/v1/connections/sessions | Create session |
POST | /api/v1/connections/sessions/{id}/disconnect | Gracefully close your own session |
POST | /api/v1/connections/sessions/{id}/terminate | Force-terminate a session |
POST | /api/v1/connections/sessions/{id}/resume | Fresh WebSocket details for an active session |
GET | /api/v1/connections/sessions/{id}/client-credentials | Session credentials (RDP/VNC only) |
GET / POST | /api/v1/admin/proxy-nodes | List / create proxy nodes |
PUT / DELETE | /api/v1/admin/proxy-nodes/{id} | Update / delete a proxy node |
GET / POST | /api/v1/user/settings/credentials | List / create personal credential sets |
PUT / DELETE | /api/v1/user/settings/credentials/{id} | Update / delete a personal credential set |
POST | /api/v1/user/settings/credentials/{id}/default | Mark a credential set as default |
Session file-transfer endpoints are listed on Active sessions; the full contract lives in the API reference.