Skip to content

Add an authorization level for helen websockets #13

@achirkin

Description

@achirkin

PROJECTS: qua-server
CHANGESET: Yesod sessions, authorization, websockets, database, conduit
DESCRIPTION:

LuciProxy redirects luci protocol from websockets to TCP in our local network. This allows qua-view as JavaScript client communicate with helen and her services as if being a normal TCP client.

Currently, LuciProxy just forwards everything it sees from client to server and back, which is not secure at all. I propose to change its behavior to parse all the messages and filter run messages according to service names and user privileges. An easy way is to keep an access list for different user groups/roles.

According to my current understanding, a possible solution consists of following steps:

  • Create a new tables representing user groups (we need many users <-> many groups). This can be done in config/models
  • Design groups and rules of how to assign users to groups (manually and automatically)
  • Adapt LuciProxy to parse messages and filter the ones not allowed for a given user.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions