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

Can't access database in SQL lab #13689

Closed
liamnv opened this issue Mar 18, 2021 · 5 comments
Closed

Can't access database in SQL lab #13689

liamnv opened this issue Mar 18, 2021 · 5 comments
Labels
data:connect:trino Related to Trino inactive Inactive for >= 30 days

Comments

@liamnv
Copy link
Contributor

liamnv commented Mar 18, 2021

A clear and concise description of what the bug is.

I'm create a role to access a database schema, assign this role to a user, but user can query this table in `CREATEA TABLE AS

Expected results

User can run this query

Actual results

Superset return you need access to the following tables: xxx, all_database_access or all_datasource_access

Screenshots

Screen Shot 2021-03-18 at 15 55 14

Screen Shot 2021-03-18 at 15 55 20

How to reproduce the bug

  1. Connect Superset to Trino
  2. Add database A & B from Trino to Superset
  3. Create Role test, assign permission schema acccess con A.xxx, assign to user X
  4. Run query similar to screenshot

Environment

  • superset version: 1.0.1
  • python version: 3.8

Checklist

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

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

Additional context

Add any other context about the problem here.

@liamnv liamnv added the #bug Bug report label Mar 18, 2021
@junlincc junlincc added data:connect:trino Related to Trino and removed #bug Bug report labels Mar 18, 2021
@stale
Copy link

stale bot commented May 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label May 2, 2022
@rusackas
Copy link
Member

Closing as stale since the issue is over 2 years old, but if you're still facing this, let's revisit it!

@rusackas rusackas closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2023
@xujipm
Copy link

xujipm commented May 17, 2024

I'm still facing this on version 3.1.3

@rusackas
Copy link
Member

@xujipm do you have any more context to add to the issue? It seems like nobody else ran into this issue for over three years.

@xujipm
Copy link

xujipm commented May 19, 2024

@xujipm do you have any more context to add to the issue? It seems like nobody else ran into this issue for over three years.

I have authorized the permissions of sample.main to this user, but this account still cannot be queried in sql_lab

image

image

@dosubot dosubot bot mentioned this issue Nov 4, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:connect:trino Related to Trino inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

4 participants