From: Moreno Andreo <moreno.andreo@evolu-s.it>
To: pgsql-general@lists.postgresql.org
Subject: Re: Key encryption and relational integrity
Date: Thu, 28 Mar 2019 18:37:08 +0100
Message-ID: <30f44aec-160c-4aa0-26e2-7cf12715fad7@evolu-s.it> (raw)
In-Reply-To: <0d5e5b22-f62d-3939-61f7-6ecb5d632436@aklaver.com>
References: <094bf875-5b49-8d3c-1fa3-97c07246b890@evolu-s.it>
<CAG0dhZCLGR2YB1TckUFaP5OHwDr6UdmBc7j=g0kK6jZz-2sB8Q@mail.gmail.com>
<b751ba08-2ca8-353b-e09f-50a7c930747f@evolu-s.it>
<0d5e5b22-f62d-3939-61f7-6ecb5d632436@aklaver.com>
Il 28/03/2019 15:45, Adrian Klaver ha scritto:
> On 3/28/19 7:29 AM, Moreno Andreo wrote:
>> Il 27/03/2019 07:42, Tony Shelver ha scritto:
>>> Not in Europe, but have worked a bit with medical records systems in
>>> the USA, including sharing across providers.
>
>>> The only other way to do it would be to store the encrypted key
>>> value in both user.id <http://user.id; and medications.user_id.
>>> That would encrypt the data and maintain relational integrity.
>> Hmmm... if user.id and medications.user_id are the same, I can link
>> user with medication... and GDPR rule does not apply..... or am I
>> missing something?
>
> Yes the link means that someone could use the medications.user_id to
> fetch the rest of the user information from the user table. Unless you
> encrypted that information also, which I gather you do not want to do
> for performance reasons.
>
>
Yes, but to be GDPR compliant I _have_ to remove that link. As you
reported in an earlier email, they say that you can't link patient and
medication if not with an external resource. In this case we are linking
them without an external resource....
Wandering on the web I also bumped on an article that suggested to have
the tables on 2 databases on 2 different servers with different
credentials.... Interesting, but still without RI.
I think I have to answer this question: "is it acceptable to have this
kind of master-detail structure in a database without RI?" (The example
is about 2 tables, obviously in the real world the master will have 50+
detail tables)
Thanks
Moreno.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: moreno.andreo@evolu-s.it
Subject: Re: Key encryption and relational integrity
In-Reply-To: <30f44aec-160c-4aa0-26e2-7cf12715fad7@evolu-s.it>
References: <094bf875-5b49-8d3c-1fa3-97c07246b890@evolu-s.it> <CAG0dhZCLGR2YB1TckUFaP5OHwDr6UdmBc7j=g0kK6jZz-2sB8Q@mail.gmail.com> <b751ba08-2ca8-353b-e09f-50a7c930747f@evolu-s.it> <0d5e5b22-f62d-3939-61f7-6ecb5d632436@aklaver.com> <30f44aec-160c-4aa0-26e2-7cf12715fad7@evolu-s.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox