For ssh, in authorized_keys, on each line with a key there is a comment, usually user@host, which allows to easily see that this is a key of user user on the machine host.
For wireguard, I could not find any way to add a comment with a public key. Would it be possible to write down some comment next to each IP peer address, in order to make that easier?
I tried to find a way to add a comment to each WireGuard client. However, the Network Manager API that we use is currently limited and can’t accept comment attached to each peer. FreedomBox still has a chance to store this information within FreedomBox interface. This is not ideal but something we can consider doing.
PS: I have made some updates to WireGuard for IPv6 recently that will be release in the next version. Also mentioned in the manual that Bind app is needed.
I just installed wireguard on a freshly installed Pioneer. It is working really well. On the interface, I would have one suggestion: instead of “Add client automatically” and “Add allowed client”, have a line above saying “Add a client:” and on the first button “Generate a configuration” and on the second button “Allow an existing key”. I am not saying those are exactly the best wordings, but “add client automatically” looks really strange to me,
Also, I will check the documentation, I may have suggestions there too.
I submitted a merge request to implement ability attach a name to each of the clients. I also updated the button names to ‘Add Client’ and ‘Add Client with an Existing Key’ (can refine the names more based on feedback). These changes should become available to everyone in a couple of weeks.