Skip to content
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

database access on [DATABASE] does not allow read data sources #20208

Closed
3 tasks done
humbledude opened this issue May 27, 2022 · 2 comments · Fixed by #23118
Closed
3 tasks done

database access on [DATABASE] does not allow read data sources #20208

humbledude opened this issue May 27, 2022 · 2 comments · Fixed by #23118
Assignees
Labels
#bug Bug report

Comments

@humbledude
Copy link

humbledude commented May 27, 2022

A clear and concise description of what the bug is.

How to reproduce the bug

  1. set permission on Role : database access on [DATABASE]
  2. login user with the role
  3. add a dataset in [DATABASE]

Expected results

access to the dataset

Actual results

the dataset is not available (not showing)

Environment

using helm chart (0.5.10), docker image (apache/superset:1.5.0)

(please complete the following information):

  • browser type and version: chrome 101.0.4951.64
  • superset version: 1.5.0
  • python version: 3.8.12
  • node.js version:
  • any feature flags active: ldap enabled,

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

https://superset.apache.org/docs/security/#permissions

documents says Granting access to a database allows for the user to access all data sources within that database

and when I grant schema access on [DATABASE.SCHEMA] then it works well on the schema only

@humbledude humbledude added the #bug Bug report label May 27, 2022
@yousoph
Copy link
Member

yousoph commented Jun 1, 2022

Currently, the database access gives access to that database in SQL Lab.
Giving schema or dataset access should give access to the relevant charts and dashboards.

I agree that it seems like the database access seems like it should give access to all the schemas / datasets in that database...

@humbledude
Copy link
Author

refer to document, it should give access to all the schemas / datasets in the database, if someone has access to the database.

https://superset.apache.org/docs/security/#permissions

fix document or fix code..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants