-
-
Notifications
You must be signed in to change notification settings - Fork 902
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
PostgreSQL connection to RDS with enforced SSL fails on permissions to certificates #1112
Comments
My suspicion: Therefore: |
I'm not sure if the solution is like you describe because I don't put any certificates as the RDS uses SSL certificate signed by AWS that is part of the trusted ca certificates. That means (IIUC) either postgres python module or something else does not respect ca certificates or they are not present or … not sure. |
having this same issue. solutions here have said to include client crt and key in |
Here is my workaround. My Dockerfile FROM netboxcommunity/netbox:v3.7.6-2.8.0
USER root
RUN curl -LJO https://truststore.pki.rds.amazonaws.com/eu-west-1/eu-west-1-bundle.pem -o /tmp/eu-west-1-bundle.pem
RUN mkdir -p /root/.postgresql
RUN curl https://truststore.pki.rds.amazonaws.com/eu-west-1/eu-west-1-bundle.pem -o /root/.postgresql/postgresql.crt
RUN chmod -R 777 /root For PEM files in other regions, https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.RegionCertificates |
Just wanted to add in here that this is not specific to RDS, this applies to my setup as well that is just a vanilla PostgreSQL host (nothing on AWS). There seems to be something out of order with the way the process is getting started -- if we're not running as The error here also seems to be more that we hard fail in attempting to load an optional certificate file -- for example if we just add global execute (ie: |
Just to follow on here, I ended up working around this by patching the existing Using an
|
Current Behavior
I've configured netbox-docker to connect to the RDS PostgreSQL, and it fails to connect there (surprisingly migrations worked without issue).
Setting
rds.force_ssl
to0
in RDS solves the issue but in such case SSL is not used which is 😿Expected Behavior
No issues with permissions and SSL is used by default.
Docker Compose Version
N/A
Docker Version
The git Revision
N/A
The git Status
Startup Command
N/A
NetBox Logs
Content of docker-compose.override.yml
N/A
The text was updated successfully, but these errors were encountered: