Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9HvU-0000Yh-8p for pgsql-general@arkaria.postgresql.org; Mon, 30 Oct 2017 21:48:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9HvT-0000jV-Rw for pgsql-general@arkaria.postgresql.org; Mon, 30 Oct 2017 21:48:55 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9Ht4-0004u5-I9 for pgsql-general@postgresql.org; Mon, 30 Oct 2017 21:46:26 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e9Ht1-0002uS-G7 for pgsql-general@postgresql.org; Mon, 30 Oct 2017 21:46:26 +0000 Received: by mail-pg0-x22a.google.com with SMTP id s75so12814439pgs.0 for ; Mon, 30 Oct 2017 14:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=OSLh35H9KxE+jsFKVcqjQ2BVxxKLyTUgQijLgRPqvzQ=; b=GCuyuniTxaIj9g+CeGjIwIYNrzBGBZx7rO8Rh5FVPPsW7Ysv4e0iDmB0AmWjcbw6Wg ji1+FvueoqW06O1ga6RgnlcH5IWWyfeY96BY0iICqWYgjFyx3qplJVYgbFmBFzyqnwF2 7KLiP+cGWz+XeDYLJM7CQ3agl20FBQE2tI3p5nLjqgElqAQMEVv3KQ6fD9PrOuoKRaeW Ja0rT7Ifc/9B+QEMG9I4Bw0zU1uo7YQqwsQpPm3DQqVqZpAa6yM7IAJpozFRE/qm5OIo 1JLdF83V03KZibumQiPdI4qK9nTgcfvHmxMF22xTFHJEBmwkcIV5g1kZ14LWJmCTLunb GDQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=OSLh35H9KxE+jsFKVcqjQ2BVxxKLyTUgQijLgRPqvzQ=; b=Ly5L8tckysygE9O2ArNi+tsTrbqLa+/lC5tAl11Qkl2xwFcsrQQVA/YDAj8qKxQm5P THCKT9xg1bJWSRedKOOlpfrWjv4G1k0vLfIhU5WNhZhRgAfoJBZ8ei0lZoZG/pysPioe eDg3Gc3FFwkLcraRNZh5WQB7x7UcjobVR+zlkQAuuOIWeh/p4uW4BI7UUoKFzOzczUmD MDCXuq0v5anGR6ZJ6CQXcNro5p4NLxZZF4lWkKcRU9VwQGNLi9gdeg0Lx4f8FU1fZILZ iYOaKHB2Sy8I1xjWWKBTOevvFQOKb4vkwbwk5WOuzX63IrbfupteoFeMwdaBBevb/o53 QElA== X-Gm-Message-State: AMCzsaVRUe5MDfTvZymG99BFrkHbZPqpe30TGsiDGqDRMRgUHh0IIP4K V2Jf1vq03KOn2PMRXdQB2C/O0UYE X-Google-Smtp-Source: ABhQp+RniBaQcY1l4tRCTSS7KQqJnaIwnfCQivICscz9HvS3M3FdukDxm4BV2MgnES6sYMRDXBYjVA== X-Received: by 10.84.169.36 with SMTP id g33mr8245378plb.216.1509399980263; Mon, 30 Oct 2017 14:46:20 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id y10sm26410677pfl.186.2017.10.30.14.46.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Oct 2017 14:46:19 -0700 (PDT) Subject: Re: pg_audit to mask literal sql To: pgsql-general@postgresql.org References: <1509386117860-0.post@n3.nabble.com> <7fbd72e8-a50d-d637-1959-c4541ad3a291@hogranch.com> From: Rob Sargent Message-ID: <332085cf-dad5-09db-0b4c-69596387037f@gmail.com> Date: Mon, 30 Oct 2017 15:46:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <7fbd72e8-a50d-d637-1959-c4541ad3a291@hogranch.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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