Repository navigation
Setup page: another machine's picture reaches it (0.9.14) - #156
Open
jacques-pr wants to merge 1 commit into
Open
jacques-pr wants to merge 1 commit into
jacques-pr wants to merge 1 commit into
Conversation
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>
Collaborator
Author
|
CI status on e4b6a67:
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/mapfrom the network with a 403 ("Other machines can read /status and /metrics only"), because the path was never added toStatusEndpoint.sharedPaths. The Models page asks members for/mesh/modelsthe same way and had the same gap.Change
Linux/Endpoints.swift:/mesh/setup/mapand/mesh/modelsare 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…".The Mac app's service is built from the same
Linux/*.swiftfiles, 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