Repository navigation
fix: let Forget access remove Tailscale grants when the peer is offline - #31
Merged
eliophan merged 1 commit intoNov 15, 2026
Merged
Conversation
Forgetting a direct grant derived its credential scope through validated_base, which asks the running Tailscale daemon whether the peer is on the tailnet right now. Once the peer left the tailnet or Tailscale stopped, Forget access and Remove connection failed with a credential store error and left the grant in the keychain. Derive the scope from the route's syntax alone: an HTTPS origin, or HTTP on loopback or a tailnet-range address. Connecting and pairing still require a verified peer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Reviewed: CI macOS/Linux pass; no blocking issue found in the changed Tailscale grant-removal path. The regression coverage matches the fix. Review model: OpenAI |
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.
Purpose
Fixes #30.
If you paired over Tailscale and that machine later left your tailnet, or Tailscale was stopped, you couldn't remove it. Forget access and Remove both failed with an error that blamed the system credential store, and the saved grant stayed in the keychain.
docs/COMPATIBILITY.mdsays Forget access works offline, so this broke a documented promise.Changes
Validation
forgetting_a_tailnet_route_does_not_require_a_reachable_peercovers IPv4 and IPv6 tailnet routes with no reachable peer. It failed withInvalidRoutebefore the fix and passes after.192.168.1.20) is still refused.bash scripts/check.shpasses on macOS arm64 with Rust 1.99.1: 49 frontend tests, the contract check, the frontend build, all seven Rust crates and 34 Tauri host tests.Proved with a failing-then-passing regression test and the full check script. Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved.
UI captures
Not applicable.
Contribution checks
Created with Claude Opus 5.5 in Claude Code (T3 Code). Candidate found independently by Claude Fable 5.2.
🤖 Generated with Claude Code