From: | ROS Didier <didier(dot)ros(at)edf(dot)fr> |
---|---|
To: | "Virendra(dot)Kumar(at)guycarp(dot)com" <Virendra(dot)Kumar(at)guycarp(dot)com>, "folarte(at)peoplecall(dot)com" <folarte(at)peoplecall(dot)com> |
Cc: | "pavel(dot)stehule(at)gmail(dot)com" <pavel(dot)stehule(at)gmail(dot)com>, "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org>, "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | RE: Why the index is not used ? |
Date: | 2018-10-08 08:32:36 |
Message-ID: | a80acc9fa5494c6b8b27d586e76ddd51@PCYINTPEXMU001.NEOPROD.EDF.FR |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-performance pgsql-sql |
Hi Virendra
You think that outside encryption of the database is the best solution ?
How do you manage the encryption key ?
Can you give me some examples of this kind of solution.
Best Regards
Didier ROS
-----Message d'origine-----
De : Virendra(dot)Kumar(at)guycarp(dot)com [mailto:Virendra(dot)Kumar(at)guycarp(dot)com]
Envoyé : dimanche 7 octobre 2018 20:41
À : ROS Didier <didier(dot)ros(at)edf(dot)fr>; folarte(at)peoplecall(dot)com
Cc : pavel(dot)stehule(at)gmail(dot)com; pgsql-sql(at)lists(dot)postgresql(dot)org; pgsql-performance(at)lists(dot)postgresql(dot)org; pgsql-general(at)lists(dot)postgresql(dot)org
Objet : RE: Why the index is not used ?
You can consider outside DB encryption which is less of worry for performance and data at rest will be encrypted.
Regards,
Virendra
-----Original Message-----
From: ROS Didier [mailto:didier(dot)ros(at)edf(dot)fr]
Sent: Sunday, October 07, 2018 2:33 PM
To: folarte(at)peoplecall(dot)com
Cc: pavel(dot)stehule(at)gmail(dot)com; pgsql-sql(at)lists(dot)postgresql(dot)org; pgsql-performance(at)lists(dot)postgresql(dot)org; pgsql-general(at)lists(dot)postgresql(dot)org
Subject: RE: Why the index is not used ?
Hi Francisco
Thank you for your remark.
You're right, but it's the only procedure I found to make search on encrypted fields with good response times (using index) !
Regarding access to the file system, our servers are in protected network areas. few people can connect to it.
it's not the best solution, but we have data encryption needs and good performance needs too. I do not know how to do it except the specified procedure..
if anyone has any proposals to put this in place, I'm interested.
Thanks in advance
Best Regards
Didier ROS
-----Message d'origine-----
De : folarte(at)peoplecall(dot)com [mailto:folarte(at)peoplecall(dot)com] Envoyé : dimanche 7 octobre 2018 17:58 À : ROS Didier <didier(dot)ros(at)edf(dot)fr> Cc : pavel(dot)stehule(at)gmail(dot)com; pgsql-sql(at)lists(dot)postgresql(dot)org; pgsql-performance(at)lists(dot)postgresql(dot)org; pgsql-general(at)lists(dot)postgresql(dot)org
Objet : Re: Why the index is not used ?
ROS:
On Sun, Oct 7, 2018 at 3:13 PM, ROS Didier <didier(dot)ros(at)edf(dot)fr> wrote:
....
> - INSERT INTO cartedecredit(username,cc) SELECT 'individu ' || x.id, pgp_sym_encrypt('test value ' || x.id, 'motdepasse','compress-algo=2, cipher-algo=aes256') FROM generate_series(1,100000) AS x(id);
> - CREATE INDEX idx_cartedecredit_cc02 ON cartedecredit(pgp_sym_decrypt(cc, 'motdepasse','compress-algo=2, cipher-algo=aes256'));
If my french is not too rusty you are encrypting a credit-card, and then storing an UNENCRYPTED copy in the index. So, getting it from the server is trivial for anyone with filesystem access.
Francisco Olarte.
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
________________________________
This message is intended only for the use of the addressee and may contain information that is PRIVILEGED AND CONFIDENTIAL.
If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify the sender immediately. Thank you.
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Paul Argudo | 2018-10-08 08:44:22 | Re: Why the index is not used ? |
Previous Message | magodo | 2018-10-08 07:23:47 | pg9.6: no backup history file (*.backup) created on hot standby |
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Paul Argudo | 2018-10-08 08:44:22 | Re: Why the index is not used ? |
Previous Message | ROS Didier | 2018-10-08 06:29:57 | RE: Why the index is not used ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Paul Argudo | 2018-10-08 08:44:22 | Re: Why the index is not used ? |
Previous Message | ROS Didier | 2018-10-08 06:29:57 | RE: Why the index is not used ? |