headplane icon indicating copy to clipboard operation
headplane copied to clipboard

Please make version available through either api or web interface

Open mstewart14 opened this issue 2 months ago • 2 comments

Description

Release-argus is a handy low-rent monitor that compares versions it finds in github (or at a URL) to versions found in api's or at a URL (using regex to parse out the version number).
This would be convenient for monitoring change as it comes. This is a nice to have. If this represents a security risk I totally understand, maybe give it a toggle in settings for user control, and/or put it behind authentication? Thank you for this awesome software

mstewart14 avatar Oct 08 '25 17:10 mstewart14

Not possible, Headscale doesn't make this information available and I don't want to make this information available either. I might reconsider, but it is technically there on the UI at the bottom of the signed in page (intended since you are already authenticated).

tale avatar Oct 12 '25 18:10 tale

thank you, I'm fine with this... how would I get release argus to do the authentication? It's capable of basic auth or custom headers. I did experiment with a few common header configurations but nothing seems to work. X-API-KEY (or X-API-TOKEN) with <api key value> didn't work and Authorization with Bearer <api key value> didn't work either (these were tried as I haven't found any documentation about how this might be achieved and these are working for other apps I'm using with this system). I'm happy to work with the existing setup if I can get release argus to authenticate.
Thank you

mstewart14 avatar Oct 12 '25 19:10 mstewart14

This isn't released yet, but I've added a feature on main where setting server.info_secret to a value allows you to access <url>/admin/api/info with a Bearer {info_secret} Authorization header. The response may look something like this:

{
  "status": "healthy",
  "headplane_version": "0.6.1",
  "headscale_version": "unknown",
  "internal_versions": {
    "node": "22.18.0",
    "v8": "12.4.254.21-node.27",
    "uv": "1.51.0",
    "zlib": "1.3.1-470d3a2",
    "openssl": "3.0.16"
  }
}

Thoughts?

tale avatar Dec 06 '25 20:12 tale

That looks perfect. I look forward to it.
Again, thank you for the awesome software

mstewart14 avatar Dec 06 '25 20:12 mstewart14