Skip to content

Optionally deploy grants requiring ACCOUNTADMIN? #106

Answered by littleK0i
josephniblo asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, it's a tricky subject. Let's see if we can unpack it.

SnowDDL currently relies on having MANAGE GRANTS privilege. It comes from SECURITYADMIN system role, which is granted to ACCOUNTADMIN.

Currently there are two modes in which SnowDDL can operate: "normal" mode and "SingleDB" mode. With "normal" mode it assumes that MANAGE GRANTS are present, and in "SingleDB" mode it does not manage any grants at all.

Adding any special rules around specific privileges requiring ACCOUNTADMIN or SECURITYADMIN is probably not very productive, since... it is really hard to tell which privileges can be granted without hardcoding it. And if we do the hardcode, it will break once Snowflake decices to chan…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@josephniblo
Comment options

Answer selected by josephniblo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants