Advice on architecture for multiplayer game + security

I think this is what you should be using:

https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/