postgREST v11.1.0 connection failure after RDS CA (certificate authority) rotation #3687
-
Howdy gang! I ran into an issue that I'm hoping to get some advice on :
This process is straightforward and worked as expected for other app connections and for the local psql connection on the bastion host (which is running from the same Postgres install that postgREST uses locally). I rolled back the RDS-side cert update, but left the new cert bundle (which includes old and new certs) in place, and the connection restored. Question: Given that the RDS CA <-> cert bundle appears to be valid when used in other apps, how can I correct this cert-validation connection error and successfully connect to the CA-updated RDS instance with postgREST? All guidance is much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hey Nicholas! That's awesome to hear!
The above is purely a |
Beta Was this translation helpful? Give feedback.
-
The connection strings for I've done a fair amount of digging around for reasons that might cause the observed problem (i.e., two connections from the same client using the same root cert, but one fails and the other succeeds), however I haven't come up with any likely hypotheses so far |
Beta Was this translation helpful? Give feedback.
-
@steve-chavez : as far as the postgREST connection to the Postgres server is concerned, when rotating root certificates, is there any action that needs to, or ought to, be taken beyond replacing |
Beta Was this translation helpful? Give feedback.
It's unclear to me how you're running PostgREST. Is that via
systemd
? As root or some other user? Are you sure this will actually look in~/.postgresql/
for the certificate, especially with~
being the same~
you are looking at with psql?Could it be that you had copied the root certificate in this folder initially, but then had to copy it into some other place in the system, i.e. somewhere in
/etc/..
or so, too? Maybe you need to update it in a different place?