Skip to content

feat(cloud): retire the Frankfurt relay from Core - #1687

Merged
frahlg merged 2 commits into
masterfrom
feat/retire-frankfurt
Oct 17, 2026
Merged

frahlg merged 2 commits into
masterfrom
feat/retire-frankfurt

Conversation

@frahlg

@frahlg frahlg commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Remote apps now reach Core only through FTW Cloud. Core stops opening the Frankfurt relay socket and stops advertising the old command exchange. Existing inner Noise sessions and Core's command checks stay on the Cloud tunnel. Older app pairings may need a new QR.

Browser box.unreachable notices move to optional, bounded rows in the box-signed service-only roster. Core encrypts the notice and signs the short-lived VAPID authorization at home. The roster binds each subscription to the current enrolled device and epoch; revoked devices vanish before the subscription sweep. The Cloud service uses its existing offline timer and update grace. No HTTP deadman route, second socket or legacy bridge is added.

Anonymous daily reports use https://cloud.ftw.energy/v1/fleet. The exact seven-field report and bounded daily totals live in the public protocol module. An explicitly saved old default resolves to Cloud; private collectors keep their chosen address.

Paired service: https://github.com/srcfl/ftw-cloud/pull/28. Merge this protocol source first, deploy the paired service next, then publish this Core beta. Do not publish the new Core build before the service can accept browser notice rows and fleet reports. Native iOS retirement is srcfl/ftw-app#83; the web client already shipped in srcfl/ftw-webapp#95. Cloud #14 and Core #1633 describe the paused relay-port proposal; this change uses the existing /v1/box and /v1/app tunnel.

Validation: affected Core packages passed with the race detector; fleet schema/bounds, signed Cloud roster and QUIC golden vectors, real box command through Cloud with a trap on the retired relay address, current device epoch and revoke tests. Full local make verify passed (tests, vet, build and protocol/import boundaries). All required CI must pass before merge. No hardware or field soak is claimed. The minor changeset requires a beta; this does not promote stable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T07:05:36.191605Z cbdd8a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cbdd8a5871

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread go/internal/config/config.go Resolved
@frahlg
frahlg merged commit 091baf3 into master Oct 17, 2026
@frahlg
frahlg deleted the feat/retire-frankfurt branch November 11, 2026 09:17
frahlg added a commit that referenced this pull request Nov 28, 2026
…2114)

* fix(cloud): remove the retired relay client, keep the watch exchange

Core stopped dialling the relay in #1687 and Uplink.Run never reaches the
relay code. This is #1691 on current master: the dial loop, hourly handle
rotation and epoch correction, the dead man's switch, the rendezvous handle,
the relay's session table and the tests that drove a fake relay go. The
tests that still matter run through the FTW Cloud tunnel.

Unlike #1691, the watch exchange stays: #1819 moved it onto FTW Cloud.

RotateRendezvousSecret goes; only a test called it. The box still puts the
secret in the QR, so the pairing QR keeps its six segments. The software
identity's route lookup asks for cloud.ftw.energy.

Refs #1691

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(protocol): say FTW Cloud cannot read session contents

The relay and the escrow are gone, so the three lines that named them now
name FTW Cloud. The web client's working copy changes the same way in its
paired pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>

* docs: drop the relay from comments, and date the end of /v1/ohttp

Comments in api_app_link.go, appproto's Tick and appenroll's package doc
still named the relay as a live carrier. docs/architecture.md said the
fleet report goes through an Oblivious HTTP relay once a release names one,
and from a box that said yes; it goes straight to FTW Cloud, only with
Cloud on. ADR 0008 gets a dated note that ftwcloudd no longer serves
/v1/ohttp (srcfl/ftw-cloud#72).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>

---------

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
frahlg added a commit that referenced this pull request Nov 29, 2026
Core stopped dialling the relay in #1687 and #2114 removed its client.
Handler.Tick and agentTick stayed, with only tests calling them, and
comments and config.example.yaml still named the relay as the way a
phone reaches the box.

Remove Tick, its cadenceLeft counter, agentTick and errAgentEnded. A
session through FTW Cloud streams with Push and Beat, and the agent
sweep and revocation end an agent's holds and sessions. Tests that
drove Tick now use Push, or Beat with the clock for a hidden session.
Comments now name FTW Cloud where they named the relay.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant