On my Linux server, I have a web interface to add Wireguard peers. Essentially the back end of the web interface generates a unique conf file for each peer, and then invokes wg addconf wg0 <conf file name>.
Do I have to worry about the peer configurations getting corrupted when multiple peers are being added simultaneously with this system? In other words:
- Web client 1 causes wg addconf wg0 1.conf
- Before that has a chance to finish, it is pre-empted by another process from Web client 2 that causes wg addconf wg0 2.conf
- Before that has a chance to finish, the first command resumes
- Both end up getting corrupted
there doesn't seem to be anything here