All posts

CortenDesk 1.19.0 shows how sessions connect

CortenDesk 1.19.0 adds session path logging, WebSocket desktop clients over 443, address-book passwords in the web client, and relay limits.

Illustration of multiple devices connected through direct and relayed paths, with relay traffic and controls represented visually.
Session paths1.19.0

CortenDesk 1.19.0 makes connection paths visible across the console. The connection log now has a Path column and filter for LAN, direct, direct over WebRTC, and relay.

Relayed sessions also show how much traffic the relay carried. You can see the same path data on the device page, and the dashboard now includes a bar showing how sessions connected.

This needs RustDesk 1.5 on the device and the bundled CortenDesk Server 1.3.0. Older devices and older servers show a dash.

Desktop clients over 443

RustDesk 1.4.9 and newer can now run entirely over WebSocket through the same /ws/id and /ws/relay paths used by the web client.

Set the client's ID server to the console hostname with no port. Set its API server to https://<that host>, then turn on allow-websocket.

These sessions always go through the relay.

Web client address-book passwords

The web client can now sign in with a device password kept in an address book the user can read. Connecting from the device list opens the session without a prompt, matching the desktop client behavior.

The browser receives a hash bound to that device's login challenge, never the password. Each use is recorded in the console audit log. Set CORTENDESK_WEBCLIENT_AB_PASSWORDS=false to turn this off.

Audit logs and relay controls

When CORTENDESK_AUDIT_LOG=true is set, CortenDesk also writes each audit record as one JSON line to the container log. This includes console actions, sign-ins, sessions, file transfers, alarms, and admin-API token use. Lines start with {"cortendesk_audit":1,.

Use CORTENDESK_AUDIT_LOG_STREAM to send those records to a file instead.

Settings → Server now sets per-session and total caps for the bundled relay, and can slow down long sessions. Changes apply live.

Fixes

A host folder now works as the /data mount. The container takes ownership of /data and the database files on every start, so a root-owned folder no longer makes every sign-in fail with a 500.

Other fixes include:

  • iOS devices now show as "Outgoing only" instead of offering Connect, Terminal, or Web client.
  • Accounts created through single sign-on now show that the identity provider handles the second factor.
  • Search boxes no longer trigger iCloud Passwords.
  • Wrong 2FA, recovery, and email codes are now limited to 10 per account in 15 minutes from any address, shared by the console and the RustDesk client.

Updating

One migration runs on start for relay_sessions and two connection log columns.

This release bundles CortenDesk Server 1.3.0. If your proxy sends /ws/id and /ws/relay straight to published ports 21118/21119 instead of through port 8080, add its address as the container sees it:

CORTENDESK_WS_TRUSTED_PROXIES=127.0.0.1/32,172.16.0.0/12

If you run hbbs or hbbr yourself, update to CortenDesk Server 1.3.0 for connection paths and WebSocket desktop clients.

docker pull marcpope/cortendesk:1.19.0
docker pull ghcr.io/marcpope/cortendesk:1.19.0

See the full release notes for CortenDesk 1.19.0.