|Daniel Lim 8901104b9a
Beep backend handling user permissions. Currently, permissions are defined as user-scope (i.e. userid in conversationid). If no such pairing exists, permission is denied. Might consider moving to searchms style user-scope-action system later.
Relations are cached in redis to avoid excessive querying time. A listener updates the cache on database changes.
This service is meant to be used internally. Otherwise, people can systematically query it finding out which conversation a said user is in.
Supply environment variables by either exporting them or editing
|Host and port for service to listen on
|URL of postgres
|URL of redis
Query to see if userid-conversationid is permissable.
Success (200 OK)
It is recommended to intrepet both as a rejection regardless of error type.
|Matching userid-conversationid pair not found
|Error accessing cache