What Changed
T3 Connect now checks that the relay client it manages is the release it pins before starting the connector. If the binary at the pinned path reports a different version, the app reinstalls the pinned release through the existing checksum-verified, locked installer and then connects with it. Relay client status checks stay read-only, so they never download or replace a binary, including one a running connector is using.
The check runs cloudflared version and requires an exact match. Its result is cached until the binary file changes, so a healthy install is probed once. An automatic repair has a 30-second limit, including any wait behind a manual install; if it fails or times out, connector startup goes ahead without waiting further (a replacement already in progress still finishes in the background, so the binary is never left half-swapped), the existing binary is kept, a warning is logged, and further automatic attempts wait five minutes. A manual install still retries immediately. A relay client chosen explicitly, or found on PATH, is never replaced, and the connector still runs with --no-autoupdate.
Upstream as pingdotgg#16607 cloudflared-pinned-version.
Why
Before pingdotgg#9386 the managed relay client ran without --no-autoupdate and could replace itself in place, leaving a newer release at the pinned path than the one T3 Code pins and checksums. The app kept launching it, so a host could run a release the app never tested, and hosts on the same app version could run different connectors.
Checklist
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes
- I included a video for animation/interaction changes