charmbracelet / wishlist

The SSH directory ✨
MIT License
1.11k stars 24 forks source link

Wishlist / Tailscale integration discovery issues #337

Open nicolas-g opened 5 days ago

nicolas-g commented 5 days ago

Describe the bug Running Wishlist with the tailscale integration, I'm not able to see any of my tailscale endpoints.

Setup

To Reproduce

$ tailscale status
100.92.0.160    mac                user@    macOS   -
100.100.66.11   iphone       user@    android -

$ wishlist --tailscale.client.id=XXXX --tailscale.client.secret=tskey-client-YYYYY

wishlist only show enpoints configured in my local ssh config files.

Expected behavior I would expect to see my tailscale endpoitns (mac/iphone)

Additional context The Oath client id permission used was given permission devices:read

bashbunni commented 4 days ago

I was able to reproduce this in a nix shell with wishlist & tailscale CLI using the flags you listed above. Wishlist only showed endpoints from my ssh config file.

I did get the right results when I used the wishlist --tailscale.net=your_tailnet_name --tailscale.key=tskey-api-abc123... flags instead. Definitely a bug we should look into, in the meantime, you can get keys from https://login.tailscale.com/admin/settings/keys and the tailnet info from https://login.tailscale.com/admin/dns