Discussion:
Postgres PGCrypto in Django?
Peter Farrell
2018-11-03 21:09:16 UTC
Permalink
Hi All,

I saw Carlton's short keynote at DjangoCon last month and he suggested that
I message this group.

I'm one of the maintainers of Django-Pgcrypto-Fields which offers field
level encryption using the PostgeSQL pgcryto library. We support Django
1.11, and 2+ including filtering, aggregates and annotations. We have 100%
unit test coverage (although the test suite could use a little refactoring
for clarity).

https://github.com/incuna/django-pgcrypto-fields

I wanted to ping the group to see if anyone else would be interested in
code reviewing the project for anything that could be done better or
differently? I'm asking because what I know about the ORM is all by
splunking though the Django source over time.

Also, there is potential for inclusion as part of the Django contrib for
postgres. If there is interest, I'd happily volunteer to help maintain. So
I'm curious what people's opinions are regarding this.

Best,
Peter J. Farrell
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b20663a5-962c-4e9a-8e02-7fc4de1aa7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Carlton Gibson
2018-11-08 10:54:12 UTC
Permalink
Hi Peter,

Thanks for the follow-up here. For me, optional field-level encryption
would be a cool addition.

Can I solicit some opinions:

* Do we think this would merit a place in `contrib.postgres` (vs the
third-party package)?
* Postgres buffs: any comment on the actual implementation?

Kind Regards,

Carlton
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7307627b-802e-4824-a488-d913a5890df8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adam Johnson
2018-11-17 15:54:08 UTC
Permalink
Although I admire the work that has gone into the package, I think it's
best kept separate.

As the creator of Django-MySQL I did once propose merging parts of it as
django.contrib.mysql, but I cooled to the idea when I realized it's easier
to make changes when not kept in lock-step with Django. For example, a new
field type can be added and made available on all supported versions of
Django. In fact, I'd even advocate splitting out django.contrib.postgres if
it wouldn't be too much of a pain :)

django-pgcrypto-fields seems to fit the same template, it provides 18 field
classes, and it's also relatively niche. Most applications just need
encryption at rest and in transit for the whole DB, which normally lives
entirely outside Django land.
Post by Carlton Gibson
Hi Peter,
Thanks for the follow-up here. For me, optional field-level encryption
would be a cool addition.
* Do we think this would merit a place in `contrib.postgres` (vs the
third-party package)?
* Postgres buffs: any comment on the actual implementation?
Kind Regards,
Carlton
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/7307627b-802e-4824-a488-d913a5890df8%40googlegroups.com
<https://groups.google.com/d/msgid/django-developers/7307627b-802e-4824-a488-d913a5890df8%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Adam
--
Adam
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2NrW0Q3WUUSsv4rFwtfVh8-sNJeg1LOHsxhobboC9jDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...