Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
a59e3a7
Device health: a relay status store with enrolment tokens, device-sig…
fnpanic Nov 24, 2026
7cc3c3e
CI: macOS jobs run on macos-15 (macos-14 is gone); three tests no lon…
fnpanic Nov 24, 2026
1920211
Enrolment token: optional customer reference (valid_customer, make_to…
fnpanic Nov 24, 2026
05d2b39
Relay: a device's customer reference. An enrolment token with one set…
fnpanic Nov 24, 2026
c0a139a
monitor-publish: token --customer (checked before the passphrase), Cu…
fnpanic Nov 24, 2026
db808ed
Desktop: a host's customer reference in the host list (Customer colum…
fnpanic Nov 24, 2026
b53afe1
Docs: the customer reference (health.md: tokens, a Customer reference…
fnpanic Nov 24, 2026
d0f29c8
Desktop: customer:none matches a host that reports health but has no …
fnpanic Nov 24, 2026
7639451
Final review: customer reference in PRIVACY.md, older tether-api lock…
fnpanic Nov 24, 2026
a166953
Relay: changing an enrolled device's customer needs the device's own …
fnpanic Nov 24, 2026
834d16a
TETHER_INSTANCE: build-time instance name so two organisations' Tethe…
fnpanic Nov 24, 2026
114acb9
Docs for TETHER_INSTANCE: several-organisations.md "Two organisations…
fnpanic Nov 24, 2026
69fa18a
TETHER_INSTANCE fix round 1: release builds stop when the Tauri produ…
fnpanic Nov 24, 2026
286a740
Instance docs follow 69fa18a: a release build stops when productName …
fnpanic Nov 24, 2026
4c196c4
Docs: customer change needs a pin to exist, customer reference kept 1…
fnpanic Nov 24, 2026
2e7cbcb
Status enrolment needs the device's signature on every request: 401 e…
fnpanic Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
TETHER_PUB_KEY: ${{ secrets.TETHER_PUB_KEY }}
TETHER_ADMIN_PUB_KEY: ${{ secrets.TETHER_ADMIN_PUB_KEY }}
TETHER_UPDATER_PUB_KEY: ${{ secrets.TETHER_UPDATER_PUB_KEY }}
# Optional repository variable: build Tether-<i>, installable beside the default app (build.rs).
TETHER_INSTANCE: ${{ vars.TETHER_INSTANCE }}
# Only whether the signing secrets exist (for `if:`); the secrets themselves go to the signing steps alone.
HAVE_SIGNPATH: ${{ secrets.SIGNPATH_API_TOKEN != '' }}
HAVE_WINDOWS_P12: ${{ secrets.WINDOWS_SIGNING_P12 != '' }}
Expand All @@ -33,6 +35,9 @@ jobs:
with: { targets: "${{ matrix.target }}" }
- uses: actions/setup-node@v4
with: { node-version: 22, cache: npm, cache-dependency-path: apps/desktop/package-lock.json }
- name: Installer hooks name no app literally (instance builds)
shell: bash
run: bash scripts/check-hooks.sh
- name: Fetch pinned sources and apply patches
shell: bash
run: bash scripts/bootstrap.sh
Expand Down Expand Up @@ -64,7 +69,14 @@ jobs:
- name: Bundle
working-directory: apps/desktop
shell: bash
run: npx tauri build --target ${{ matrix.target }} --bundles nsis
run: |
config=$(bash ../../scripts/instance-config.sh "$TETHER_INSTANCE")
npx tauri build --target ${{ matrix.target }} --bundles nsis ${config:+--config "$config"}
# The release index takes only Tether_<v>_x64-setup.exe, for an instance build too.
if [ -n "$TETHER_INSTANCE" ]; then
cd src-tauri/target/${{ matrix.target }}/release/bundle/nsis
for f in "Tether-${TETHER_INSTANCE}_"*_x64-setup.exe; do mv "$f" "Tether_${f#"Tether-${TETHER_INSTANCE}_"}"; done
fi
# Free self-signed Authenticode (scripts/make-windows-cert.ps1), mirroring the macOS cert.
# Gives a stable publisher identity and full trust on fleets that deploy the .cer (GPO/Intune);
# inert without the secret. Superseded by the SignPath step below once that is approved.
Expand Down Expand Up @@ -126,7 +138,7 @@ jobs:

# Unsigned universal build (Apple silicon + Intel), the same script as on a developer Mac.
macos:
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -176,6 +188,8 @@ jobs:
name: tether-macos-universal
path: dist/macos/*
- name: Smoke test (window shown, no admin prompt)
# It checks Tether.app; an instance build ships Tether-<i>.app.
if: env.TETHER_INSTANCE == ''
shell: bash
run: bash scripts/smoke-macos.sh dist/macos
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mac-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
permissions: { contents: read, actions: read }
jobs:
smoke:
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
permissions: { contents: read, actions: read }
jobs:
smoke:
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: server
on:
push:
branches: [main]
paths: [server/**, vendor/**, crates/**, patches/**, scripts/**, tools/macbuild/**, .github/workflows/server.yml]
paths: [server/**, vendor/**, crates/**, patches/**, scripts/**, tools/macbuild/**, tools/monitor-publish/**, tools/load/**, apps/manage/src-tauri/src/keys.rs, .github/workflows/server.yml]
# Pull requests that touch the relay, the device-status tools or the shared crates.
pull_request:
paths: [server/**, crates/**, scripts/**, tools/monitor-publish/**, tools/load/**, apps/manage/src-tauri/src/keys.rs, .github/workflows/server.yml]
workflow_dispatch:

permissions:
Expand All @@ -25,6 +28,14 @@ jobs:
- name: Test tether-trust
working-directory: crates/tether-trust
run: cargo test --release
# The device-status admin tool: unit tests, then end to end against the tether-api built above.
- name: Test tools/monitor-publish
working-directory: tools/monitor-publish
run: |
cargo test --release
TETHER_API_BIN="$RUNNER_TEMP/relay/bin/tether-api" cargo test --release --test e2e -- --ignored
- name: Build the status load generator (tools/load/status-run.sh runs it by hand)
run: cargo build --release --manifest-path tools/load/status-load/Cargo.toml
# The Mac build runner and its client (stdlib + ssh-keygen, no network).
- name: Test tools/macbuild
run: python3 -m unittest discover -s tools/macbuild
Expand Down
101 changes: 101 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,107 @@ from 0.6.0 Tether, TetherQS and Tether Manage share one version, kept in sync in

## [Unreleased]

### Device health (not in a numbered version yet)

- **Health of supported machines in the host list.** A relay can now store health reports from a
monitoring agent, a separate program that is not part of Tether: a device enrols once with a
short-lived token an administrator creates (`scripts/status-token.sh`), signing the enrolment
with its own key, then signs every report with it (`Tether-Sig: device-v1`; an enrolment without
it gets `401 enrolment needs the device's signature`, so enrolling proves possession of the key
being pinned). The host list shows a health dot and Health,
Products and Agent columns, finds hosts with `health:`, `product:`, `version:`, `role:`,
`check:`, `agent:` and `since:`, and has a built-in view *Needs attention* (critical, not
reporting, or in a link conflict). The host detail gains a Health section with the failing checks first, setup items,
90 days of history, all checks and the raw report; a session window has a Health button; the
export adds health fields and a CSV with one row per failing check. On Windows Tether notifies
when a host turns critical or stops reporting, at most once per host and hour; a switch in the
team dialog turns it off. Machines with an agent but without Tether appear as rows without a
connect action. `role:` used to be a plain word that found tags; it now means the detected
role (`#role:server` still finds the tag) in the search box; in tag rules all the new terms stay
plain words as before, so shared rules tag the same hosts on older desktops.
Needs the technician to be in the team roster. Report format, relay settings and operation:
[docs/health.md](docs/health.md).
- **Relay (tether-api).** New routes `POST /api/status/enroll`, `POST` and `DELETE /api/status`,
`GET /api/team/status[/<uuid>]` and `DELETE /api/admin/status/<uuid>`
([docs/api.md](docs/api.md#device-status-health-reports)). The relay paces the devices
(`STATUS_TARGET_RPS`, default 10 posts per second), keeps heartbeats in memory, writes
`seen.json`, the summary cache, the compaction of `status/keys.jsonl` and history trimming
off the request path, caps enrolment (`STATUS_MAX_DEVICES`, default 20 000) and can switch the
whole feature off (`STATUS=off`). A pin or revocation file it cannot read (`keys.jsonl`, `revoked.json`) locks only the status routes (503);
sessions, policy and updates are not affected. New gauges `tether_api_status_hosts` and
`tether_api_status_write_errors`; `/api/team/*` requests are now counted as endpoint `team`
instead of `other`. Privacy and security: [PRIVACY.md](PRIVACY.md),
[SECURITY.md](SECURITY.md#device-status-health-reports).
- **A second signed release index per channel, `monitor.json`,** carries the agent
(`monitor/windows-x86_64`) and its check packs (`monitor-packs/any`). `releases.json` refuses
these keys and `monitor.json` refuses Tether's, so installed Tether clients never read it and
Tether's release generation does not move. Publish with `scripts/monitor-publish.sh` (it runs
`tools/monitor-publish`, which reads Tether Manage's key file); Tether Manage has no screen for
it yet. The new `Caddyfile` and `nginx.conf` route `monitor.json` to tether-api,
so they go out with it ([docs/updates.md](docs/updates.md#device-status-agent-monitorjson-and-enrolment-tokens)).
It expires 30 days after a publish: `monitor-publish refresh` (`scripts/monitor-refresh.sh`)
signs it again with a new expiry, the tool never publishes below the highest serial it ever
published (`monitor-serials.json`), and `tether_api_release_index_expires_timestamp{index="monitor"}`
shows the expiry.
- **Tokens can be revoked, Tether IDs are verified, devices can be removed.** An enrolment token
now carries a random id (required; tokens without one are refused) and can be issued for one
Tether ID (`--tether-id`): that token enrols one device, with exactly that ID. Tokens are
revoked with `monitor-publish revoke` (admin route `POST /api/admin/status/revoke`, kept in
`status/revoked.json`; a revoked token gets `401 token revoked`); devices that enrolled with it
stay until removed. A Tether ID that a device names with any other token is only a claim: the
host list shows the agent on a row of its own with "Claims to be …" and **Link to this host**,
which a team member with `write` confirms once (`POST /api/team/status/<uuid>/link`; the relay
records who and when, and the detail shows it with **Unlink**, which also dismisses the claim
until a member chooses **Allow a new claim**). Nothing links by itself, and a report cannot
change a link. Two devices linked to one Tether ID on different relays are shown as a **link
conflict**, joined to neither. Pins from before this change keep their Tether ID only as a claim. **Remove from health monitoring…** in the Health section (members
with `write`, `DELETE /api/team/status/<uuid>`) and `monitor-publish remove` remove a device on
every relay; `monitor-publish devices` lists them (`GET /api/admin/status/devices`, paged) and
`monitor-publish tokens` the issued tokens (a local journal without the tokens themselves).
A bound token or a technician's confirmation is the word of a trusted person, not a proof by
Tether on the machine ([SECURITY.md](SECURITY.md#device-status-health-reports)).
- **Customer reference.** An enrolment token can name a customer (`monitor-publish token
--customer 4711`, or the 4th argument of `scripts/status-token.sh`; 1 to 32 characters
`A-Z a-z 0-9 . _ -`). The relay sets it on the device that enrols with the token, also on one
that is already enrolled (the journal says so). As every enrolment is signed with the device's
own key, a token holder who knows another device's uuid and public key can neither move it nor
create a pin for it. A token without one changes nothing, and a device
cannot name it. The team summary, the host detail and `GET /api/admin/status/devices` return
it; the host list has a Customer column, the search term `customer:` and the field in both
exports; `monitor-publish devices --customer` lists one customer's devices. A relay from before
this refuses a token with a customer: update tether-api first. Once a token with a customer has
been used, an older tether-api can no longer read `status/keys.jsonl` and locks the status
routes (503). It groups devices inside one
deployment and is not a security boundary
([docs/health.md](docs/health.md#customer-reference),
[SECURITY.md](SECURITY.md#device-status-health-reports)). Separate organisations need separate
deployments: [docs/several-organisations.md](docs/several-organisations.md).
- Checked and not checked: to be filled in at release.

### Instances: two organisations' Tether on one PC (not in a numbered version yet)

- **`TETHER_INSTANCE`**, an optional build value (1 to 16 characters `a-z 0-9`), builds a
technician app that installs beside the default one or beside another instance: with `north`
it is `Tether-north` (`tether-north.exe`, identifier `app.tether.desktop.north`, link scheme
`tether-north://`) with its own device ID, settings folder, Windows service, firewall rule,
machine policy key (`HKLM\SOFTWARE\Policies\Tether-north`, macOS `net.tether.app.north`) and
recording folder. Unset, the build is unchanged. It must be built together with the
`--config` that `scripts/instance-config.sh` prints; the `desktop` workflow (repository
variable `TETHER_INSTANCE`) and `scripts/build-macos.sh` do both and rename the files to the
usual `Tether_<version>_…` names. The installer hooks name the app through `${PRODUCTNAME}`
only (`scripts/check-hooks.sh` in CI). Limits: of two builds on one PC only the one started
first gets direct connections (both use TCP 21118 and UDP 21119), `tether://` links open only
the default build, an existing install cannot become an instance, and each organisation
publishes only its own build
([docs/several-organisations.md](docs/several-organisations.md#two-organisations-on-one-pc)).
A release build also checks that the Tauri product name matches the instance (`Tether` for
none, `Tether-<instance>` otherwise) and stops with a message when it does not. Checked: the
unit tests with and without the value, refused values, three real Windows bundle runs
(none installed): `north` with its `--config` built `Tether-north_0.6.3_x64-setup.exe`;
`north` without it stopped at the product-name check; the default build with north's
`--config` stopped at it. Not checked: installing it, two builds side by side, the service and firewall
rule on a real PC, updates, the macOS build.

### 0.6.3 (2026-11-23; files in dist/, ready to publish; frozen)

Six files in `dist/` (Windows setup and TetherQS signed; Mac files universal, as built by the
Expand Down
10 changes: 10 additions & 0 deletions PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ What goes to those relay servers:
| Screen, input, clipboard, files and audio of a session | The remote session itself; encrypted between the two devices, the relay only forwards it | not stored |
| Session audit record: time, device, technician name, IP address, duration, names of transferred files, security alarms | Accountability of remote access (shown in Tether Manage) | daily files, kept for the retention the organization sets |
| Update checks: app, channel, version | Offering signed updates | access logs of the relay |
| Health report, only on machines where the organization installed a monitoring agent: machine name, names and versions of installed products, the state, title, value and hint of each check, agent version, time of the last report | Showing the health of supported machines to technicians | the last full report and 90 days of state changes; removed when the device is removed or after 180 days without a report |
| Customer reference, only on machines where the organization installed a monitoring agent and its administrator put one in the enrolment token: a short label such as a customer number (set by the administrator, never by the machine) | Grouping supported machines by customer in Tether | with the device's enrolment: removed when the device is removed or after 180 days without a report |

Health reports come from a separate monitoring agent, not from Tether or TetherQS, and only if the
organization installed it. They go to the same relay servers, are not end-to-end encrypted, and can be
read by the relay's operator and by every member of the organization's technician team in Tether.
What a report contains is decided by the agent; the format is described in [docs/health.md](docs/health.md).
When a technician links a monitoring agent to a host in Tether, the relay stores that technician's
name (as in the team roster) and the time with the device's enrolment; every team member sees it,
and it is removed with the device.

Session recordings are made only when recording is switched on and are saved on the technician's
computer. They are uploaded only if the organization's signed policy sets an upload target
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ in the middle. You run the relay; the apps talk only to it.
installer, no admin rights. You can brand it: [docs/quick-support.md](docs/quick-support.md).
- **Hundreds of hosts.** Tags, saved searches, bulk actions and a command palette:
[docs/advanced.md](docs/advanced.md).
- **Health of supported machines.** A separate monitoring agent reports to your relay, and the host
list shows which machines need attention, with no inbound port on the machine:
[docs/health.md](docs/health.md).
- **Central management.** Tether Manage signs policies and releases on the administrator's PC;
the relay only serves them: [docs/management.md](docs/management.md).
- **Also included:** unattended access, file transfer, recording with consent, 2FA, signed
Expand Down Expand Up @@ -113,6 +116,8 @@ If Tether is useful to you, a star helps others find it.
[docs/recording.md](docs/recording.md), [docs/cli.md](docs/cli.md),
[docs/troubleshooting.md](docs/troubleshooting.md), [docs/api.md](docs/api.md),
[docs/key-rotation.md](docs/key-rotation.md), [docs/upstream.md](docs/upstream.md) (RustDesk pin and upstream review), [docs/download-page.md](docs/download-page.md) (custom download page templates).
- **Several organisations:** one deployment each; no tenants inside a relay:
[docs/several-organisations.md](docs/several-organisations.md).
- **Scale and HA:** several relays and Kubernetes: [docs/relay-ha.md](docs/relay-ha.md),
[docs/kubernetes.md](docs/kubernetes.md); performance: [docs/performance.md](docs/performance.md);
macOS build: [docs/macos.md](docs/macos.md); Mac builds from the PC while the Mac is locked (signed
Expand Down
Loading
Loading