terraform/website/source/docs/providers/postgresql/r
Sean Chittenden 2ebac5226c PostgreSQL: leaked pg privs (#14817)
* Fix doc bug. Spell `collation` like `lc_collate`.

* Whitespace nit in error message

* Use %q as the format verb for error messages in postgresql_database resource messages.

* REVOKE the `GRANT` given to the connection user when creating a database.

For `ROLE`s who have been delegated `CREATEDB` privileges and are not a
superuser, in order for them to `CREATE DATABASE` they need to be a member
of the `ROLE` who will be `OWNER` for the new database.  Once the
`CREATE DATABASE` is complete, `REVOKE` the `GRANT` that was given to role
so that the user who ran the `CREATE DATABASE` looses all privileges to the
target database (unless of course they're a superuser).

Fixes a regression introduced in #11452

* Delegated DBA ROLEs can now fix OWNER drift for PostgreSQL databases.

Uses the helper functions introduced in #11452
2017-05-31 20:03:32 +03:00
..
postgresql_database.html.markdown PostgreSQL: leaked pg privs (#14817) 2017-05-31 20:03:32 +03:00
postgresql_extension.html.markdown Massively add HCL source tag in docs Markdown files 2017-04-17 13:17:54 +03:00
postgresql_role.html.markdown Massively add HCL source tag in docs Markdown files 2017-04-17 13:17:54 +03:00
postgresql_schema.html.markdown Massively add HCL source tag in docs Markdown files 2017-04-17 13:17:54 +03:00