subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make use of "friendly name" in wireguard.config

simonszu opened this issue · comments

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.

@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.