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

[feature] CREATE SHARE, IMPORT SHARE privileges for account grants #416

Merged
merged 2 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/resources/account_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var validAccountPrivileges = NewPrivilegeSet(
privilegeMonitorExecution,
privilegeExecuteTask,
privilegeApplyMaskingPolicy,
privilegeCreateShare,
privilegeImportShare,
)

var accountGrantSchema = map[string]*schema.Schema{
Expand Down
2 changes: 2 additions & 0 deletions pkg/resources/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const (
privilegeCreateMaterializedView Privilege = "CREATE MATERIALIZED VIEW"
privilegeCreateTemporaryTable Privilege = "CREATE TEMPORARY TABLE"
privilegeCreateMaskingPolicy Privilege = "CREATE MASKING POLICY"
privilegeCreateShare Privilege = "CREATE SHARE"
privilegeImportShare Privilege = "IMPORT SHARE"
privilegeAddSearchOptimization Privilege = "ADD SEARCH OPTIMIZATION"
privilegeApplyMaskingPolicy Privilege = "APPLY MASKING POLICY"

Expand Down