Fri Oct 04, 2024 8:29 pm
The only practical use case I can imagine from your description is to share an account on some paid "VPN" service among multiple people to save money. Leaving aside whether it is in accord with the terms of use, such an approach requires coordination of the use (as in, only one person can use it at a time) even if you trust all members of the group not to share the account settings to any non-member, because one of the limitations of Wireguard is that the "server" side has no means to assign the internal IP address to the "client" side. So even if the Wireguard protocol allowed to connect multiple clients with the same credentials simultaneously (which is not the case), the server would not know to which of them to send a particular packet since all of them would use the same internal address. In fact, as @kleshki has explained, the Wireguard "server" peer would treat all remote peers as a single one with a rapidly changing public address, and would always send all the traffic for that peer to the public address from which the last transport packet has arrived from that peer.
For any other use case, there is no need to share the credentials among people, and I cannot imagine even any need to share it between devices, except possibly some backup scenarios.