Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdy1l-00061a-Vs for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:27:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdy1k-0005Cd-8J for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:27:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdy1j-0005CW-UU for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 14:26:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdy1b-0006sT-VR for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 14:26:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5KEQiVl007058; Thu, 20 Jun 2019 10:26:44 -0400 From: Tom Lane To: Karsten Hilbert cc: pgsql-general@lists.postgresql.org Subject: Re: Row data is reflected in DETAIL message when constraints fail on insert/update In-reply-to: <20190620114527.GD30366@hermes.hilbert.loc> References: <20190620114527.GD30366@hermes.hilbert.loc> Comments: In-reply-to Karsten Hilbert message dated "Thu, 20 Jun 2019 13:45:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7056.1561040804.1@sss.pgh.pa.us> Date: Thu, 20 Jun 2019 10:26:44 -0400 Message-ID: <7057.1561040804@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Karsten Hilbert writes: > On Thu, Jun 20, 2019 at 01:26:23PM +0200, Shay Rojansky wrote: >> In other words, this isn't about verbosity, but about sensitive data. It >> seems like a specific knob for sensitive information may be required, which >> would be off by default and would potentially affect other fields as well >> (if relevant). > A specifig knob for "sensitive data" cannot be supplied by > PostgreSQL because it cannot know beforehand what information > will be considered sensitive under a given, future, usage > scenario. Yeah, it's fairly hard to see how we could respond to this complaint without lobotomizing our error messages to the point of near uselessness. Almost any non-constant text in an error report could possibly be seen as hazardous. More generally: I find this complaint a little confusing. We did not consider reporting the "show row contents" DETAIL to the client to be a security hazard when it was added, because one would think that that's just data that the client already knows anyway. I'd be interested to see a plausible use-case in which the message would reflect PII that had not been supplied by or available to the client. regards, tom lane