docs: scope the loopback bind to remote reach (#33)#35
Draft
AltanS wants to merge 1 commit into
Draft
Conversation
…he identity gate §6 called the loopback bind load-bearing without saying against whom. It bounds remote callers; locally it bounds nothing, because a TCP port is shared by every uid in the netns while herdr's socket is uid-bounded by file permissions. An agent deliberately run under another uid to contain it can therefore still drive the whole herd through the port — installing Collie silently removes that boundary. Say so, and point at the device gate, which is the one write gate that doesn't rest on "local means trusted". Also correct two claims. §6 said the owner login is asserted and other tailnet users rejected; checkAccess only rejects a *mismatching* Tailscale-User-Login and passes an absent one — safe under tailscale serve, which always injects it, and not safe behind anything that stops. The README's "reject anyone but you" had the same gap. Records that the device gate fails closed as of 0.15.0, and that device ids are proxy-asserted names rather than secrets. Reported by @simonallfrey. Fixes #33 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Closes the documentation half of #33.
ARCHITECTURE.md§6 called the loopback bind load-bearing without saying against whom. It boundsremote callers; locally it bounds nothing, because a TCP port is shared by every uid in the network
namespace while herdr's socket is uid-bounded by file permissions. So an agent deliberately run under
another uid to contain it can still
curl 127.0.0.1:$COLLIE_PORTand drive any pane in the herd —installing Collie silently removes the boundary an operator running untrusted diffs is most likely to
have reached for. §6 now says that, and points at the device gate as the one write gate that doesn't
rest on "local means trusted".
Two claims also corrected:
checkAccessonlyrejects a mismatching
Tailscale-User-Loginand passes an absent one — fine undertailscale serve, which injects it on every request; not fine behind anything that stops. TheREADME's "reject anyone but you" had the same gap.
that device ids are proxy-asserted names rather than secrets.
Reported by @simonallfrey.
Doc-only — no version bump per CLAUDE.md. Anchors and fences validated.
Fixes #33
🤖 Generated with Claude Code