-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added HostInfo output to Node response #1938
Conversation
…troCodeName) output to Node response
@juanfont, I saw your comment #1205 (comment) but I think that adding the base fields from HostInfo will not affect the HeadScale in any way, because it is unlikely that TailScale will change the fields used in any way |
Quoting the issue referred above:
We cannot maintain all these field hand typed into the API, however just marshalling it as JSON and then unmarshalling it on the other side using If this is implemented, it should also be part of the JSON output of As mentioned in our contribution guidelines, all contributions needs tests and there are a few more tickboxes that has not been addressed. |
Replaced with marshaling in JSON (protobuf.Struct). |
@kradalby as someone who works on a web interface for Headscale I'm interested in seeing this PR merged. I'd be willing to also take it on and move it over the finish line if the original author is no longer available 😄 |
@tale happy for you to give it a go. I am not really sure what I want done atm, I really dont like having it as a string and then having the user having to unmarshal it after, it makes it all ver unergonomic. I dont have a good solution, but I am more conservative to adding it than adding it for the sake of it. If you want to have a look and come up with a proposal I am willing to hear it. |
I respectfully disagree with this perspective. Regardless of its limitations, a unified mechanism to check the client version is essential as it helps mitigate security vulnerabilities. While avoiding action may reduce the risk of introducing errors, it unfortunately does not address the underlying issues.
May I ask why this is a concern? These fields are also utilized by Tailscale’s console, which is almost certainly stable. Following this approach would not introduce more compatibility issues than those present in Tailscale’s official instance. |
I disagree with this perspective. If the version field specifically is needed, then I propose that being added.
The alternative is this: https://github.com/juanfont/headscale/pull/942/files#diff-ac94c91f8ea84762d55b6932ef1466a2165984591d3e646360c5bb31b2130900R248 The fields do change, manually managing drift is not an option. |
Usecase
As an administrator, I want to see the information that is available only in HostInfo, for example, the version of the client's TailScale, the OS name, its version, etc.