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 1o3Hxq-0005Bx-17 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2022 14:01:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o3Hxo-0001UZ-QC for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2022 14:01:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o3Hxo-0001UP-CY for pgsql-hackers@lists.postgresql.org; Mon, 20 Jun 2022 14:01:12 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o3Hxg-00063u-J0 for pgsql-hackers@lists.postgresql.org; Mon, 20 Jun 2022 14:01:11 +0000 Received: by mail-ed1-x533.google.com with SMTP id e40so2710431eda.2 for ; Mon, 20 Jun 2022 07:01:04 -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=6U/zuvSrUSSkgs0qeQiQufk9+tt1iY2j6BCBDe/R/uA=; b=0vkvRgoM8lnQbDntX8cLqG2EoSPuAVx2KOqGHCy26VAR0tKJrt2iP0R+9qkU672Rh7 jfkDuibb/bzMmX3FkvVu/C+YAF2KksIQjEh9WmDxGydjYtKPwEMRqYoxwdd88kzJjuq6 QNHrZbqD8sxXBg8CKChnO0d4W4Q0PdFk03Dhixo1yeMoXQYRmfXHWzQhnIhdrbSkmRd1 oxbmWrdvTq6LxfUsBbT2uAM3a0jKH2I/qTkoFaJ087WHWVtFW788wZCZO6BNNyDVh8RQ H9t6Mi1+C58Z95e4Xen4ViX53b9V1QrZMug/yvQFj+vRzk91l6g7jtgV6Lh1VAjx8EeM q5qA== 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=6U/zuvSrUSSkgs0qeQiQufk9+tt1iY2j6BCBDe/R/uA=; b=7wPvwISH6SmZTYgy2m6RBGwivEokufySxuWkn6jvvekcZpAoZV+uRcUF3QulP8bvjP +YP9ZWby19i9+Fi+poKbC++w6URsDUqlfePjB+W7wOu6/bF3GZsUlaxIntgjdnsi2NV4 4PM3gM+zp3EgC88yh1qkISY00LU7lLsbCA1YivDJ/gG5LbSvna5O5hdOPqnCWNKLr6NE EFAunAbJQ7XzPstJxBwl0GLEjjrsap+P1iMJx0HixpUn0BeWCSf0oYQvGABgL8sAChgu ro0RTgRdIQOZUBdzWybEdaMWBYCopWsyVr7f3AY4HGTyaAZES6YS2Akwxh+ShtuiTmuS R3jQ== X-Gm-Message-State: AJIora85a0TGbipG3NttdDaEmrj0Oyh2w6sw1AkFsV4tNNTIIF1X/HbA fRZkz5D5DHcexYyXZle/getAEw== X-Google-Smtp-Source: AGRyM1tD+DUy98AV+/DfzNilTghCQW3buejm2jzKOc8I0XuBVV9p0Bo3QOBp5zz8ZC6BhKfE1+8eFw== X-Received: by 2002:aa7:dac2:0:b0:435:76a2:4ebe with SMTP id x2-20020aa7dac2000000b0043576a24ebemr11057071eds.196.1655733663319; Mon, 20 Jun 2022 07:01:03 -0700 (PDT) Received: from antos.home (90-183-80-113.rcq.o2.cz. [90.183.80.113]) by smtp.gmail.com with ESMTPSA id r2-20020a17090609c200b006fef0c7072esm6116817eje.144.2022.06.20.07.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 07:01:02 -0700 (PDT) From: Antonin Houska To: "Euler Taveira" cc: "Amit Kapila" , "Peter Eisentraut" , "PostgreSQL Hackers" Subject: Re: Privileges on PUBLICATION In-reply-to: <4c420c17-8570-4b52-b7f6-9ce3f53d7ef9@www.fastmail.com> References: <20330.1652105397@antos> <8a00e0e1-dc4e-422c-9dcf-664b16b18625@www.fastmail.com> <2810.1652171844@antos> <5859.1652423797@antos> <57022.1652867097@antos> <4c420c17-8570-4b52-b7f6-9ce3f53d7ef9@www.fastmail.com> Comments: In-reply-to "Euler Taveira" message dated "Wed, 18 May 2022 15:19:29 -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: Mon, 20 Jun 2022 16:01:35 +0200 Message-ID: <14292.1655733695@antos.home> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Euler Taveira wrote: > --eeab359ad6094efd84562cddd7fb9e89 > Content-Type: text/plain > > On Wed, May 18, 2022, at 6:44 AM, Antonin Houska wrote: > > ok, please see the next version. > The new paragraph looks good to me. I'm not sure if the CREATE PUBLICATION is > the right place to provide such information. As I suggested in a previous email > [1], you could add it to "Logical Replication > Security". ok, I missed that. The next version moves the text there. > [1] https://postgr.es/m/d96103fe-99e2-4119-bd76-952d326b7539@www.fastmail.com -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=publication_filtering_warning_v3.diff diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml index 145ea71d61b..2fcaa9d261a 100644 --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -1171,6 +1171,17 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER schema automatically, the user must be a superuser. + + 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. + + To create a subscription, the user must be a superuser. --=-=-=--