feat(jarvis-node): bearer-token auth + Windows/macOS/Linux install#163
Merged
Conversation
- All data-bearing endpoints require Authorization: Bearer <JARVIS_TOKEN> (timing-safe secrets.compare_digest) - 503 when JARVIS_TOKEN unset (refuse to run unauthenticated) - "/" and "/health" stay public for liveness/healthchecks - jarvis_node_client.py sends the bearer token from JARVIS_TOKEN on every request - install.bat for Windows (PLC laptop, travel laptop): deps, token gen, Tailscale bind - install.sh foreground quick-start for macOS/Linux - install-node.sh / run-node.sh: always-on service (launchd/systemd), tailnet-only, Doppler fail-closed token - requirements.txt added - README with security notes, fleet topology, endpoint reference, verify steps Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Closes the Jarvis Node auth gap (unauthenticated
/shellRCE) and makes the node easy to deploy across the fleet — including the Windows PLC/travel laptops.Auth (
jarvis_node.py)Authorization: Bearer <JARVIS_TOKEN>, compared withsecrets.compare_digest(timing-safe).JARVIS_TOKENis unset, protected endpoints return 503 ("refuse to run unauthenticated")./and/healthstay public — healthcheck endpoints that should respond without auth.Depends.Client (
workers/jarvis_node_client.py)JARVIS_TOKENfrom the environment and attaches the bearer header to every request.Install / deploy (
remoteme-jarvis-node/)install.bat— Windows quick-start (PLC laptop, travel laptop): installs deps, generates a token if unset, detects Tailscale IP, runs foreground.install.sh— macOS/Linux foreground quick-start.install-node.sh+run-node.sh— always-on service (launchd/systemd), tailnet-only bind, Doppler fail-closed token.requirements.txt,README.md(security notes, fleet topology, endpoint table, verify steps).Test evidence
fastapi.testclientsmoke test — all 8 cases pass:/health//system-info/(no auth)/health/system-info(no auth)/system-info(bad token)/system-info(good token)Notes / out of scope
/file/readvs server's/files/read;/click//type//interpretdon't exist server-side). Left alone — unrelated to auth.fix/plc-registerdata-vfd-fieldswere deliberately not included.🤖 Generated with Claude Code