Skip to content

tailcat: add Server.RemoveAllowedClient to revoke a client at runtime - #125

Open
ybaelli wants to merge 1 commit into
tailscale:mainfrom
ybaelli:remove-allowed-client
Open

ybaelli wants to merge 1 commit into
tailscale:mainfrom
ybaelli:remove-allowed-client

Conversation

@ybaelli

@ybaelli ybaelli commented Sep 18, 2026

Copy link
Copy Markdown

Counterpart of AddAllowedClient: revoke a key while the server runs, and drop the client if it is connected, instead of restarting serve and disconnecting everyone. Verified in the new test that a revoked client's dial fails within seconds, so no engine-level peer eviction was needed.
Fixes #124

AddAllowedClient could add a key while running but nothing could take
one back: revoking a client meant restarting serve with a shorter
--allow, which also drops every other client until they re-meow.

RemoveAllowedClient deletes the key from the allowlist and, if the
client is connected, drops it from the network map so its tunnel is
torn down. Client IDs now come from a counter instead of
len(clients)+2, which would collide with a live peer after a removal.

Fixes tailscale#124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server: allow revoking a client key at runtime (RemoveAllowedClient)

1 participant