[CT-1242] [Feature] Conditionally prevent warehouse connection at compile time-- semantic layer only #5936
Closed
3 tasks done
Labels
enhancement
New feature or request
Is this your first time submitting a feature request?
Describe the feature
As a stop-gap for a P0 security issue with permissions during introspective queries (queries that hit the warehouse at compilation), we want to create a semantic layer-specific child of SqlCompileRunner in lib.py in dbt-core, which overrides the compile_and_execute method on its parent class, BaseRunner(code in dbt-core) and does not connect to the warehouse at all for compilation.
This will cause introspective queries to fail compilation, so we will handle those failures in dbt-server and return a helpful error to the client.
Describe alternatives you've considered
Who will this benefit?
This prevents security risk in the semantic layer until we have a chance to create a permanent solution.
Are you interested in contributing this feature?
yes
Anything else?
Internal JIRA Issue: RUNTIME-443
The text was updated successfully, but these errors were encountered: