Skip to content

Setup page: another machine's picture reaches it (0.9.14) - #156

Open
jacques-pr wants to merge 1 commit into
mainfrom
claude/project-thread-f9c86s
Open

jacques-pr wants to merge 1 commit into
mainfrom
claude/project-thread-f9c86s

Conversation

@jacques-pr

Copy link
Copy Markdown
Collaborator

What was wrong

Picking another machine on the Setup page showed "Asking…" for ever, on the Mac and on Linux. The other machine's service refused GET /mesh/setup/map from the network with a 403 ("Other machines can read /status and /metrics only"), because the path was never added to StatusEndpoint.sharedPaths. The Models page asks members for /mesh/models the same way and had the same gap.

Change

  • Linux/Endpoints.swift: /mesh/setup/map and /mesh/models are readable from the network; their handlers still answer mesh members only (signature check).
  • Linux/MeshRoutes.swift: both may also be read through another member, for machines only reachable that way.
  • Linux/SetupRoutes.swift: while a member doesn't answer, Gizmo says " isn't answering. I'll keep asking." instead of an endless "Asking…".
  • Version 0.9.14.

The Mac app's service is built from the same Linux/*.swift files, so this fixes both. No Mac-only file changed.

Tested

Linux/tests/mesh.sh (four services) now reads ada's Setup page from bo directly and from cy through bo, and checks a stranger still gets refused on both paths. Passes with this branch; the old build fails it.


Generated by Claude Code

Picking another member on the Setup page showed "Asking…" for ever, on the Mac and
on Linux: the member's service refused GET /mesh/setup/map from the network (403,
"Other machines can read /status and /metrics only"), since that path was missing
from the paths other machines may ask for. /mesh/models, which the Models page reads
from members the same way, had the same gap. Both are now let through (their handlers
still check the member's signature) and may be relayed through another member, for
machines only reachable that way.

While a member doesn't answer, the page now says so ("isn't answering, I'll keep
asking") instead of "Asking…" with nothing after it.

Linux/tests/mesh.sh reads ada's Setup page from bo directly and from cy through bo,
and checks a stranger still can't read either path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE8zW7URxt26sM521VJyiZ
Co-Authored-By: tokenmeter1 <358883051+tokenmeter1@users.noreply.github.com>

Copy link
Copy Markdown
Collaborator Author

CI status on e4b6a67:

  • linux: "The mesh" step passes, including the new Setup page checks. The one red step, "The idle service stays within its budget", is red on main too (runs on ba4b621, 012638d), so it isn't from this PR.
  • android: "Pairing and signing against the service" stopped with curl exit 22 and no other output, right after the service build. The only silent curl -f there is Android/tests/app.sh fetching org.json from Maven Central, so it looks like that download failed. This PR doesn't touch the Android code or the pairing routes, and android is green on main. I'll re-run the failed jobs once the run finishes. Right now the Mac jobs are still waiting for a runner.

Generated by Claude Code

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.

2 participants