Changelog

Restrict Aiven for PostgreSQL® extension management to the database owner

    Security
    Aiven for PostgreSQL®

On Aiven for PostgreSQL® 15 and later, you can restrict extension management in a database to the owner of that database. Use this when your security policy requires that users without CREATE privilege on a database cannot add or remove extensions in it.

The restriction is off by default, applies per database, and depends on how an extension is installed:

  • Extension allowlist: By default, any database user can manage these extensions. With the restriction on, only the database owner can.
  • Trusted: Users with CREATE privilege on the database can install these extensions, and the extension owner can update or drop them. The restriction doesn't change this.

To see the installation method of each extension, see Extension versions per PostgreSQL release.

To turn on the restriction, connect as avnadmin and run:

ALTER DATABASE example_db SET extwlist.restrict_to_database_owner = on;

Database-level settings apply to new sessions only.

For more information, see Manage Aiven for PostgreSQL® extensions.