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 1f9gD9-00025s-To for pgsql-general@arkaria.postgresql.org; Sat, 21 Apr 2018 00:17:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9gD8-0006rg-Fq for pgsql-general@arkaria.postgresql.org; Sat, 21 Apr 2018 00:17:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9gD8-0006rX-4Y for pgsql-general@lists.postgresql.org; Sat, 21 Apr 2018 00:17:02 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f9gD4-0002af-Nx for pgsql-general@lists.postgresql.org; Sat, 21 Apr 2018 00:17:00 +0000 Received: by mail-pf0-x235.google.com with SMTP id z9so4950195pfe.6 for ; Fri, 20 Apr 2018 17:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=x5L5MQQFPkZcC27XMTQ/nxYQb2AJR05cvRsketxKp0I=; b=nNBhc2nx9DdA+bw2xsZT+C2F52SQFgGaICVwoZlWmmtQBWBnAmCm9vMeiT33qAP3A7 RdA1t21qCRi/FmrCvnEHmzK0UzUOdHq095Uct2vQNZ9aTgrgUyBf1ItO4zkNoFFcfQzj WKbB8XbjwTAVmLzb8FIx+tuiBIM2FXv0YzbwjpiE6lfDkEXHYGJghK1u2f9z10dXDpAg mteHO8n5hVW2HDMl/3bUU/3MU2teb0CjP8+WWcFQ9YYOlzI4MhImYB8g4D53zjTgJRxB FEWGyhCoR+CsSGv3hCjP0AGL7OYjrVbXxxO5PtKA9FGnn0xLg2WESN226V3/fv+qn++m LJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=x5L5MQQFPkZcC27XMTQ/nxYQb2AJR05cvRsketxKp0I=; b=lxZPyzyxK9iQrng/3GErojVITumkIno5xcO7yhjVq4HEtHSujuzShlxO8VuQiyJeub MvjikxxCh5PrFl7cANz3UfSiAc47xbJYoEDaSYr2/R5Wj97hg7F6+sKkkeFanr43rHJr I65UTsCslmMt6zJwAqw28/LSYXm4S5yqmCHmVrPz3hpsQKZM5P696NKYEt0QMm7tLba1 dwv0sblb+qQq0HEJE1UUho+Ju6tAmpkEOdjbUVgMC0y677x6IW/niqqMVLnreCO7XnLL fPebA93qXAUQX/iAaaKK2yZvFXBpKdU88o86yGWjF38fUJ3evgjJfk7kOfibWme+nJMP fGig== X-Gm-Message-State: ALQs6tAuujX3Q/RTCn2vggLtPbmSAaN7BpcfRX1GQL+9LoTyZK4scAS4 t5l/lKKwNMlYfPPIhgywWX9XK+CP X-Google-Smtp-Source: AIpwx48ZMwd61VWxQwJcHBAR583h4u4PvSaIWbo+i4xvVaxbadwMPD7Ta438hu75X/eA4N+33dAVEQ== X-Received: by 10.98.232.15 with SMTP id c15mr3103754pfi.156.1524269816511; Fri, 20 Apr 2018 17:16:56 -0700 (PDT) Received: from tim-desktop (2001-44b8-31f2-bb00-0d3b-21d7-bf29-b479.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:d3b:21d7:bf29:b479]) by smtp.gmail.com with ESMTPSA id 83sm13486724pfv.131.2018.04.20.17.16.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 17:16:55 -0700 (PDT) References: <7035313d-50fa-8d9c-3aa3-999d12e06afa@gmail.com> <20180420231119.GD27724@tamriel.snowman.net> <36760092-50f6-9297-4d01-da2bbd55df7d@gmail.com> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Tim Cross To: Ron Cc: Stephen Frost , pgsql-general@lists.postgresql.org Subject: Re: Postgresql database encryption In-reply-to: <36760092-50f6-9297-4d01-da2bbd55df7d@gmail.com> Date: Sat, 21 Apr 2018 10:16:52 +1000 Message-ID: <87muxx5s7f.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron writes: > 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. Problem is that decomm process relies on someone actually following the process. Too often, this part fails. The overhead with WDE these days is minimal anyway. Good security is always about layers of protection and should never just rely on a single control. Tim -- Tim Cross