Skip to content

Database restriction in SQL Lab. #5207

@SanjayJosh

Description

@SanjayJosh

Make 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.
screen shot 2018-06-15 at 12 01 13 pm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    inactiveInactive for >= 30 days

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions