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 1f9fim-0000Kq-Rn for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9fil-0000ix-Qk for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:45:39 +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 1f9fil-0000io-Ik for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:45:39 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f9fij-0006HO-DA for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:45:39 +0000 Received: by mail-pf0-x236.google.com with SMTP id o76so218785pfi.5 for ; Fri, 20 Apr 2018 16:45:37 -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:content-language; bh=zlwVTju+x3JKfqdWp6HpmKWN8TEJgsq7z/ZpEzgoFnk=; b=X2k6khEWQUiNhrEyuHlqchjqTmhzslchjUq88V89KQemjzD6bZNUOM/L3HHahgpUOu CvQC39Sy/PsjtoKWRP1YlIzufLvR20dY8FvVPWcsDWDwKbd2FltHh2EClqLb1LfH4tk0 a48G0ie5RTB1sBKej2R3SQGrSfjrj41ZJ1uYNiUAthknnBpktbNTUCj1uCmqlhXusJYc xhz1Z/nm9T9d+W+kvCGADm7EeZ5GJmhOqmxVLcD1yGiYnAYBeKl5NO1oABlniaRKIe8z xA9waTP76Xeylj8sJYTm7M98GBp6gzYK41HvQZAO6MY6UPf9XyyaTq1Lwmi1CKWjU5px ZMGQ== 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 :content-language; bh=zlwVTju+x3JKfqdWp6HpmKWN8TEJgsq7z/ZpEzgoFnk=; b=WJC9ImNjQp97Fm6uF7H+nvuQvDQZGS6TOvbLoNFnsBa5OJ0oYt+fxRhghc23yTalCo DrfVhu1E1M23gMkhIQob1aLxmPV/H705WN7OjnxFtXn9sS012Vz9S71rORxwQBG5xOFB v8Us3N/cEV2uQp3f+c59f2XxCbGP0tIRGJEEgvT3Vz2SPm4TOtNiIn5yOLDC2Z1U4Jzv BsWcsAvt6qhC5I5+tF9kRut4OPogbg9YR19hne49gkuQ1r+5MtPI1wrHEjyeQLS2UNV1 L8rmoc6J2ktfxDsS4uYxu3+1qRU04cL4JVy7k/9ChTUc+8qfb316N5BzxX2HoQ+BxMXv 4Cew== X-Gm-Message-State: ALQs6tBRNHwcL2xxHk8ZFTWvhQE1jEeNlw7ey4MX8Vu644TOh7TfAqOP LuUJsDBcAIC6Mt4ZNq24lztWIZq2 X-Google-Smtp-Source: AIpwx499ks4GRdyYzUlkyprsjw0V6bS30cXS5ZqBuz+8WMAdz29WcwLKEWg0MnGMQcORitNRn0zCww== X-Received: by 10.99.117.22 with SMTP id q22mr9917682pgc.68.1524267934718; Fri, 20 Apr 2018 16:45:34 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id 186sm12312713pfe.109.2018.04.20.16.45.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 16:45:34 -0700 (PDT) Subject: Re: Postgresql database encryption To: pgsql-general@lists.postgresql.org References: <7035313d-50fa-8d9c-3aa3-999d12e06afa@gmail.com> <20180420231119.GD27724@tamriel.snowman.net> <36760092-50f6-9297-4d01-da2bbd55df7d@gmail.com> From: Rob Sargent Message-ID: Date: Fri, 20 Apr 2018 17:45:33 -0600 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: <36760092-50f6-9297-4d01-da2bbd55df7d@gmail.com> 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 05:43 PM, Ron wrote: > > > 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. > > Well you probably need to drive a nail through the drive but that's a technical detail :)