pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_audit to mask literal sql
8+ messages / 5 participants
[nested] [flat]
* pg_audit to mask literal sql
@ 2017-10-30 17:55 rakeshkumar464 <rakeshkumar464@outlook.com>
0 siblings, 2 replies; 8+ messages in thread
From: rakeshkumar464 @ 2017-10-30 17:55 UTC (permalink / raw)
To: pgsql-general
Is there a way in pgaudit to mask literal sqls like the below:
insert into table (col1,col2) values(1,2)
select * from table where col1 = 1
These sqls are typed by our QA folks using pgadmin. pgaudit records this
verbatim which runs afoul of our HIPAA requirement. Prepared statements are
not an issue since pgaudit provides a way to suppress values.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 20:58 Arthur Zakirov <a.zakirov@postgrespro.ru>
parent: rakeshkumar464 <rakeshkumar464@outlook.com>
1 sibling, 0 replies; 8+ messages in thread
From: Arthur Zakirov @ 2017-10-30 20:58 UTC (permalink / raw)
To: rakeshkumar464 <rakeshkumar464@outlook.com>; +Cc: pgsql-general
On Mon, Oct 30, 2017 at 10:55:17AM -0700, rakeshkumar464 wrote:
> Is there a way in pgaudit to mask literal sqls like the below:
>
> insert into table (col1,col2) values(1,2)
> select * from table where col1 = 1
>
> These sqls are typed by our QA folks using pgadmin. pgaudit records this
> verbatim which runs afoul of our HIPAA requirement. Prepared statements are
> not an issue since pgaudit provides a way to suppress values.
>
I doubt that. But I'm not sure that I understood you correctly. What do
you mean by "mask"? Some additional examples may be useful too.
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 21:35 John R Pierce <pierce@hogranch.com>
parent: rakeshkumar464 <rakeshkumar464@outlook.com>
1 sibling, 3 replies; 8+ messages in thread
From: John R Pierce @ 2017-10-30 21:35 UTC (permalink / raw)
To: pgsql-general
On 10/30/2017 10:55 AM, rakeshkumar464 wrote:
> Is there a way in pgaudit to mask literal sqls like the below:
>
> insert into table (col1,col2) values(1,2)
> select * from table where col1 = 1
>
> These sqls are typed by our QA folks using pgadmin. pgaudit records this
> verbatim which runs afoul of our HIPAA requirement. Prepared statements are
> not an issue since pgaudit provides a way to suppress values.
if you have a HIPAA requirement that says 'dont run manual sql
statements', then, well, DONT.
why are QA folks making changes on production databases, anyways?
thats not within their domain. QA should be working on development or
staging databases.
--
john r pierce, recycling bits in santa cruz
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 21:46 Rob Sargent <robjsargent@gmail.com>
parent: John R Pierce <pierce@hogranch.com>
2 siblings, 1 reply; 8+ messages in thread
From: Rob Sargent @ 2017-10-30 21:46 UTC (permalink / raw)
To: pgsql-general
On 10/30/2017 03:35 PM, John R Pierce wrote:
> On 10/30/2017 10:55 AM, rakeshkumar464 wrote:
>> Is there a way in pgaudit to mask literal sqls like the below:
>>
>> insert into table (col1,col2) values(1,2)
>> select * from table where col1 = 1
>>
>> These sqls are typed by our QA folks using pgadmin. pgaudit records this
>> verbatim which runs afoul of our HIPAA requirement. Prepared
>> statements are
>> not an issue since pgaudit provides a way to suppress values.
>
> if you have a HIPAA requirement that says 'dont run manual sql
> statements', then, well, DONT.
>
> why are QA folks making changes on production databases, anyways?
> thats not within their domain. QA should be working on development
> or staging databases.
>
>
>
I suspect the QA types are testing against production and using/seeing
real names, etc with queries which create /transitory/ tables. I wonder
if the QA folks have been HIPAA certified? Probable better to get them
redacted data for testing.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 22:42 rakeshkumar464 <rakeshkumar464@outlook.com>
parent: John R Pierce <pierce@hogranch.com>
2 siblings, 0 replies; 8+ messages in thread
From: rakeshkumar464 @ 2017-10-30 22:42 UTC (permalink / raw)
To: pgsql-general
No they do select.
It is fine in HIPAA to view data which are protected, if it is part of your
job. What is not fine is being careless with that protected data and let
unauthorized person view that data.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 22:43 rakeshkumar464 <rakeshkumar464@outlook.com>
parent: Rob Sargent <robjsargent@gmail.com>
0 siblings, 0 replies; 8+ messages in thread
From: rakeshkumar464 @ 2017-10-30 22:43 UTC (permalink / raw)
To: pgsql-general
Yes all who interact with HIPAA data are trained for HIPAA SOP.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-30 22:44 rakeshkumar464 <rakeshkumar464@outlook.com>
parent: John R Pierce <pierce@hogranch.com>
2 siblings, 1 reply; 8+ messages in thread
From: rakeshkumar464 @ 2017-10-30 22:44 UTC (permalink / raw)
To: pgsql-general
By mask I mean pgaudit should log where ssn = '123-456-7891' as where ssn =
'?'
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_audit to mask literal sql
@ 2017-10-31 12:08 Stephen Frost <sfrost@snowman.net>
parent: rakeshkumar464 <rakeshkumar464@outlook.com>
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Frost @ 2017-10-31 12:08 UTC (permalink / raw)
To: rakeshkumar464 <rakeshkumar464@outlook.com>; +Cc: pgsql-general
Greetings,
* rakeshkumar464 (rakeshkumar464@outlook.com) wrote:
> By mask I mean pgaudit should log where ssn = '123-456-7891' as where ssn =
> '?'
Data masking really isn't part of auditing, and so even if pgaudit could
do so, that wouldn't really be the right place to make it happen.
There have been discussions about data masking previously but they
haven't really lead anywhere. Having proper auditing capabilities built
into the backend and then a way to classify errors (such as syntax error
or other issue where we couldn't tell what the query actually was due to
a user fat-fingering something) as 'not to be logged' would at least get
us closer to your goal of not wanting sensitive data in the log files,
but PG isn't there yet.
That said, there are quite a few people who do use PG with HIPPA and
address the requirements required for it in other ways (as discussed
elsewhere on this thread).
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2017-10-31 12:08 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 17:55 pg_audit to mask literal sql rakeshkumar464 <rakeshkumar464@outlook.com>
2017-10-30 20:58 ` Arthur Zakirov <a.zakirov@postgrespro.ru>
2017-10-30 21:35 ` John R Pierce <pierce@hogranch.com>
2017-10-30 21:46 ` Rob Sargent <robjsargent@gmail.com>
2017-10-30 22:43 ` rakeshkumar464 <rakeshkumar464@outlook.com>
2017-10-30 22:42 ` rakeshkumar464 <rakeshkumar464@outlook.com>
2017-10-30 22:44 ` rakeshkumar464 <rakeshkumar464@outlook.com>
2017-10-31 12:08 ` Stephen Frost <sfrost@snowman.net>
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