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

Insufficient privilege to create a masking policy #69

Open
AlbertAit opened this issue Sep 20, 2023 · 0 comments
Open

Insufficient privilege to create a masking policy #69

AlbertAit opened this issue Sep 20, 2023 · 0 comments

Comments

@AlbertAit
Copy link

Hello,

I think there is some sort of bug in dBt when configuring dBt_project.yml file of "dbt_snow_mask".
I tried to configure "dBt_project.yml" (e.g.
name: 'dbt_snow_mask'
version: '1.0.0'

require-dbt-version: [">=0.18.0"]
config-version: 2

target-path: "target"
clean-targets: ["target", "dbt_modules"]
macro-paths: ["macros"]
log-path: "logs"

vars:
use_common_masking_policy_db: "True"
common_masking_policy_db: "MY_DB"
common_masking_policy_schema: "MY_SCHEMA"
use_force_applying_masking_policy: "True"
)
to force dBt to create masking policies in a dedicated database and schema in SF instance, but I get an error "Insufficient privileges to operate on database 'MY_DB'", but when I use the same role as my dbt user does in SnowFlake itself I have no problem of creating or applying masking policies in that same location.

Please advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant