Heroku is hosting my node.js API and the PostgreSQL addon is responsible for my DB.
I recently upgraded my heroku db plan from hobby-dev to standard-0 and got some issues with SSL connection. After setting sslmode=require, my new DB was performing with no problems and I was really happy with it.
Suddenly, without any changes in code, nor in environment config vars and in a day with a reduced request flow, it started to print on PaperTrail the following error:
[COBALT] [10-1] sql_error_code = 28000 FATAL: no pg_hba.conf entry for host "xx.xxx.xx.xxx", user "postgres", database "postgres", SSL off
Even when my node.js API is not requested, this error gets printed. I'm intrigued with the credentials user "postgres", database "postgres", my DB in which the API stores requests, responses and some useful data has other credentials.
The API is working fine, but these logs are really pissing me off and I have no idea what is going on.
Any ideas?