Make a user database. When clients authenticate, connect to user database and validate their credentials. Double check socket security for anything we need to prevent spoofing across the wire such as SSL.
I'm considering sqlite for the user database. It's easy to replicate with litestream and has concurrency for multiple processes. Using a separate database like postgres may be overkill.
Make a user database. When clients authenticate, connect to user database and validate their credentials. Double check socket security for anything we need to prevent spoofing across the wire such as SSL.