Skip to content

runtime, tailscale, elixir, python: support peer lookup by ip#145

Merged
npry merged 3 commits intomainfrom
npry/ip_lookup
Apr 30, 2026
Merged

runtime, tailscale, elixir, python: support peer lookup by ip#145
npry merged 3 commits intomainfrom
npry/ip_lookup

Conversation

@npry
Copy link
Copy Markdown
Collaborator

@npry npry commented Apr 27, 2026

Two separate functions are supported: lookup by tailnet IP (unambiguous) and lookup by accepted routes. The accepted routes lookup may in principle return more than one answer, e.g. if there are two subnet routers active on the same subnet.

The short-term motivation here is to support identity integrations, e.g. answering "what peer is responsible for this request?" in the axum example, as a piece of the puzzle for application capability rules

@npry npry marked this pull request as ready for review April 27, 2026 22:36
@npry npry force-pushed the npry/ip_lookup branch 8 times, most recently from c6fb902 to 491aae3 Compare April 29, 2026 22:51
Copy link
Copy Markdown
Member

@danderson danderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, modulo the inefficient route lookups that could be barted. The APIs look right though, so if you want to defer dealing with that, I'm find with a filed issue so we don't forget.

Comment thread .github/workflows/elixir.yml
Comment thread ts_runtime/src/peer_tracker.rs
Comment thread ts_runtime/src/peer_tracker.rs
@npry npry force-pushed the npry/ip_lookup branch 2 times, most recently from 69a1662 to 749e86d Compare April 30, 2026 20:39
npry added 3 commits April 30, 2026 18:03
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I2ee105905ac575b4f83c0dbae7e35d466a6a6964
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I5a6e7e7e9b1cd186bbfdb39f6c2b54cc6a6a6964
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I5f411617ddbfe22b2390ad08355021256a6a6964
@npry npry merged commit eed9542 into main Apr 30, 2026
28 checks passed
@npry npry deleted the npry/ip_lookup branch April 30, 2026 22:41
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.

2 participants