Closed CzernyJ closed 1 year ago
Hi CzernyJ (https://github.com/CzernyJ),
Thank you for your comment. This GitHub repo is not actively monitored. If you need help, please check previously asked questions in the WA Business API Developer Community, or raise a Direct support ticket. Meanwhile, we are happy to continue with less time-sensitive discussions in GitHub.
Thanks for your understanding!
Hi CzernyJ, It seems that the WA_DB_SSL_CA is only properly set when you are using MySQL, but not by Postgres.
for what exactly are the WA_DB_SSL_KEY and WA_DB_SSL_CERT used?
To my understanding, they are used by the Web / Core app to encrypt their connections with the database, which only supports MySQL atm.
Feel free to raise a Direct support ticket to share this feedback with the team.
Hope this helps!
Hi there,
I´m expanding on the setup mentioned in Issue https://github.com/WhatsApp/WhatsApp-Business-API-Setup-Scripts/issues/31 with one difference: I try to use PostgreSQL as a DB. For this I´m using a Azure Database for PostgreSQL flexible server which requires SSL by default.
I set the following environment variables:
The defined path above (/usr/local/waent/data) is mounted as a persistent volume on the kubernetes system. And the matching certificate is present, that I checked. When the coreApp does start however I get the following errors in the log:
Looks like the behavior is different for PSQL than MYSQL. When using the quite old MYSQL 5.7 it worked with the environment variables above (except for the different DB_ENGINE).
Also in the documentation there are some additional variables mentioned. I guess the
WA_DB_CONNECTION_OPTION
should not be used anymore since it is deprecated. But for what exactly are theWA_DB_SSL_KEY
andWA_DB_SSL_CERT
used? Do I need a certificate for the on-prem API that is not needed in the MYSQL case?Aside from that the error above does indicate some problem with the used
WA_DB_SSL_CA
when using PGSQL.We´re using version
2.41.2
.