subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained
MIT License
1.8k stars 131 forks source link

Make use of "friendly name" in wireguard.config #139

Open simonszu opened 4 years ago

simonszu commented 4 years ago

Is your feature request related to a problem? Please describe. I am using a prometheus exporter for monitoring traffic stats about my wg clients. Currently all clients are showing up as their public keys. The exporter has a feature to parse comments added to each client section in the wireguard.config to display as their friendly human-readable format see here.

Describe the solution you'd like Subspace has a client name attribute which shows up in the web UI. Exporting this name in the generation of the wireguard.config as a comment in each client's section would not only be beneficial when using the above linked exporter, but also for any other setup where additional software will somehow interact with the wireguard.config, or at least improve the human readability of the generated config file, wherever it is needed.

gchamon commented 3 years ago

@subspacecommunity/subspace-maintainers I think this feature requests is worth taking a look. Would make subspace more suited for production environments. I can implement a prototype.