Giter VIP home page Giter VIP logo

Comments (10)

ttdpro98 avatar ttdpro98 commented on August 16, 2024 2

Delegating permissions to users who can read specific tables in the database is quite important. I've worked at 3 companies that use superset for data mining, and all have raised the same issue.
I believe this improvement will make Superset a much more powerful data mining tool.

from superset.

andy-clapson avatar andy-clapson commented on August 16, 2024 2

I think my point still applies then - if you are letting people query production databases, they should be trusted with that data (to the extent of what that particular db user allows them to access). If this doesn't fit, I think you are stuck using data sources as your control layer in some way, and SQLlab access is off-limits.

from superset.

andy-clapson avatar andy-clapson commented on August 16, 2024 1

This is something that should be managed at the db level (using different users), which I know you said was something you didn't want to do. Otherwise data source permissions is the only thing that remotely fits.

Overall I think if you are going to give people permission to use sqllab, they need to be trusted with whatever data that user can access in the database. There's really no difference between sqllab and any other SQL IDE/workbench.

from superset.

rusackas avatar rusackas commented on August 16, 2024 1

I think it's safe to say we need more detail in the proposal... we need to better understand the exact implementation here... how it's manifested in the UI, the default access, how it interacts with datasource permissions, etc. If this happens to be something you already have working on a fork, a Draft PR might help move the conversation forward as well.

from superset.

rusackas avatar rusackas commented on August 16, 2024

It might be worth filling out the other parts of the SIP template that are missing here. Otherwise, let me know if you need any help kicking off the [DISCUSS] thread on the Superset dev mailing list to move it forward.

from superset.

ttdpro98 avatar ttdpro98 commented on August 16, 2024

@rusackas as I read in 5602, I'm missing descriptions of New or Changed Public Interfaces, New dependencies, Migration Plan and Compatibility and Rejected Alternatives. However, I find these descriptions unnecessary. Could you tell me what information we should add to make it clearer?

from superset.

rusackas avatar rusackas commented on August 16, 2024

CC @dpgaspar @yousoph for comments/consideration.

from superset.

yousoph avatar yousoph commented on August 16, 2024

Hi there!

If you take a look at the List Roles page, you should be able to set up data permissions for schemas and datasources:
Image

There's some additional information here and here as well - does that address what you're looking to achieve?

from superset.

ttdpro98 avatar ttdpro98 commented on August 16, 2024

@yousoph I'm aware of that feature, but it is not useful for determining which tables a user can access when querying in SQL Lab

from superset.

ttdpro98 avatar ttdpro98 commented on August 16, 2024

@andy-clapson This is not quite right. For querying on the IDE, we use personal accounts to query the database.

But on Superset, we query the database and create datasets to draw dashboards. Therefore, we cannot use personal-account for each dashboard when querying the database. We need to use a service account to represent Superset in querying the database.

And I also believe that the dashboards on Superset are a production environment. We are not allowed to use personal-account for the dashboards, and we cannot rely on the assumption that people never make mistakes. We need to avoid situations of human error.

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.