Re: Permissions, "soft read failure" - wishful thinking?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Benjamin Smith <lists(at)benjamindsmith(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Permissions, "soft read failure" - wishful thinking?
Date: 2015-12-15 02:57:09
Message-ID: CAKFQuwaB9C7PYN6Gi1yg2+BrbDG2vhmya=DgWJ1KFAy+yLtyCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, December 14, 2015, Benjamin Smith <lists(at)benjamindsmith(dot)com>
wrote:

> On Monday, December 14, 2015 05:25:16 PM Adrian Klaver wrote:
> > > FOLLOWUP QUESTION: is there a way to ask the query planner what
> > > tables/fields were output in a database result?
> >
> > Just dawned on me, are you asking if EXPLAIN can output more detailed
> > information?
>
> Ha ha, in another post, I just explained that the idea for the follow up
> question came from EXPLAIN ANALYZE. Yes, the idea being to see if there
> was a
> way to ask PG what tables/fields were used to output a specific result,
> field by
> field, and then squelch these fields in our DB abstraction layer rather
> than in
> the DB directly.
>
> We're being asked to satisfy some pretty strict guarantees of data privacy
> that were unanticipated when designing our product. Adding strict
> permissions
> now would be an expensive proposition.
>
>
Alter table private_data alter column ssn check (ssn = '');

I'm only partially joking...

These seem like sound ideas (or maybe not as I write more...) so the
question is whether you want to fund developing them instead of fixing your
application. They don't seem like magic bullets though so you still have
to work on the application...

You are likely going to burn a lot of cycles on lots of queries that don't
care about this stuff to cover the few that do, not a worthwhile trade-off
generally.

Maybe you should tell your customer that the cost-benefit isn't there for
your company...

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2015-12-15 03:09:37 Re: Permissions, "soft read failure" - wishful thinking?
Previous Message Jack Christensen 2015-12-15 02:45:23 Re: Permissions, "soft read failure" - wishful thinking?