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 1h9dWz-0007Jv-Vl for pgsql-general@arkaria.postgresql.org; Thu, 28 Mar 2019 22:29:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9dWy-0006bb-Kr for pgsql-general@arkaria.postgresql.org; Thu, 28 Mar 2019 22:29:52 +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 1h9dWy-0006bU-BX for pgsql-general@lists.postgresql.org; Thu, 28 Mar 2019 22:29:52 +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 1h9dWt-0003UQ-GG for pgsql-general@lists.postgresql.org; Thu, 28 Mar 2019 22:29:51 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 9F957C79; Thu, 28 Mar 2019 23:29:45 +0100 (CET) Date: Thu, 28 Mar 2019 23:29:45 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Key encryption and relational integrity Message-ID: <20190328222945.vllasskjkliibfq2@hjp.at> References: <094bf875-5b49-8d3c-1fa3-97c07246b890@evolu-s.it> <082fdd45-a12b-161b-8386-70ee8528361e@aklaver.com> <514fb642-bba4-7a14-b412-d953f1b8b7e7@evolu-s.it> <3f88c83d-23b0-537f-8325-5b1d19ca77f7@aklaver.com> <7eb4fb29-73c5-c069-572a-621afe121564@evolu-s.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="shwqte5jnw4z2azy" Content-Disposition: inline In-Reply-To: <7eb4fb29-73c5-c069-572a-621afe121564@evolu-s.it> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --shwqte5jnw4z2azy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-03-28 18:36:40 +0100, Moreno Andreo wrote: > Il 26/03/2019 18:08, Adrian Klaver ha scritto: > > To me it would seem something like: > >=20 > > Table medications > > id=A0=A0=A0 user_id=A0=A0=A0=A0=A0=A0=A0 med > > 1=A0=A0=A0 sgkighs98=A0=A0=A0 Medication > > 2=A0=A0=A0 sghighs98=A0=A0=A0 Ear check > >=20 > >=20 > >=20 > > Table users > > id=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 surname=A0=A0=A0 last name > > sgkighs98=A0=A0=A0=A0 John=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Doe > > jkopkl1=A0=A0=A0=A0=A0=A0 Jane=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Doe > > uepoti21=A0=A0=A0=A0=A0 Foo=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Bar > >=20 > > Where there is no direct link between the two. >=20 > Are you sure there isn't?... the key "sgkighs98" is present on both > tables and I can join tables on that field, so the pseudonimysation > does not apply, Yes. It doesn't matter whether the key is 'sgkighs98' or 1438 or 692da0c1-cf2d-476d-8910-7f82c050f8fe.=20 > it's just "separation" (that was OK with the last privacy act, but not > with GDPR I doubt that this is correct. The GDPR doesn't prescribe specific technical means (there may be laws or standards in your country which prescribe such means for medical data, but that's not the GDPR). > The problem is not on the application side... there you can do almost > anything you want to do. The prolem is that if someone breaks in the > server (data breach) it is easy to join patients and their > medications. I sure hope that the doctors are able to join patients and their medications. So at some level that has to be possible. If you assume a break-in into the server, there will always be a level of penetration at which the attacker will be able to access any data an authorized user can access. 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 --shwqte5jnw4z2azy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAlydStQACgkQ8g5IURL+ KF0zMxAAq6nRihuj1LmL6s2tPkKfOGARy44ONgBHDDA7FOD65TRS597laetDpqEY mHKVDQm+A/uCHVbItO24qeLIzapy3faRVMArEpmJM6kLmxNzEQlovGanIHKLaxlU Tfocdok9+hEyj2++vOavre6w6E/42X9vN9scngB/oU+8qNz+wsjpulSX2+8KM/Un qFw1wvRwwpW2LRb3GSmWi2SfQpVtX8oww8HJCcyokpvWXCz55TP9kqOZgoLjuYdJ Bo+6NGNKAm6Goa0S1c+falefNWgOywAOOCU1a+ge6TTZsPp2d49JwpQElL/eEpNE t9E8Suam46CPdTg5LirAvNzGPojVlp/KAZLAZVqdJgpOXzDeEX7Dz0xFpG7jmruD RU0isp/bfj3+6I/rHKsv7/xqJhmsg6CMh6VaXOS//qWw70Nvrq8odkptacWCl3EK RbKu2MsSlh/Atj9NjjkT9IlIm60CGr9GxSuVvbitkYoheehvc+FNMXLhVHhmOjWZ TiV/UVYA+LQVyxr2EiNOSfnxEsxGZUiKfNBtPF/q4t4oDEemZFwRjVU7SDeVhC90 wi0D4/gdBvK+nNT1Jn97TthO1/RCXnjt0E4n7VViRbqRFDmTN2inMnGQ7WYW7B3U thuOGgsqF77boPQRCaeKwOPTqorj5VqC1tPpZcMlosMcjL1BZM0= =xDVS -----END PGP SIGNATURE----- --shwqte5jnw4z2azy--