davedotluebke / old-skool-text-game

Coding project used to learn Python
5 stars 4 forks source link

Running consoles as separate Unix users? #172

Open 1Bayshore opened 4 years ago

1Bayshore commented 4 years ago

Currently, all game code, with the exception of a few key git communication pieces, are run under the gameserver user. While this is handy for server-side communication, it is not ideal for a number of reasons:

Proposal: Run the Console and the websocket server as separate processes in separate users

The implementation of this would look something like this:

In addition to the already mentioned, there are a number of cool features that would be enabled by using more Unix users:

Difficulties:

rivques commented 4 years ago

Password handling here requires high security. Perhaps we hash what the user types in before sending it from the client, and then use the hash as the actual password to the server.

The thing about this is that we still have the actual password being sent across the internet, it's just not seen by the user. I don't understand what this changes, because you would have to ensure a totally secure connection either way. All that hashing does in this case is turn the password into a number.