prisma / dataguide

🗄️ Prisma's Data Guide - A growing library of articles focused on making databases more approachable.
https://www.prisma.io/dataguide/
Apache License 2.0
156 stars 49 forks source link

Content focused on TLS/SSL and transport encryption #159

Closed imchairmanm closed 4 months ago

imchairmanm commented 3 years ago

As per a discussion in Slack, it would be helpful for us to get some more content up focusing on securing connections. We would probably want to tackle this in a few different ways. This issue is going to be a bit of a brain dump to try to plan out the best approach to getting started.

To start off with, it's important to get implementation-specific guides up on setting up SSL for various databases. I'd suggest prioritizing PostgreSQL, followed by MySQL and MongoDB.

These topics have a tendency to get a bit muddled due some decisions you have to make in how to approach the topics. For example:

We should think through some of these things before getting started. I personally prefer to get the most basic guides up quicker by prioritizing simple setups with reasonable assumptions, narrowly defined goals, etc. We also might need database-agnostic companion content to cover the general strategies and considerations you need to make when setting all of this up. An advantage of this is that we could use these "generic" articles to compile links to articles covering specific implementation details as we write them.

janpio commented 3 years ago

Related links dump: https://www.postgresql.org/docs/9.1/libpq-ssl.html https://cloud.google.com/sql/docs/mysql/configure-ssl-instance https://dev.mysql.com/doc/refman/8.0/en/using-encrypted-connections.html

https://www.prisma.io/docs/concepts/database-connectors/mysql#configuring-an-ssl-connection https://www.prisma.io/docs/concepts/database-connectors/postgresql#configuring-an-ssl-connection https://github.com/prisma/e2e-tests/tree/dev/databases/gcp-mysql-ssl

janpio commented 3 years ago

https://devcenter.heroku.com/articles/connecting-to-heroku-postgres-databases-from-outside-of-heroku#ssl https://devcenter.heroku.com/changelog-items/2035 https://www.jetbrains.com/help/datagrip/how-to-connect-to-heroku-postgres.html https://devcenter.heroku.com/articles/heroku-postgresql#heroku-postgres-ssl

janpio commented 3 years ago

Nice examples of different connection string params around SSL/TLS: https://docs.preset.io/docs/supported-databases