From: Joe Conway <mail@joeconway.com>
To: justin.catterson@sofiebio.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13694: Row Level Security by-passed with CREATEUSER permission
Date: Wed, 21 Oct 2015 11:05:13 -0700
Message-ID: <5627D3D9.8080409@joeconway.com> (raw)
In-Reply-To: <20151021164233.3017.94954@wrigleys.postgresql.org>
References: <20151021164233.3017.94954@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 10/21/2015 09:42 AM, justin.catterson@sofiebio.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 13694
> Logged by: Justin Catterson
> Email address: justin.catterson@sofiebio.com
> PostgreSQL version: 9.5beta1
> Operating system: Ubuntu 14.10 x64
> Description:
>
> Users with the CREATEUSER permission do not evaluate Row Level Security
> functions. pg_user usebypassrls is set to false.
Not a bug. See
http://www.postgresql.org/docs/9.5/static/sql-createrole.html
"CREATEUSER
NOCREATEUSER
These clauses are an obsolete, but still accepted, spelling of
SUPERUSER and NOSUPERUSER. Note that they are not equivalent to
CREATEROLE as one might naively expect!"
And:
http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html
"Table owners, superusers, and roles with the BYPASSRLS attribute bypass
the row security system when querying a table."
HTH,
Joe
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
Attachments:
signature.asc (application/pgp-signature, 835B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: mail@joeconway.com, justin.catterson@sofiebio.com
Subject: Re: BUG #13694: Row Level Security by-passed with CREATEUSER permission
In-Reply-To: <5627D3D9.8080409@joeconway.com>
References: <20151021164233.3017.94954@wrigleys.postgresql.org> <5627D3D9.8080409@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox