Skip to content

Commit

Permalink
Add CREATE DATABASE ROLE privilige to db_grant, fixes #1830 (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbosak authored Jun 22, 2023
1 parent 43eda8b commit 98bbf2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resources/database_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
)

var validDatabasePrivileges = NewPrivilegeSet(
privilegeCreateDatabaseRole,
privilegeCreateSchema,
privilegeImportedPrivileges,
privilegeModify,
Expand Down
1 change: 1 addition & 0 deletions pkg/resources/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
privilegeCreateAccount Privilege = "CREATE ACCOUNT"
privilegeCreateCredential Privilege = "CREATE CREDENTIAL" //#nosec G101-- This is a false positive.
privilegeCreateDatabase Privilege = "CREATE DATABASE"
privilegeCreateDatabaseRole Privilege = "CREATE DATABASE ROLE"
privilegeCreateDataExchangeListing Privilege = "CREATE DATA EXCHANGE LISTING"
privilegeCreateExternalTable Privilege = "CREATE EXTERNAL TABLE"
privilegeCreateFailoverGroup Privilege = "CREATE FAILOVER GROUP"
Expand Down

0 comments on commit 98bbf2c

Please sign in to comment.