Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrGEX-0003fN-Fl for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 09:44:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrGEW-0001B8-Bk for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 09:44:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrGEW-0001Ax-2o for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 09:44:44 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrGEO-00038g-0p for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 09:44:41 +0000 Received: by mail-ed1-x529.google.com with SMTP id c10so2267571edr.2 for ; Wed, 18 May 2022 02:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:comments:mime-version :date:message-id; bh=4KQY/4zqBZKfSI9MP86B6335Dh+QUc0sP/cmntJ1eh8=; b=44By/Zo21cWu54oDhYeayyz7wNMCkuEREStTvpUfXhj9IKMxiHvGGZdEms+WRECl7x o9Mu+10hqUMt7WNFNqGkAVSF/8QPvBCfQht6ykV0CGkFNXmtYunxRAwsRKAuyzryeh7B oJwT6sU5jk/jT0s6BdMXkuoZkXulgQ9Tz94btF+C35xagIrFmuAzussxbWFtF9/s9FxC wC8hw8u4P95Yti1vCrL9hzUW7xDPNkAfVCYAXDP2ATYkoFp2r3eUIvi6+vH/REtrLYha Ck0Jqe/0Tf5jbyTxRR40bB0UjJUZXjArHShL44r1MzIeqpWzHUd04+1X8SEiDsZWNUzM 9SxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :comments:mime-version:date:message-id; bh=4KQY/4zqBZKfSI9MP86B6335Dh+QUc0sP/cmntJ1eh8=; b=D5Ide4cRlepzBiwrDbArvI2hEPDCepVxCeeKoS5t2LnJCAWZwDyyOgHQjzNBNchjKO IjuBxcY3BuUjKHds+oDv+Vb2iwD/rzlkRDk4YKveeYLGgxAZFEthBlcGFDowobtfqc6f /2cMw2S0aN5ha3B5vo/hRUBTBZKd04oIL+5fca3Hq/5REkkBBHYl1HQ+BfYR1GFkTgye 3mW2u+xQ2O492ieLli3tj/a7Tej0s+8tTxO7IO2e2cIXQWEWQ/XixfC2NbEtc7PiQgnF mXLsCwivVi5YFPhVAainmm2fbEwuqcraCz/nlJ+Ih5jqQmXDm1AzvDlKi8i6l5SkDxLT b6nw== X-Gm-Message-State: AOAM530iijkDTG1QMhdWyRUDPbe49leUZ41AqjeYkae1ocTox92Bk+qo M/r8gy49b2L0rO42YmtFK4kGNw== X-Google-Smtp-Source: ABdhPJyKnwaB0uKCvcJh/GH2maQ/mCswcmSIFSp5CRJDstDJlimqNca13j5wFvT0N6LONx/WTNblbQ== X-Received: by 2002:a50:ed12:0:b0:42a:a8d3:12c with SMTP id j18-20020a50ed12000000b0042aa8d3012cmr18984862eds.337.1652867073941; Wed, 18 May 2022 02:44:33 -0700 (PDT) Received: from antos (85-207-121-76.static.bluetone.cz. [85.207.121.76]) by smtp.gmail.com with ESMTPSA id hv6-20020a17090760c600b006f3ef214e4fsm729113ejc.181.2022.05.18.02.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 02:44:33 -0700 (PDT) From: Antonin Houska To: "Euler Taveira" cc: "Amit Kapila" , "Peter Eisentraut" , "PostgreSQL Hackers" Subject: Re: Privileges on PUBLICATION In-reply-to: References: <20330.1652105397@antos> <8a00e0e1-dc4e-422c-9dcf-664b16b18625@www.fastmail.com> <2810.1652171844@antos> <5859.1652423797@antos> Comments: In-reply-to "Euler Taveira" message dated "Fri, 13 May 2022 16:28:45 -0300." X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 27.2.50 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Wed, 18 May 2022 11:44:57 +0200 Message-ID: <57022.1652867097@antos> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Euler Taveira wrote: > On Fri, May 13, 2022, at 3:36 AM, Antonin Houska wrote: > > Attached is my proposal. It tries to be more specific and does not mention the > absence of the privileges explicitly. > > You explained the current issue but say nothing about the limitation. This > information will trigger a question possibly in one of the MLs. IMO if you say > something like the sentence above at the end, it will make it clear why that > setup expose all data (there is no access control to publications) and > explicitly say there is a TODO here. > > Additional privileges might be added to control access to table data in a > future version of PostgreSQL. I thought it sound too negative if absence of some feature was mentioned explicitly. However it makes sense to be clear from technical point of view. > I also wouldn't use the warning tag because it fits in the same category as the > other restrictions listed in the page. ok, please see the next version. -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=publication_filtering_warning_v2.diff diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml index 1a828e8d2ff..259fe20a148 100644 --- a/doc/src/sgml/ref/create_publication.sgml +++ b/doc/src/sgml/ref/create_publication.sgml @@ -112,6 +112,17 @@ CREATE PUBLICATION name Specifying a table that is part of a schema specified by FOR ALL TABLES IN SCHEMA is not supported. + + + Note that there are currently no privileges on publication, and that any + subscriber can access any publication. Thus if you're trying to hide + some information from particular subscribers (by using the + WHERE clause or the column list, or by not adding the + whole table to the publication), please be aware that other publications + can expose the same information. Publication privileges might be added + to PostgreSQL in the future to allow for + fine-grained access control. + --=-=-=--