Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obGub-0001CM-GQ for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 07:46:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obGua-00057Y-DZ for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 07:46:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obGuZ-00052d-TA for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 07:46:20 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1obGuX-0002oM-8M for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 07:46:18 +0000 Received: by mail-ed1-x534.google.com with SMTP id w28so12328775edi.7 for ; Thu, 22 Sep 2022 00:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date; bh=aI4SCFwhG+6lpEUHiWLFva8DESiJIhXlu0GVni2wnFs=; b=ajuMzsu81ZSfJUxIXGcnv1fZBgjXShvCLANNitGlxlX3vcty3FPS0NzIkwLwEvMs4L OXbUKLb21SIpSTf8ybRjCP2oTG3zKwNlDmdWoVVT9i7NDbX7ohQVoHIoub/rDLa5BKnH S92nVrHrGXm4so+rCnHfpSqmfj/tHrGYBZPCWR2HBk5U91pEtVPVBzLCnriUQCagYK8c D0IN3mmjgTRxUZYleVdBbdIUAVww3P8ttVhcgk0Xv2bRLOFSAjvkRkeHfarxpQpLH9W4 uV+T6+MNNJZj+7yRJTA9JIVKNookA1E58z78BBS3hTAUkabbSNAXVLkNVUaUFQsVKo4u YsOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date; bh=aI4SCFwhG+6lpEUHiWLFva8DESiJIhXlu0GVni2wnFs=; b=bZwYV5P08ZCNQNNc3RsP9NmIVTjuofarrzC/kvCIXLUzq90LmGYfquPCsgm99YDYDJ jKs0db+lKrjfU8jHF7kZLWtwC9HLsC9BYmNU4K39gTO67T7dhD7rYKzYIRze+EaWCrGP wljUUUCVx5IZKNn2hv/IDoU51XILMLCxce4jvTiGNxc7CtRIdEIjWc3/BNlPcBLHExE8 S43Lei5EsIj+zihuN2BRwiIrxyPeOti1ldL0r7CAN5v3KsDC2v2XSfCl0ZZz2YdV6TW7 7hMb/4W5Lff4NnX5XmxZALqnVCoFXoDNXXFSQ+pDwrRWFKtc45Jl7F8dJZrSiogk+za+ ghdQ== X-Gm-Message-State: ACrzQf0CYnepcZbbjkikEcCTu7E1ow+pCJoWJ8IHAShrg8VK2E+hdwkt 9hHmkIemNIXRhKjPS+r09BN0eg== X-Google-Smtp-Source: AMsMyM5cuxg36cBfHLVM1ZwJt0DSTwQ+9BMdJqySTYiJ1bZO4SruwA2Aun4xJyauPnRQbj5ByEpU9Q== X-Received: by 2002:a05:6402:3c8:b0:454:44b3:2e2a with SMTP id t8-20020a05640203c800b0045444b32e2amr1894523edw.283.1663832775479; Thu, 22 Sep 2022 00:46:15 -0700 (PDT) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id r9-20020a1709061ba900b0078258a26667sm380143ejg.52.2022.09.22.00.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 00:46:14 -0700 (PDT) Message-ID: <3d512cd00a221216d3ac99b046285b4aa4302033.camel@cybertec.at> Subject: Re: PCI-DSS Requirements From: Laurenz Albe To: Inzamam Shafiq , Ron , "pgsql-general@lists.postgresql.org" Date: Thu, 22 Sep 2022 09:46:14 +0200 In-Reply-To: References: <7fcd64b3-8943-98ee-27c8-08c9b9c0e7d6@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2022-09-22 at 06:16 +0000, Inzamam Shafiq wrote: > From: Ron > > > Anyone on PCI-DSS requirements for PostgreSQL DB, need help for some of the points. > > > > Can you be more specific?  (Typically. the auditors or the "audit pre-check" team > > will ask for a bunch of details on how your instance is configured.) > > > > The usual questions I get are: > > - What password hash algorithm is used? > > - How frequently to passwords expire? > > - Is SSL used when communicating with applications? > > Actually we are in a starting phase and I have done instance level encryption > (CYBERTECH TDE Patch) but if someone take dump and restore it on another server > the data get restored successfully. Also the problem is that the data is in plain text. > > So I want to ask if disk or instance level encryption useful or we should focus on > column level encryption? > > Also if any error occurred during DML and a plain query will be written into the > logs which may not be compliant with PCI. How to overcome that? Yes, data-at-rest encryption is expensive, but of limited effectiveness. If you store sensitive information about credit cards and their owners, the best you can do is encrypt sensitive columns in the application, so that unencrypted data never touch the database. Make sure you don't encrypt everything, only the sensitive data, so that you can retain some degree of usability. A great deal will also rest on your database user management and authentication, and how well access to the system is logged and controlled. All that said, there is always a difference between good security and passing a certification exam... Yours, Laurenz Albe