Open isedwards opened 1 year ago
Hey team! Please add your planning poker estimate with Zenhub @chinedu117 @david-i-berry @scottylad501
Using code developed in the previous sprint (currently in the opencdms-data-layer repository), we should initially implement three roles in the policy file: None (access to nothing), Admin (read/write everything) and User (limited access to something)
TASKS
opencdms-data-layer
repo to new pyopencdms
and refactor to work with new models using imperative mappingoso
to create/manage the additional tables that are required using resource_role_class
access_
or rbac_
- if all new tables are for RBAC)The following roles are defined in SURFACE:
@david-i-berry
Allow me to explain the permissions of each role
Data Entry Clerk - The lowest user level, it's basically an observer or a student given the task of data entry. In addition to the Guest user they have access to the data entry forms. However they are not able to export data.
Technician (i would rename this to simply Technician) - Guest privileges, Station Metadata section, Maintenance section, and Django backend.(if we could have restricted some of the Django backend access we would have) - all the work needed to check that stations are operating properly is needed here for the technician. For the django backend all the options reltaed to automatic file ingestion. Does not have access to Data Export feature
Climate Officer - Guest, Data entry clerk, may or may not get technician roles, it depends on training - but here this person is able to validate data coming into the system. Basically quality control checks for the data. Has access to data export feature. Data export allows the user to create an export job via the UI for any station for any time period. there is no restrictions on the amount of data that can be exported. A record is kept of who made the data export request.
Meteorologist - is weird user role, they are strictly operational so - they do not have data entry permission, nor do they have django backend and access to maintenance, BUT they have access to all products and have access to data export. So in once sense they have access to the entire dataset, but at the same time they are prevented from making any technical changes to the data/instruments/stations.
Climate Administrator - is basically one step down from the System Administrator - confirms the validation done by the climate officer. In essence has access to the entire system but cannot create a new user.
System Administrator - all roles and privileges
As an OpenCDMS core developer, I need agreement on the initial set of rules/roles that we will implemented for Controlled Access)
Given that different NMHSs may implement different roles, a first implementation may demonstrate three roles: