Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 62A02632C93 for ; Tue, 6 Apr 2010 06:46:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 92654-03 for ; Tue, 6 Apr 2010 09:45:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mail.postgresql.org (Postfix) with ESMTP id 6BA0A633B3B for ; Tue, 6 Apr 2010 06:45:54 -0300 (ADT) Received: by bwz8 with SMTP id 8so3648426bwz.3 for ; Tue, 06 Apr 2010 02:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YmiuKNI2I5STXMLr0s3ILC0A8jgw1hhMPAivL4PxjVE=; b=WQ7YK0b+cjb6KAGBVSE0dgIQO6LY8zFYiwfizrixCRtdLebv8krjFmQNuNlxRKzQ+v 1zMX7Nh6azdaaUlF+UNpEtglpOTxscmZ7oswz4pe7bgpwUcNYEpuxTbJtreCIWj64FNW DQIaaEDdIJkBMS5MHwCmGw1qQOCr1aLaD9mmQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MVEudHySDc4TI3SWL/RJeuj2KLvXhhLUd2Nju2nqQxJd6A2UebL8hy5pii+Tlpire4 z19ozuYadLZ/9BZJZDWHm7pX0DkCzyTuXjbpcO6hTbeB+FShsv+j9WokN5TcSbej5Mvi 7MC1AQU5v+dZhwztgXXEoOs3Zqk18cg/eOX0E= MIME-Version: 1.0 Received: by 10.204.101.6 with HTTP; Tue, 6 Apr 2010 02:45:52 -0700 (PDT) In-Reply-To: <4BBA6924.5050305@joeconway.com> References: <4BB774D4.3070306@joeconway.com> <4BBA05E80200002500030493@gw.wicourts.gov> <4BBA6924.5050305@joeconway.com> Date: Tue, 6 Apr 2010 12:45:52 +0300 Received: by 10.204.23.6 with SMTP id p6mr2165659bkb.67.1270547152204; Tue, 06 Apr 2010 02:45:52 -0700 (PDT) Message-ID: Subject: Re: Database level encryption From: Timothy Madden To: Joe Conway Cc: Kevin Grittner , Scott Marlowe , pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.22 tagged_above=-10 required=5 tests=AWL=-0.110, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201004/35 X-Sequence-Number: 34129 The machine is a mini-laptop running almost all day time (actually there are many of them) and if the machine is captured it is likely to be captured while running. With an encrypted file system if the machine is already booted you already have access to the file system and can simply copy it and even place back the machine without anyone notice anything. With an encrypted database, you need the password anytime you connect, even if another application already has an open connection. On Tue, Apr 6, 2010 at 1:50 AM, Joe Conway wrote: > On 04/05/2010 01:46 PM, Kevin Grittner wrote: >> Scott Marlowe wrote: >>> Timothy Madden wrote: >> >>>> My scenario is how to protect the database if the machine is >>>> stolen (it is a mini-laptop), and I would like to encrypt the >>>> entire database, that is all columns of all tables, and if >>>> possible everything else found in the database. >>>> >>>> I would like all searching and sorting functions, just like with >>>> a normal database (that is, transparent encryption for the >>>> application level). The password will be entered by a human in >>>> order to start the application. >> >>> Everything you've said so far points to using a mounted encrypted >>> drive to store the db. >> >> Agreed. =A0I know you explicitly said you didn't want to use that in >> your original post, but you didn't say why. =A0I don't think you're >> going to convince anyone here to put effort into something you can >> configure to "just work" with so little trouble on existing systems, >> without a really good argument. > > Agreed here also. I don't see any reason for Postgres to provide this > sort of functionality when it can be done at the OS level. There is > going to be a significant performance hit -- that is why I would suggest > careful analysis and selective encryption instead. But if that isn't > important, an encrypted drive is probably the only option. > > Joe > >