Skip to main content
On this page

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

  1. Find the target in Connections → Workspace or in the Inventory views.
  2. Click Connect (or the protocol-specific launch button).
  3. 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.
  4. 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 connect action 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, or tls — along with ignore_cert for 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:

StateDescription
pendingSession record created; proxy leg not yet confirmed
activeProxy connection established; traffic flowing
disconnectedClosed gracefully by its owner
terminatedForce-killed by an operator with sufficient rights
failedConnection 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:

FieldMeaning
kindshared — org-wide account; personal — belongs to your user profile
labelDisplay name shown in the picker
usernameThe OS username that will be used (if known in advance)
is_defaultWhether this account is pre-selected
requires_inputWhether the account needs a password or key from you; launching it opens the credentials dialog
color / iconOptional visual hints configured by the administrator
sourceAttribution: 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

MethodPathPurpose
GET/api/v1/connections/targetsList connection targets
GET/api/v1/connections/targets/{id}/launch-optionsResolve launch options
GET/api/v1/connections/targets/{id}/effective-configResolve effective connection config
GET/api/v1/connections/sessionsList sessions
POST/api/v1/connections/sessionsCreate session
POST/api/v1/connections/sessions/{id}/disconnectGracefully close your own session
POST/api/v1/connections/sessions/{id}/terminateForce-terminate a session
POST/api/v1/connections/sessions/{id}/resumeFresh WebSocket details for an active session
GET/api/v1/connections/sessions/{id}/client-credentialsSession credentials (RDP/VNC only)
GET / POST/api/v1/admin/proxy-nodesList / create proxy nodes
PUT / DELETE/api/v1/admin/proxy-nodes/{id}Update / delete a proxy node
GET / POST/api/v1/user/settings/credentialsList / 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}/defaultMark a credential set as default

Session file-transfer endpoints are listed on Active sessions; the full contract lives in the API reference.