Page MenuHomePhabricator

Introduce Model For User Access Control
Closed, ResolvedPublic3 Estimated Story Points

Description

In order to provide different access to different user groups, introduce access control model.
We will use role based access control with resource roles/group. (To understand the concept of this model, refer to "RBAC with resource Roles" here )

Implementation:

  1. Add model as an environment variable in terraform IaC (under okapi-iac/environments). Here is the model to copy/paste.
  1. Pick this env variables up under "public API service" and "stream service" (okapi-iac/services.tf)
  1. Update the services (okapi-streams and okapi-public-api) env.go with the newly introduced model variable.

Here is an example of model stored in a string.

Complete architecture for access control:

Screen Shot 2022-03-08 at 5.49.49 PM.png (1×1 px, 230 KB)

Event Timeline

prabhat set the point value for this task to 2.Mar 23 2022, 6:51 PM
prabhat moved this task from Estimated /Discussed to In Progress on the Wikimedia Enterprise board.
Lena.Milenko changed the task status from Open to In Progress.Mar 23 2022, 8:19 PM
prabhat changed the point value for this task from 2 to 3.Mar 23 2022, 9:44 PM
Lena.Milenko changed the task status from In Progress to Open.Apr 13 2022, 9:27 PM