Repository navigation
sbplugin: Starboard's API through STARBOARD_API_SOCKET when given (DASH-482) - #37
Merged
Merged
Conversation
TheMightyTRex
force-pushed
the
plugin-api-reach
branch
from
November 19, 2026 10:35
9b7886f to
8d30c13
Compare
…SH-482) A plug-in on its own internal network, such as Disk forecast or Download summary, has no route to Starboard, which runs on the server's own network. Starboard now keeps a socket in the plug-in's run folder; starboard() uses it when it is there and STARBOARD_API over HTTP otherwise, so older Starboards still work. Every copy of the shared helper is updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TheMightyTRex
force-pushed
the
plugin-api-reach
branch
from
November 19, 2026 11:05
8d30c13 to
7d37d8c
Compare
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.
Starboard part: TheMightyTRex/starboard issue 202 (DASH-482). Plug-ins on their own internal network, such as Disk forecast and Download summary, cannot reach Starboard, which runs on the server's own network. Starboard now keeps a Unix socket in each active plug-in's run folder and gives it as
STARBOARD_API_SOCKET(/run/starboard/api.sock)._shared/sbplugin.py:starboard()sends its request through the socket when the file is there, with the path fromSTARBOARD_APIand the plug-in's key; a refusal raisesHTTPErrorasurlopendoes. Without the socket (an older Starboard) it callsSTARBOARD_APIover HTTP as before.tools/make_examples.py, and the six folders it does not write). Remote access and Picture shrinker keep their own copies; both are on thelannetwork, which reaches Starboard over HTTP since pull request 201 in Starboard.tests/test_api_socket.py: the socket is used when given, a refusal raises, and HTTP is used without it.help/developers/plug-in-api.md: a line in the rules.No version numbers or images changed: the plug-ins need a new version and image build to carry this to servers, which waits for the owner's OK.
🤖 Generated with Claude Code