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 1f9f82-0006Ss-RN for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:07:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9f81-0001rL-MX for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 23:07:41 +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 1f9f81-0001rC-Bw for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:07:41 +0000 Received: from mail-ot0-x242.google.com ([2607:f8b0:4003:c0f::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f9f7y-0005Qk-TW for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 23:07:40 +0000 Received: by mail-ot0-x242.google.com with SMTP id h8-v6so11309985otj.7 for ; Fri, 20 Apr 2018 16:07: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-language; bh=2CJnGCRg+CEP06D3XL3H0fAhJysm00fKXTpAeFOXY9E=; b=e14y0BvjznIj5Ub9SJ+5VG1cVM5rD/yM/8tLpxtEao+1cwCbH2JmBGldvldLXw4blF kvrnC78+v1EQLPsdUDhtcACDSvwVlmSN5nur8FWgF7qReu+Yk800S48HxoLSbP1ObX5A pjEgZYM0G1EL957ZUfyR1HVL4eT9IhBV78U/CuOoNhRpG++0Re3G6SVKjwFbx7TVaTlI 57JDC7DzCeNBSDunJMGUhmE7ggSQ7nAkxdVjbA6LymaLp6HJGQV5wGQKigruWskoK5FL qrZvb/5SK1chlhPk8av11Q3Cghxae9cLH+yAxpdhoVg+UYjC8GjxWxkFyoGkDuh2DZdE C2lA== 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-language; bh=2CJnGCRg+CEP06D3XL3H0fAhJysm00fKXTpAeFOXY9E=; b=lpznUHVdSmpgtIEvrvOuvjEy6BkDq4KP2bWS5D7XXSJQBdPhRc7JPVlmJiXmg5at4+ /anRm3GHePZF49BUCrvhk7O7coPUUpU/HX4fEFX0GE6IgNUapHesrQYb4ecvcvFdk2bv yIz1DU1sfE+JMZ0v7DprO0WrrgHc97ByW+9l1gjrAE1UgUHnmsW+W00csv+uO6nL+rFN aArDuoHR3/Z4yad8015qCPnGhejv1RrtdtGj+rtX9R37MeVIzL7xSfs4z3DR3OWNn0Om RXFxXcSXNjiLgsE/BlcFtyZhzvQ25XBODte8rYtNCRBa0d0tUolgn/pS62v5TiV0z8K3 syZw== X-Gm-Message-State: ALQs6tBwWRrOkRWmFuDV+bAQ1D11Cidre/hexOyme0qZiflBIcOJWbk1 5z18Mi10PwikJ8QzK2oyXIFj8w== X-Google-Smtp-Source: AIpwx4/nXC5NT5XCHLSlOou82wB3KBX55fbabC8Xh9ogCpzCDrqOFzJ8qUF9BFVLfq1lcWEymmZaEg== X-Received: by 2002:a9d:c61:: with SMTP id 88-v6mr8325123otr.16.1524265655736; Fri, 20 Apr 2018 16:07:35 -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 a69-v6sm4082426oih.31.2018.04.20.16.07.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 16:07:34 -0700 (PDT) Subject: Re: Postgresql database encryption To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <7035313d-50fa-8d9c-3aa3-999d12e06afa@gmail.com> Date: Fri, 20 Apr 2018 18:07:33 -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: Content-Type: multipart/alternative; boundary="------------D26922B204E72A427A6D785C" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------D26922B204E72A427A6D785C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 04/20/2018 03:55 PM, Vick Khera wrote: > On Fri, Apr 20, 2018 at 11:24 AM, Vikas Sharma > wrote: > > Hello Guys, > > Could someone throw light on the postgresql instance wide or database > wide encryption please? Is this possible in postgresql and been in use > in production?. > > > 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. > For certain fields in one table, I use application level encryption so > only the application itself can see the original data. Anyone else > querying that table sees the encrypted blob, and it was not searchable. -- Angular momentum makes the world go 'round. --------------D26922B204E72A427A6D785C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 04/20/2018 03:55 PM, Vick Khera wrote:
On Fri, Apr 20, 2018 at 11:24 AM, Vikas Sharma <shavikas@gmail.com> wrote:
Hello Guys,

Could someone throw light on the postgresql instance wide or database wide encryption please? Is this possible in postgresql and been in use in production?.

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.

For certain fields in one table, I use application level encryption so only the application itself can see the original data. Anyone else querying that table sees the encrypted blob, and it was not searchable.

--
Angular momentum makes the world go 'round.
--------------D26922B204E72A427A6D785C--