-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate possibility of more finely grained permisssions #108
Comments
I took a brief look at how data source groups are currently implemented. OptionsI think these are the options for adding more granular permissions:
Considerationsi. Long-term administrative maintenance. Both being able to keep track of table permission sets and being able to change permission sets without having to re-enter data source credentials. Evaluation of Options
Recommended Plan of ActionI recommend proceeding with option 5 in the following manner:
Note, this plan of action doesn't account for the case of limiting which fields within a table are viewable/full access. Under this plan the Meta data source table data_sources would be not available at all to non-admin users, not even the 3 fields currently showing to users. Thoughts? |
This seems reasonable to me. I'd say we should get feedback from Arik re: if he thinks this is sane and whether or not he'd be up for merging it upstream. |
Finally had time to review this and realized that I'm missing more details on the use case(s) you're trying to address. Because the eventual solution depends on this. Regardless a few comments:
To extend the current permissions system's capabilities what I had in mind is:
To support both of these new use cases, there is a dependent task which is to allow secure execution of parameterized queries. Today parameters in queries are open to SQL injections (by design) -- to allow true "read only" users we will have to close this security concern. I did some research on this and have a few ideas on how to tackle this. |
Thanks @arikfr. That background on removal of the feature before is great context. My understanding of the use case here is that a data source can house multiple datasets and some datasets should have restricted access. A couple of questions:
|
Yes.
Well, I would love to support this use case in a more elegant way than having to create data source CC. But I'm not sure how common this use case is. Usually what I've seen is that you have subset of the data that only some people need (PII data, finances, etc) and this is restricted. The rest is open.
Because eventually people would like to give permission to a user on a specific query/dashboard that uses parameters, and current implementation requires full access to the data source.
Are we talking about future implementation or the current one?
Well, I will have to eventually unless someone does it before me :) |
Right now redash supports group access to specific data sources, but we may want to have more finely grained permissions where one group can access only a subset of a data source. And there may be workarounds where we use multiple data sources with different permissions.
The text was updated successfully, but these errors were encountered: