[PR #2420] [MERGED] use tsweb debugger #2656

Closed
opened 2025-12-29 03:22:14 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2420
Author: @kradalby
Created: 2/9/2025
Status: Merged
Merged: 2/11/2025
Merged by: @kradalby

Base: mainHead: kradalby/tsweb-debug


📝 Commits (6)

  • 3f3efec use tsweb debugger
  • e1175d6 add useful debug information of the current running headscale
  • fde49b7 return after error
  • ee12fdd debug handler for ssh pol
  • b7b71b6 update changelog
  • cc2190d add visualiser for go stats

📊 Changes

6 files changed (+135 additions, -20 deletions)

View changed files

📝 CHANGELOG.md (+7 -3)
📝 flake.nix (+1 -1)
📝 go.mod (+2 -0)
📝 go.sum (+4 -0)
📝 hscontrol/app.go (+1 -16)
hscontrol/debug.go (+120 -0)

📄 Description

This PR switches the homegrown debug endpoint to using tsweb.Debugger, a neat toolkit with batteries included for pprof and friends, and making it easy to add additional debug info:

I've started out by adding a bunch of "introspect" endpoints
image

So users can see the acl, filter, config, derpmap and connected nodes as headscale sees them.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2420 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 2/9/2025 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `kradalby/tsweb-debug` --- ### 📝 Commits (6) - [`3f3efec`](https://github.com/juanfont/headscale/commit/3f3efec40375d4d43e0cfa7934883ba557abf36f) use tsweb debugger - [`e1175d6`](https://github.com/juanfont/headscale/commit/e1175d67417f1bd12af721a41fb8cf15564692b2) add useful debug information of the current running headscale - [`fde49b7`](https://github.com/juanfont/headscale/commit/fde49b725d559b6dd372ce5c83194d5c8603e5cd) return after error - [`ee12fdd`](https://github.com/juanfont/headscale/commit/ee12fdd976d90f6eedf36840b696bc305f31797f) debug handler for ssh pol - [`b7b71b6`](https://github.com/juanfont/headscale/commit/b7b71b6be5ab54773d2c22415ceff34525b2102a) update changelog - [`cc2190d`](https://github.com/juanfont/headscale/commit/cc2190d9d11b26ae22f2ee601a6bf8f54e4e50a3) add visualiser for go stats ### 📊 Changes **6 files changed** (+135 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -3) 📝 `flake.nix` (+1 -1) 📝 `go.mod` (+2 -0) 📝 `go.sum` (+4 -0) 📝 `hscontrol/app.go` (+1 -16) ➕ `hscontrol/debug.go` (+120 -0) </details> ### 📄 Description This PR switches the homegrown debug endpoint to using tsweb.Debugger, a neat toolkit with batteries included for pprof and friends, and making it easy to add additional debug info: I've started out by adding a bunch of "introspect" endpoints <img width="484" alt="image" src="https://github.com/user-attachments/assets/dd6a019a-728c-4982-a55c-1d86a8924933" /> So users can see the acl, filter, config, derpmap and connected nodes as headscale sees them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:22:14 +01:00
adam closed this issue 2025-12-29 03:22:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2656