Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGC2K-0002cd-TM for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Sep 2013 18:06:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VGC2K-0006UI-AZ for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Sep 2013 18:06:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGC2J-0006U8-4N for pgsql-hackers@postgresql.org; Sun, 01 Sep 2013 18:06:07 +0000 Received: from smtp.01.com ([199.36.142.181] helo=smtp-out-1.01.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGC2F-0004aE-83 for pgsql-hackers@postgresql.org; Sun, 01 Sep 2013 18:06:06 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id C39DC294014; Sun, 1 Sep 2013 13:06:00 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OrO9n7BC2iCV; Sun, 1 Sep 2013 13:06:00 -0500 (CDT) Received: from smtp-out-1.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 9F80A29403F; Sun, 1 Sep 2013 13:06:00 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 8927529403A; Sun, 1 Sep 2013 13:06:00 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PZJHhA5WNL3C; Sun, 1 Sep 2013 13:06:00 -0500 (CDT) Received: from [172.31.147.209] (unknown [216.9.110.11]) by smtp-out-1.01.com (Postfix) with ESMTPSA id D053A294014; Sun, 1 Sep 2013 13:05:59 -0500 (CDT) Message-ID: <52238206.2060705@agliodbs.com> Date: Sun, 01 Sep 2013 11:05:58 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Kohei KaiGai CC: "ktm@rice.edu" , Alexander Korotkov , Oleg Bartunov , Greg Smith , PgHacker Subject: Re: [v9.4] row level security References: <51E8A8C1.2050700@2ndQuadrant.com> <20130829142321.GA30496@aart.rice.edu> <521F7DFB.8060602@agliodbs.com> <5220D832.7090104@agliodbs.com> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kaigai, >> However, we have yet to talk about taking any such provisions with >> Postgres. If we commit this patch, arguably we'll have a row-level >> security feature which only protects data from well-behaved users, which >> seems counterproductive. >> > The point we shouldn't forget is information leakage via covert-channel > has less grade of threat than leakage via main-channel, because of > much less bandwidth. That's an astonishingly weak argument, because the bandwidth you're talking about is still very high, as in *hundreds* or *thousands* of values per minute. It's one thing to make the bandwidth argument for things like monitoring power draw, where the leakage is one character per hour, but the covert channels we're talking about are several orders of magnitude faster than that. So, I repeat: if you continue to pursue the argument that the covert channels identified aren't significant because of bandwidth, you will doom this patch. The valid arguments are only two: a) clearly identified use case X doesn't care about covert channels for reason Y, and will find RLS extremely useful. b) we can't fix these covert channels now, but plan to work on them in the future, and have ideas for how to approach them. > Security community also concludes it is not avoidable nature as long > as human can observe system behavior and estimate something, thus, > security evaluation criteria does not require eliminate covert-channels > or does not pay attention about covert-channels for the products that > is installed on the environment with basic robustness (that means, > non-military, regular enterprise usage). To be completely blunt, the security community does not understand databases. At all. I'd think if anything had become clear through the course of work on SEPosgres, it would be that. >> So, determinative questions: >> >> 1) are the security mechanisms supplied by this patch superior in some >> way to approaches like Veil for multi-tenant applications? (this is a >> serious question, as multi-tenant applications are far less concerned >> about covert channels) >> > Yes. This RLS implementation targets the environment that does not > have requirement for a particular bandwidth upperbound on covert- > channels. It allows to centralize the place where we have to care > about access control on main-channel, so it well fits multi-tenant > applications. Again, please abandon your bandwidth arguments. They are irrelevant to whether or not this patch gets accepted. So, please try again? >> 3) will accepting this patch allow our users in the Government space to >> more freely adopt PostgreSQL? >> > Government has two spaces. Most of their environment requires similar > requirement as enterprise grade system doing. On the other hand, > military environment often requires upper-bound of covert channel, > as a story I introduce on upthread, but they are minority and have > budget to develop special purpose database system designed for > security with first priority. I don't think I understood this answer. What I'm asking is: will government agencies be sigificantly more likely to adopt PostgreSQL if we have RLS, in this form? Or do we need "military-grade" before it makes a difference? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers