Database restriction in SQL Lab.
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- [ ✅] I have checked the superset logs for python stacktraces and included it here as text if 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
Superset version
0.24.0
I added a presto datasource named as PrestoVizs
in this manner:
presto://presto_server_url:8080/catalog_name/db_name
, where db_name is mlp_visualizations
in this case .
to the list of databases.
However, In SQL Lab , all databases in the catalog are exposed.
Is there any way to restrict the schemas, or in this case the ‘databases’ from my presto catalog exposed in SQL Lab editor just to the dbname
?
I tried this with an alpha + sql_lab
user, apart from admin as well. Is there anyway there is a security role to do this?
Or does one have to change the source code to restrict to just a single schema? If so can you point me in the direction for the same?
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Database restriction in SQL Lab. #5207 - apache/superset
Is there any way to restrict the schemas, or in this case the 'databases' from my presto catalog exposed in SQL Lab editor...
Read more >Restrict access to a table in SQL Lab in Superset
Ideal solution: To restrict SQL Lab access to specific tables at superset level. e.g Superset should check User roles and ACLs and decide...
Read more >3.13 Lab: Working with a SQL database - Bookdown
LIMIT : in combination with SELECT, limits the number of records returned. WHERE : filter out unwanted data. GROUP BY : groups rows...
Read more >How to use ADD CONSTRAINT in SQL (with examples)
SQL constraints are rules that allow data to be entered into a table only if it meets the predefined conditions. One way to...
Read more >Restricting and monitoring SQL Server data access with SQL ...
This article gives overview of monitoring and restricting sensitive data access using SQL Views and Stored procedures.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In databases/filter.py:
It will restrict Database access to the user who created database connection
Hi folks, is it possible to progress the PR above to close the issue? It’d be really helpful for me. If there’s a way to contribute, let me know!