Re: pie-in-sky idea: 'sensitive' function parameters - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: pie-in-sky idea: 'sensitive' function parameters
Date
Msg-id 5ED16444.1060501@anastigmatix.net
Whole thread Raw
In response to Re: pie-in-sky idea: 'sensitive' function parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 05/29/20 15:26, Tom Lane wrote:

> all of the simpler cases I can think of: aside from the ALTER USER
> PASSWORD case, there's INSERT INTO accounts(..., creditcardnumber,
> ...) VALUES(..., $n, ...).  Neither one of those have a nearby UDF
> to control it with.

I was thinking incrementally ... something about UDFs only might
be quickish to do as a PoC. And is already useful, because if exposure
of a particular thing bothers you enough, you can make a UDF or P to
control it with.

But ultimately, if ALTER USER PASSWORD has sensitivity of
its parameter hardcoded in, and CREATE TABLE ACCOUNTS can declare
creditcardnumber SENSITIVE, then maybe those bits go out to the client
in the parameter Describe message, and come back in the Bind message,
without the user even necessarily thinking about it.

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pie-in-sky idea: 'sensitive' function parameters
Next
From: Robert Haas
Date:
Subject: Re: Default gucs for EXPLAIN