Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/remove-retired-relay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ftw": patch
---

Remove the retired relay client and use FTW Cloud for the network route lookup that binds software identity. App sessions continue through the existing Cloud tunnel.
4 changes: 2 additions & 2 deletions go/cmd/ftw/app_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ func goalRev(st loadpoint.State) uint32 {
return h.Sum32()
}

// startAppLink connects the box to the app relay when its loaded config leaves
// the link enabled. Config defaults an omitted app_link section on.
// startAppLink prepares app sessions for the FTW Cloud tunnel when enabled.
// Config defaults an omitted app_link section on.
//
// It returns the enrollment identity whether or not the uplink runs, because
// the QR code on the lid is minted from it and a box with the link switched
Expand Down
4 changes: 2 additions & 2 deletions go/cmd/ftw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ func main() {
}

// The FTW app's uplink. It speaks the app's own protocol end to end and
// reaches the box through a relay that holds no keys.
// reaches the box through the encrypted FTW Cloud tunnel.
appLinkWatchdog := time.Duration(cfg.Site.WatchdogTimeoutS) * time.Second
if appLinkWatchdog <= 0 {
appLinkWatchdog = 60 * time.Second
Expand All @@ -2410,7 +2410,7 @@ func main() {
case appLinkErr != nil:
slog.Warn("app link unavailable", "err", appLinkErr)
case appLinkEnabled:
slog.Info("app link connected", "relay", appuplink.Endpoint,
slog.Info("app link ready", "transport", "cloud",
"paired_devices", appEnroll.AuthorisedCount())
default:
slog.Info("app link disabled — set app_link.enabled to turn it on")
Expand Down
306 changes: 0 additions & 306 deletions go/internal/appproto/exchange.go

This file was deleted.

Loading
Loading