Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9xZG-0000zj-2i for pgsql-general@arkaria.postgresql.org; Fri, 29 Mar 2019 19:53:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9xZE-00012A-6G for pgsql-general@arkaria.postgresql.org; Fri, 29 Mar 2019 19:53:32 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9xZD-000123-T1 for pgsql-general@lists.postgresql.org; Fri, 29 Mar 2019 19:53:31 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9xZA-0000GE-TP for pgsql-general@lists.postgresql.org; Fri, 29 Mar 2019 19:53:31 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 1048D2713; Fri, 29 Mar 2019 20:53:27 +0100 (CET) Date: Fri, 29 Mar 2019 20:53:27 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Key encryption and relational integrity Message-ID: <20190329195327.qisqedrof77snsv2@hjp.at> References: <094bf875-5b49-8d3c-1fa3-97c07246b890@evolu-s.it> <20190328225050.3jtlhwke77uaiabu@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vdwpht3l5ybxhtyt" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --vdwpht3l5ybxhtyt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-03-29 17:05:41 +0100, Moreno Andreo wrote: > Il 28/03/2019 23:50, Peter J. Holzer ha scritto: > > On 2019-03-28 15:29:50 +0100, Moreno Andreo wrote: > > > here I'm trying to find a way so nobody can, without the use of the > > > application, match a patient with their clinical records (i.e. someone > > > breaking into the server -- data breach) > > I think it is very optimistic to assume that an intruder would get > > access to the database but not the application. > Well, application resides on another instance (server), but if the attack= er > has been able to take control of one server, he surely could try to break > another one, but it takes time..... I can't claim to be a security expert any more (I've drifted away from that topic over the last decade or so), but most data breaches that were publicised over the last few years started at some employees desktop. As such your assumption "server A may be hacked, server B safer, and the application is completely safe" seems unrealistic to me. I think that the application will fall first (and whatever privileges it provides to the user will therefore be in the hands of the attacker), and the server(s) will come aftet that. So I would design such an application with the assumption that the user's PC has been compromised and secure the server(s) against that case. hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --vdwpht3l5ybxhtyt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAlyed6oACgkQ8g5IURL+ KF1N2w//VwWUv3HZam7ngd8Ns+WW3V0wdankY3IbqGZRz3BY44e7VJTtYdVpITzE bcXM0Gx51FztsNDRwhScZ8JadKyXRY2wPEofClv85jatBioqBJKUEhTWxqFCsSKD 4e8+EAvZjDd2YsvM6/fK6mun/h+4S9z//HGDPFOjyK3NV5xUgO9c13t55DT6Mss7 K4nRJsSJhaWl029+dC0+fib9ef8WrQJihNR0mS58FVICDkI8RZeijmlMxsrATDt+ u729Dae7g+7L+eNXg5Ak8Zruk4rS0v60yvCW2oqhx+7wNtQdgX0KULZYI5sHADPG Ce6CNuHtvz6sM6gVen2G9w899IIKTyICKKvwMmQ3HqawGi7wGOkYJWZzXudy2WsK +D1Abj/RcshU3AjG+VjYFZ1+xvMfW+Vh5MVcbV6uurGQexaQkvdJ8NlgbrTCHMzy J64Rrn9Gr0m3DHFeuZ3QhEBRo+ewoBFzJdZIGM7M81GKekN5mh3SxzWnC/TtN0sy ByqVPp+Fp/xgRp8FVtkSn1+MuhzQsmxgQ60XW14UbSaA9KHI2W4GxG8qKO4Ujc19 nRmBuGAbKdS67wYqWdvGAJ8/KB4eAzLcT7Oyok5Jno6PFffXu2m8k1vMvF0cdkWA pHYSMpkP0kwyWyf30lHIR3tu8L8AzifMpAPrp1G7YJi+7P8uUV4= =WW1x -----END PGP SIGNATURE----- --vdwpht3l5ybxhtyt--