Giter VIP home page Giter VIP logo

Comments (4)

mistercrunch avatar mistercrunch commented on June 29, 2024

Source for the diagram above - plantuml + vscode is pretty neat!

@startuml Superset Data Access Models
title SIP #125 - Superset Data Access Models


' hide the spot
' hide circle

' avoid problems with angled crows feet
skinparam linetype ortho
!theme blueprint

'left to right direction
scale 4


package "FAB Security Models" #black {

    entity "User" as user {
        *id: number <<generated>>
        --
        uuid
        *name : text
    }

    entity "Group" as group {
        *id: number <<generated>>
        --
        uuid
        *name : text
    }

    entity "Role" as role {
        *id: number <<generated>>
        --
        uuid
        *name : text
    }
    entity "Permission" as fab_permission {
        *id: number <<generated>>
        --
        uuid
        *name : text
    } 
    entity "ViewMenu" as fab_viewmenu{
        *id: number <<generated>>
        --
        uuid
        *name : text
    } 
    entity "PermissionView" as fab_permission_view{
        *id: number <<generated>>
        --
        uuid
        *name : text
    } 
}
package "New Data Access Models" #black {
    entity "Verb" as verb {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }

    entity "DataAccessRole" as data_access_role {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }

    entity "DataPermission" as data_permission {
        *data_perm_id: number <<generated>>
        --
        uuid
        verb: str
        entity: str
        object_id: int
    }
}
package "Database Models" #Black {

    entity "DatabaseCatalog" as catalog {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }
    entity "Schema" as schema {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }
    entity "RLS" as rls {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }
    entity "DatabaseConnection" as database_connection {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }

    entity "Dataset" as dataset {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }
}
package "Other Models" #Black {
    entity "Dashboard" as dashboard {
        *user_id : number <<generated>>
        --
        uuid
        *name : text
    }
}


database_connection ||..|{ catalog
database_connection ||..|{ schema 
catalog ||..|{ schema 
schema ||..|{ dataset
dataset ||..|{ rls

data_access_role }|..|{ data_permission
verb ||..|{ data_permission
data_permission }|..|{ database_connection
data_permission }|..|{ dashboard

data_permission }|..|{ dataset
data_permission }|..|{ schema


user }|..|{ group
user }|..|{ role
group }|..|{ role
fab_permission ||..|{ fab_permission_view 
fab_viewmenu ||..|{ fab_permission_view 

fab_permission_view }|..|{ role 

user }|..|{ data_access_role
group }|..|{ data_access_role

@enduml

from superset.

mistercrunch avatar mistercrunch commented on June 29, 2024

Closing in favor of SIP-126 - a more federated approach to RBAC/ABAC

from superset.

rusackas avatar rusackas commented on June 29, 2024

Should we close this as discarded if we're merging it with the other one?

from superset.

rusackas avatar rusackas commented on June 29, 2024

Closing this as discarded, in favor of SIP-131

from superset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.