Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dao) allow self-signed certificates in migrations command
* postgres: allow self-signed certificates in Kong CLI * cassandra: allow self-signed certificates in Kong CLI This fixes a reported issue that Kong would not be able to run migrations on PostgreSQL with self-signed certificates. The error "self signed certificate" that Kong raised indicated that the root CA was not made available to the cosocket in use. Because Kong's CLI interpreter is resty-cli, it is too late to set the resty-cli `lua_ssl_trusted_certificate` directive. The approach we historically take is to rely on LuaSocket/LuaSec in Kong's CLI and circumvent this limitation (the root CA file can be specified at runtime as part of the LuaSocket instantiation options). The Cassandra strategy has a similar fix following a slightly different approach due to different underlying database drivers. Fix #2856 From #2908
- Loading branch information