Re: public schema default ACL - Mailing list pgsql-hackers

From Robert Haas
Subject Re: public schema default ACL
Date
Msg-id CA+TgmobSVwFpjayqznm7sKjWY5S3tBfyERcFjYY7jsFS1XBnhQ@mail.gmail.com
Whole thread Raw
In response to public schema default ACL  (Noah Misch <noah@leadboat.com>)
Responses Re: public schema default ACL  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: public schema default ACL  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Sat, Mar 3, 2018 at 4:56 AM, Noah Misch <noah@leadboat.com> wrote:
> Commit 5770172 ("Document security implications of search_path and the public
> schema.") is largely a workaround for the fact that the boot_val of
> search_path contains "public" while template0 gets "GRANT CREATE, USAGE ON
> SCHEMA public TO PUBLIC".  It's like having world-writable /usr/bin.  The
> security team opted not to change that in released branches, but we thought to
> revisit it later.  I propose, for v11, switching to "GRANT USAGE ON SCHEMA
> public TO PUBLIC" (omit CREATE).  Concerns?  An alternative is to change the
> default search_path to "$user"; that would be break more applications, and I
> don't see an advantage to compensate for that.

Isn't this going to cause widespread breakage?  Unprivileged users
will suddenly find that they can no longer create tables, because
$user doesn't exist and they don't have permission on public.  That
seems quite unfriendly.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: JIT compiling with LLVM v11
Next
From: Andres Freund
Date:
Subject: Re: JIT compiling with LLVM v11