Zendro-dev / graphql-server

Skeleton NodeJS project for a graphQL server.
GNU General Public License v3.0
0 stars 1 forks source link

Add ACL check to "/export" route #25

Open asishallab opened 4 years ago

asishallab commented 4 years ago

Currently upon requesting /export of a data model there is no check for authorization. This is potentially dangerous, because an export is quite demanding on computing time, i.e. the server might be streaming data for several minutes or up to hours.

Introduce read-export as a new permission (action) and check whether the current user is authorized to read-export on the requested data model.

Expected work-time: 1h