-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add authoritative resource to manage grants for an object #173
feat: add authoritative resource to manage grants for an object #173
Conversation
Also thoughts on renaming this to something like |
|
Still thinking of ways to rename Also not sure if this would help, but I'm open to wrap the
I don't want to use |
Is there a reason to introduce a target block here? I'm fine just leaving oid as a top level for now. |
a449b2d
to
a00d54e
Compare
Ensures there are no grants for the specified object other than the ones specified in terraform.
I'm using a
schema.TypeSet
, which is really convenient because it associates existing statements with the ones defined in terraform automatically based on thesubject
androle
regardless of the statement id. So for example, say terraform defines statements A and B which get created with ids 8001 and 8002. Then if those statements manually get deleted, and then new statements C and D get created with the samesubject
androle
, now with ids 8003 and 8004,terraform apply
will make no changes. Otherwise, we create and delete the minimal number of statements to make it match (no statements are updated since we want them to be immutable with v2).