-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Error: attempt to index local 'ssl' (a nil value) for Kong >= 3.6.0 when KONG_PG_SSL=on #13083
Comments
https://docs.konghq.com/gateway/changelog/#3600
@salyh Thanks for your report. Could you please check the TLS settings of your Postgres database? This issue might be caused by the behavior changes of OpenSSL. |
seems to be the same issue as #12702 |
Thanks to @weberpatr. @fffonion Any update on this issue? |
Seems 3.7.x is imminent to fix the postgres TLS issues, see here for a possible workaround too: |
It's fixed in 3.7, please refer to #12592. |
can confirm the issue is solved after updating to 3.7 |
Is there an existing issue for this?
Kong version (
$ kong version
)Kong 3.6.1
Current Behavior
I have a postgres 15 running as saas and i want connect kong to it.
I need to set KONG_PG_SSL=on (if i dont i get "failed to retrieve PostgreSQL server_version_num: FATAL: pg_hba.conf rejects connection for host "xxx.xxx.xxx.xx")
With Kong >= 3.6.0 i receive an error "attempt to index local 'ssl' (a nil value)". Kong 3.5 works as expected.
results in
whereas
works well.
Expected Behavior
No error message and db gets bootstrapped for Kong >= 3.6.0
Steps To Reproduce
docker run --rm
-e "KONG_PG_DATABASE=kongdb"
-e "KONG_PG_HOST=postgres15.saas.domain.com"
-e "KONG_PG_PORT=5432"
-e "KONG_PG_PASSWORD=secret"
-e "KONG_PASSWORD=123456"
-e "KONG_PG_SSL=on"
kong:3.6.1 kong migrations bootstrap
Anything else?
No response
The text was updated successfully, but these errors were encountered: