headscale icon indicating copy to clipboard operation
headscale copied to clipboard

[Feature] enhance documentation OR rethink MagicDNS

Open noseshimself opened this issue 11 months ago • 3 comments

Use case

The changes in 0.24 regarding node names is causing collisions which are creating unpleasant situations.

Description

Users can pick their own host name when adding a new system to the mesh

Removing the account name as as FQDN component is permitting this to end in two different users picking the same name. This now has led to frequent physical violence over names and the rights to use them in at least one name space.

Please reconsider finding a way to deliver separate FQDN name spaces per user as the current implementation drives up medical cost for wound care, jellybeans and other sweets.

More seriously: You do not need teenagers to see possible attacks by stupid or malicious users if all are sharing the same name space. It's just not a good idea. As headscale has no control over the client implementations you either have to add a warning to the docs or become incompatible and add the configurable option of generating random host names the client can't modify with the risk of the CEO having to work under the name farting-hippo.mesh.company.com (depending on the generator used for creation of host names).

Contribution

  • [ ] I can write the design doc for this feature
  • [ ] I can contribute this feature

How can it be implemented?

I don't think the feature needs design docs; it already existed in earlier versions.

noseshimself avatar Jan 27 '25 15:01 noseshimself

Good grief, I want the opposite: re-use same machine name when it re-joins the mesh. How to do it? Docs totally unclear.

And if you're hosting your own headspace, what is all this about physical violence over naming? Just assign users to different namespaces? Maybe the users are the problem here, not the system?

tgrushka avatar Mar 26 '25 23:03 tgrushka

i want a combination of both. machine needs to come back with same dns thats like half the magic. users should be allowed to choose hostname. first come first serve, if there is a collision append a number and increment until there is no collision. i really do want the usernames back though. apple-tv.dad.domain.net and appe-tv.sister.domain.net would be useful because i can get where i need to go just by thinking about it. now i do dad-apple-tv.domain.net, and sister-apple-tv.domain.net and that seems to be fine.

peskyAdmin avatar Apr 09 '25 00:04 peskyAdmin

users should be allowed to choose hostname. first come first serve, if there is a collision append a number and increment until there is no collision

There would be no collision if the account name would be used as part of the domain name... Users could do whatever they want without intruding each others' name space.

noseshimself avatar Apr 09 '25 14:04 noseshimself

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Jul 09 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 16 '25 02:07 github-actions[bot]