From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Shay Rojansky <roji@roji.org>
Cc: William Denton <wdenton@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Row data is reflected in DETAIL message when constraints fail on insert/update
Date: Thu, 20 Jun 2019 07:12:44 -0700
Message-ID: <9ad9c755-09f8-e77d-ceb9-fe6f07790ebd@aklaver.com> (raw)
In-Reply-To: <CADT4RqDYLKWxxHejU2ZE6Wmveo8x09Zf8aw4pdT-=0uU82Us=Q@mail.gmail.com>
References: <CAO8wz8QdKRTJUnW--AZ2N-BvJAemS+P9=Sr7zUbkO+wmAmA7LQ@mail.gmail.com>
<b2afcfd3-a2c2-9bdc-3e62-a28392f0b8f6@aklaver.com>
<CADT4RqDYLKWxxHejU2ZE6Wmveo8x09Zf8aw4pdT-=0uU82Us=Q@mail.gmail.com>
On 6/20/19 4:26 AM, Shay Rojansky wrote:
> Shay here, maintainer of the Npgsql driver for .NET.
>
> >> Is there a setting where i can disable the DETAIL field being populated
> >> with row data?
> >
> > See:
> >
> >
> https://www.postgresql.org/docs/11/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT
> >
> > log_error_verbosity
>
> While this is helpful, this does not seem to quite fit:
>
> 1. As this is about personal sensitive data (including conceivably
> authentication information), the fact that the default is to log seems
> problematic.
> 2. The TERSE setting also disables HINT, QUERY and CONTEXT.
> 3. There may be other information sent in the DETAIL messages which does
> not contain sensitive data. There's no reason to have that disabled
> along with the sensitive data.
>
> 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).
As Karsten said that is beyond the scope of the Postgres logging. The
prudent thing would be to prevent the log information reaching the
application logs. Or put it a log that can only be seen by authorized
personnel.
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, roji@roji.org, wdenton@gmail.com
Subject: Re: Row data is reflected in DETAIL message when constraints fail on insert/update
In-Reply-To: <9ad9c755-09f8-e77d-ceb9-fe6f07790ebd@aklaver.com>
References: <CAO8wz8QdKRTJUnW--AZ2N-BvJAemS+P9=Sr7zUbkO+wmAmA7LQ@mail.gmail.com> <b2afcfd3-a2c2-9bdc-3e62-a28392f0b8f6@aklaver.com> <CADT4RqDYLKWxxHejU2ZE6Wmveo8x09Zf8aw4pdT-=0uU82Us=Q@mail.gmail.com> <9ad9c755-09f8-e77d-ceb9-fe6f07790ebd@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox