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 1jxcf6-0000rz-3c for pgsql-general@arkaria.postgresql.org; Mon, 20 Jul 2020 20:45:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxcf4-0001zh-Tt for pgsql-general@arkaria.postgresql.org; Mon, 20 Jul 2020 20:45:22 +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 1jxcf4-0001za-Hl for pgsql-general@lists.postgresql.org; Mon, 20 Jul 2020 20:45:22 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxcez-0004GN-V6 for pgsql-general@lists.postgresql.org; Mon, 20 Jul 2020 20:45:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1595277915; bh=zyGVMdQCWvURGsjIisKhdumOQnpzAYrhoA3WG49jZko=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=Hf0JY3Iu2DiBUPj4kJOuPcn0OtFOzpXvYkZ7jH6ZJN7CqsaY+UPTwYCq2d154Hjeo cq6U45ykW8Su/S2R21Fzv7jFzhrbVOieby7n4IwhQqcrpZQBG/X4/5RhmFqaTy0WoW jq2FkjmxVuGQLjCRXhPJANQJRc36g33T0WzUfFmM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([77.11.18.64]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCKBc-1k5u8H0gpW-009SdD for ; Mon, 20 Jul 2020 22:45:15 +0200 Received: from ncq by hermes with local (Exim 4.92) (envelope-from ) id 1jxcew-00024b-6P for pgsql-general@lists.postgresql.org; Mon, 20 Jul 2020 22:45:14 +0200 Date: Mon, 20 Jul 2020 22:45:14 +0200 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Extension vs Implementing Wire Protocol Message-ID: <20200720204514.GB1649@hermes.hilbert.loc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: X-Provags-ID: V03:K1:MRbTu9Nnk5PAA/mPwATabB1R33HnsTg5Y3rwnyDetbRl08jzegB TZBgd7xJCJk5Lz9983FnW9oek6wxDzmzbJIDzdZBfYJOJCtDZBlwuAXWiUaaZvPBDwpOiiM 6cxQvWb7Vp/hoOkGbEmQ12385JBfVYuLSUzEwyYUjk1IZmPek20ualAFjH9im3csloSML5N 7dS8VWjEFYTLc+3IEu2Qw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9ZwN/dNdtpw=:ehFOa2hyEvjSDKwSOcYPc3 OddwqcHdsVhJjpaPNkmzDOYudv+R1LVpoZg4uAhKRdl+UaZZMV5CIW8maxszIcY8hCuEPnGPX 8NwUMiZ4+0b2pgS5sx2Hc87t5PBjeUC2lrNm42ryQcJSPz+6SMH65YExsfKdpvZYlol7mnTWo OP82VPMUsxaHDyP5ZT8mU5fDMEW154klQwDyIOk1T2sBNhWBLvXavRu2XQ72SDDFtWdy4QBKU 7N9b1v6xRYbpb0ZBSCG8zokiEgRTiiEaXBMTLM9EGE8iprKDhLrzIlFm5K3FVIIkfgrorskx6 6mB4Z+2IG+H7EGQVnI04PGph7uLcfDfvZeO98JskP4sfVkbtnvyabM37gd+XYZa241c6+U7vM oP/ZkTK6W4/aM5QmOptEl7+P9KB5p4wXVZU3InMjRTH9ZU7BxWO893q8BXLk2b4GzNtpsk4DJ FLvnP0V/9chBlogorvD4heV6S01nSV356GfVygR18EzYkrh5ZWnLcplvmm6bmcu2svXDtNxq9 dDMv7dpXHTjHCp0xW8XjzLqTM5XjpXUf6/GCG8uBR0EY2pj+nJXXThKRGUHKoc8eghPAg+X9+ C16Put7+hEH29V/9ylLslDrhxGYRqItDcXv4HpNJduDl0X4xHPBr0zMnZDyNdwrcZ7c4/5W5x m7pL7YEmigd0rNcLiBETzIbn06QpaSSZn2U25nJ66nN8yOG6wCV3RLZhE7oyb8DNQ674Y9H0R 1W9dPpKG4I1pQAwtE5/NevV/3Ycd6n/hJNNKF7gxMXsNSCTODmtLrszXDjOglqVxkIYAUnY9r Mae2oiEg3oz+7u3kIKPWNNSFiUJu91ym6FosSkUwqZfi1iiYp9QjlcziFyEbFZLPCrjfWW6GM qTyQdGThnZhPQLHnu09G1KobTyKjRK5D8EMAsSrXlG9u/D9Y3SbuwFCJYwiUJFKsaAQZgzjyr +yXxW8hFvx0qgywxgq7nmJeIs0SuuDKUadIR9HiQscIbyoDdgs4hEuHof2V8XhwMgLHNls2nk GtbavHEO1xL1U7yrlCwGfWQxcYzs+8RWyxtGlFhUAziql+utaTpeyBAAM4gNJw7ShvLHcfwJE dbRa6v/IsDCY7gt9GRedJoVyjxicfduJzwrCrcE5UPwgrGCTyJkK1V+cht8SGn2DACxSamHqu VPbdjWWC4hAd/Ncw/gMozK7y9Bs/lvmE3gwFMi56UToydctJe1X3k6R9puiKeraHcZRPmOK+l asCOS3UR/P3abIgWGeXr8JTGQ+O2GUHgN54Bhkw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jul 20, 2020 at 10:36:26PM +0200, Thomas Kellerer wrote: > > * 'SELECT * FROM table;' should return masked versions of the column= s based on policy for that specific user. > > * 'SELECT * FROM table;' should return just the columns accessible t= o a=A0specific user. > > > > Questions: > > > > 1. Are there easily extensible (ideally open-source) proxies that > > already implement the Postgres protocol that we could modify/extend > > to support this? > > You might want to look this extension: > > https://postgresql-anonymizer.readthedocs.io/en/latest/ or https://github.com/marcmunro/veil Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B