Claim Codes and Join Codes on Husarnet 3.0

Hi, Husarnet guys.

I’ve been having a look at the Beta Docs and I found the Claim Codes and Join Codes that would have the following format:

email@example.com/R4nd0ML3tt3RSAndNumb3R5

I was just wondering if a company that sells physical robots with Husarnet eventually installed out of the box would be willing to have their husarnet-admin@robotics-company.com email listed when someone lists the processes with ps faux | grep husarnet, for example.

What if the manager changes the email address later on? Would the previous codes keep working?

Maybe using a unique UUID v4 or v7 on the Claim/Join Code (instead of email) associated with each user would work for any user, regardless of how many times the email is changed.

Of course, this is none of my business, but it is something that just came to mind, and I thought it could be useful.

Hello @ralves,

Thank you so much for checking out the docs and your insights.

The codes are in fact shortuuids (UUID v4-compliant), and email prefix can be skipped, so both commands below are equivalent:

husarnet join email@example.com/R4nd0ML3tt3RSAndNumb3R5
husarnet join R4nd0ML3tt3RSAndNumb3R5

The reason we introduced email prefix in the Dashboard is that it helps tell different codes apart in personal notes/scripts/setups - by just looking at the code we can see what account will the device be claimed to (if not claimed before) or who is the owner the group when joining. I think it’s very useful for anyone who accidentally claimed the device to wrong account in the past.

Therefore, regarding your question about email change - if an email associated with the account is changed, all associated joincodes stay the same, as the email is not really a part of them. It’s just a prefix displayed in user-facing input boxes, which can be safely omitted if you don’t want to use it.

Hope this helps
BR,

Szymon (Husarnet team)

1 Like

Ok, that is great news.

Thanks for your answer.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.