Support for Snowflake Secure Views #1730
Labels
enhancement
New feature or request
good_first_issue
Straightforward + self-contained changes, good for new contributors!
snowflake
Milestone
Adding support for Secure View in Snowflake
When using the Materialize feature where setting the type of materialization, adding secure-view to the {{ config(materialized='secure-view') }} would be beneficial.
Current Work-around
Currently the solution for Snowflake secure views is running post-hook events to set the targeted views as secure, example:
alter view sv_mySecureTest set secure;
This works, and each view that needs to be secured will need to be added to the post-hook event.
Affects only Snowflake
This feature is specific to the Snowflake Cloud Data warehouse.
https://docs.snowflake.net/manuals/user-guide/views-secure.html
This will help DBT Snowflake Developer / Non Developers
When creating a secure view in Snowflake, a developer can use 2 syntax commands
The first method will allow non-dbt user to render the DDL with the secure declaration as part of the DDL, the second statement is added to the end of the generated DDL however it may be ignored by developers unfamiliar with Snowflake Syntax, causing possible security issues, allowing unauthorized access to the View DDL by Read-Only roles in Snowflake.
The text was updated successfully, but these errors were encountered: