You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All privileges for the object_type are revoked, none are granted.
Actual Behavior
Error: privileges: attribute supports 1 item as a minimum, config has 0 declared
Steps to Reproduce
terraform apply
Important Factoids
In case it helps, running on AWS RDS, therefore template1 and the master user need to be used for the ALTER DEFAULT PRIVILEGES command to be successful.
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
Gave it a shot in #118, seems to work after building the provider locally and testing with that. Haven't had a chance to run the full test suite locally yet though.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I was trying to revoke default privileges for functions/procedures from the
PUBLIC
role, which can be done by:However it seems
privileges
currently requires at least one item in its list:terraform-provider-postgresql/postgresql/resource_postgresql_default_privileges.go
Lines 60 to 67 in 26f257d
I imagine this can be accomplished with something similar to what
postgresql_grant
does:terraform-provider-postgresql/postgresql/resource_postgresql_grant.go
Lines 395 to 403 in 26f257d
The use-case is tighter access control for functions/procedures and help prevent privilege escalation.
Terraform Version
0.13.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
All privileges for the
object_type
are revoked, none are granted.Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
In case it helps, running on AWS RDS, therefore
template1
and themaster user
need to be used for theALTER DEFAULT PRIVILEGES
command to be successful.References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: