headscale icon indicating copy to clipboard operation
headscale copied to clipboard

[Bug] Unable to rename nodes

Open Haarolean opened this issue 2 months ago • 1 comments

Is this a support request?

  • [x] This is not a support request

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

A follow-up on this one: https://github.com/juanfont/headscale/issues/2646#issuecomment-2980824031

These hostnames are still visible/available in different places:

  • logs
  • device lists:
Image

Given we still enconter them in these places, in order to understand what device that is, we have to either:

  • allow adjusting this name (maybe merge them together)
  • do not use them in logs & device lists

Expected Behavior

expected to see the human-readable names I've assigned myself

Steps To Reproduce

  1. add mobile device, which's gonna be labaled as "localhost-sth"
  2. observe it in the device list or logs

Environment

- OS: alpine
- Headscale version: 0.27.0
- Tailscale version: 1.84+

Runtime environment

  • [x] Headscale is behind a (reverse) proxy
  • [x] Headscale runs in a container

Debug information

Haarolean avatar Oct 28 '25 16:10 Haarolean

Which mobile app are you using? Tried to reproduce this on Android (app version 1.88.4) and the name is updated almost immediately after headscale node rename -i 4 new-name.

nblock avatar Nov 02 '25 13:11 nblock

Your example screenshot is confusing since the names are so similar, but I take it that haarlean-iphone is the name you have set, and haarlean-iphone1 is the "hostname", assigned by Headscale.

This is the expected behaviour, here from my test tailscale.com tailnet:

Image

The original name is preserved in ().

kradalby avatar Nov 10 '25 16:11 kradalby

As far as I can understand, you are able to rename nodes, but not past what we allow. In that case, I think this is no longer an issue and that we can close it?

kradalby avatar Nov 10 '25 21:11 kradalby

I'm going to close this as "working as intended" as we prepare for 0.27.1

kradalby avatar Nov 11 '25 16:11 kradalby