/plushcap/analysis/hasura/implementing-a-google-drive-style-hierarchical-role-based-acl-system

Implementing a Google Drive Style Hierarchical Authorization System in Hasura

What's this blog post about?

This text discusses implementing a hierarchical authorization system similar to Google Drive's in Hasura. The author provides an overview of the scenario and schema for the database, which includes seven tables and several views used to calculate permissions. They then explain how to accomplish this by using SQL to dynamically generate the "flattened" view of relationships and folder <-> user <-> access level records. Finally, they demonstrate how to create permission rules in Hasura for allowing users to view or update folders based on their IDs and access types.

Company
Hasura

Date published
Oct. 6, 2021

Author(s)
Gavin Ray

Word count
1014

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.