-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL Support for Postgres #89
Comments
About the first play of the playbook: These are my custom roles that are definitely not up to par to be uploaded to ansible-galaxy. They work for me however. I think it's self explanatory what they do, though. |
Thanks for your input! It would be nice support Synapse talking to a Postgres database over SSL. We'd need a few If those things are in place, one could copy over the certificate files manually to the server (or using another playbook), and configure this playbook to make use of them. That's probably enough to cover most use-cases? Setting up a an external Postgres server is something which is probably outside of the scope of this playbook, but.. we can definitely mention it on some new documentation page in People could also use another externally installed Postgres (such as the one provided by Amazon RDS) over an encrypted connection, by tweaking the playbook variables. Let me know if you have interest on adding support for the above or if I should pick it up some time. In any case, thanks for making it clear how it's meant to be used! It would be great to support it. 👍 |
Yeah, maybe I will clean up my proof of concept on the weekend. For now, here is how I add my certs to the matrix server:
I use the tag start so I can just use the |
Any plan to continue working on this? |
Sorry, no. We have discontinued the matrix servers in my company for now. |
I see! I've mentioned this limitation in the docs (1e1c793), so people using an external Postgres server would be made aware of it. If someone is keen on picking this up and adding support, I'd be happy to merge it. |
Are there any news? I'd love to use that feature, but I'm stuck at setting it up |
Would it be possible to add @glebarez's pgssl package?
|
First of all, I want to thank you for making my life easier by creating this ansible playbook. Because I think it's a great idea to have this I want to contribute the following:
Currently, the playbook allows to configure custom postgresql servers. This is great to hear, but I think the playbook should then also enforce the usage of SSL encryption. In my custom version of the playbook I managed to do so by adding the following lines to the homeserver.yml.j2 template:
To make this work you only have to copy the certificates to the correct location and chown it to the matrix user.
Btw: The documentation states that database servers running on the docker host are not supported, but I managed to configure my postgres database on the host with the role
geerlingguy.postgresql
quite fine. Yes, you will have to allow the postgres database to bind to the outside IP and also allow connections to that ip, but that can issue can be fixed by adding correct firewall rules and a sane pg_hba.conf:The text was updated successfully, but these errors were encountered: