Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9fh8-0000CY-BK for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:43:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9fh2-0004Vb-TD for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:43:52 +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.89) (envelope-from ) id 1f9fh2-0004VS-J0 for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:43:52 +0000 Received: from mail-ot0-x231.google.com ([2607:f8b0:4003:c0f::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f9fgz-0006BD-No for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:43:51 +0000 Received: by mail-ot0-x231.google.com with SMTP id d9-v6so11367408oth.10 for ; Fri, 20 Apr 2018 16:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=U/AUPDz2TDcHLVCmyatbD4wg8qiiMWwJ0OmAl45Hu+8=; b=LHk4n3Yr+cAXzfxNk2fhLaic11jpK02LgRFQIWIl7wUEwAavKLJg9RlTfO4X8fX/Dg eXk1bOTn36KpKnA2J31664DQIi+RTWrieEIsxmIhOc8mHYGG8rxvwaKitzea2MVm2sF+ 8KdlhyZnwPMjimATFFgRPXDijMBrD8ciJAkVvvcIJ/jkUhMLg/GM09rEC/3ZdyUAdHSe 4jdd23ytMxjSrL8CZPY6Ec5K665mjFa8kJe3dIOpX2wFzpUGzjjPCgnkUmKmFx/hrNeU VuRQSs7mVv+auy7PBf4H2JlcZDq4DHIzv71EE7Qc+FHRhIecfDwHWmSVi+ZlWUrnOMDS kB+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=U/AUPDz2TDcHLVCmyatbD4wg8qiiMWwJ0OmAl45Hu+8=; b=Ef1sHQSdJxUhqPesiPh4Lozh6xlScm9tTSsod+Tz+tnsJ40KPWLelw3vn0h+wQnx5I AztOYNt73oVoqoIpf/alGpPh36DBPHvfPVZCxpY6q/plecNEkWPprrRtvSsIZd0zm6U4 MtPIH/zu1Xao8hvIKkBZx7knVPCeZUm6JyIViU9eeLgqw0sXIy5uQzRUbQ9ddw5GXnov AbCTgsxkZa8Pw8n3oHmNPPaZvf3ffJWpjFecsy2CQ5Xc02iE5KnH0wr4RtO9xxQVpRlu gH5OvVBhnEBiIWi5ypWSDRqlzQXUjBjiPgIkIwhMPVvsAX83EWMH7rFrkVOFpJug11fY WasA== X-Gm-Message-State: ALQs6tANdH7Bktfj08kb/Rh4+sZgNyP6iJhLQ58G7ik0nOWtZRA0ANfj umAozJlTyjpgRYxRDQG+swiXiw== X-Google-Smtp-Source: AB8JxZqaBGVnQKuRpcmUcMwlK2O/ZgCSQoUsgIhzyN4sPLrwolAQr97uafeRqOHzR029FwuRWbvgsA== X-Received: by 2002:a9d:99:: with SMTP id w25-v6mr3044851oti.253.1524267826380; Fri, 20 Apr 2018 16:43:46 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id c24-v6sm4897479otd.36.2018.04.20.16.43.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 16:43:45 -0700 (PDT) Subject: Re: Postgresql database encryption To: Stephen Frost Cc: pgsql-general@lists.postgresql.org References: <7035313d-50fa-8d9c-3aa3-999d12e06afa@gmail.com> <20180420231119.GD27724@tamriel.snowman.net> From: Ron Message-ID: <36760092-50f6-9297-4d01-da2bbd55df7d@gmail.com> Date: Fri, 20 Apr 2018 18:43:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180420231119.GD27724@tamriel.snowman.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/20/2018 06:11 PM, Stephen Frost wrote: > Greetings, > > * Ron (ronljohnsonjr@gmail.com) wrote: >> On 04/20/2018 03:55 PM, Vick Khera wrote: >>> On Fri, Apr 20, 2018 at 11:24 AM, Vikas Sharma >> For anyone to offer a proper solution, you need to say what purpose your >>> encryption will serve. Does the data need to be encrypted at rest? Does it >>> need to be encrypted in memory? Does it need to be encrypted at the >>> database level or at the application level? Do you need to be able to >>> query the data? There are all sorts of scenarios and use cases, and you >>> need to be more specific. >>> >>> For me, using whole-disk encryption solved my need, which was to ensure >>> that the data on disk cannot be read once removed from the server. >> Someone really needs to explain that to me. My company-issued laptop has >> WDE, and that's great for when the machine is shut down and I'm carrying it >> from place to place, but when it's running, all the data is transparently >> decrypted for every process that wants to read the data, including malware, >> industrial spies, >> >> Thus, unless you move your DB server on a regular basis, I can't see the >> usefulness of WDE on a static machine. > The typical concern (aka, attack vector) isn't around moving the DB > server on a regular basis or about someone breaking into your data > center and stealing your drives, it's making sure that disposal of > equipment doesn't result in valuable data being retained on the > drives when they leave the data center for replacement or disposal. That makes some sense, but years of added CPU overhead to mitigate a problem that could be solved by writing zeros to the disk as a step in the decomm process seems more than a bit wasteful. -- Angular momentum makes the world go 'round.