Open peigongdsd opened 4 months ago
Or at least we have a way for setting aditional JDBC url parameters? Maybe an extraConfig or overrideConfig is also good.
Last time I checked, db-url was simply composed from the other parameters, so they were basically interchangeable. I looked at using unix sockets with peer auth, but it wasn't supported then. If it is now, we should switch to it.
Sorry I didn't quite get it, do you mean that keycloak does not support unix socket connection to postgresql, or just not supporting authentication in that case?
I see that it's impossible to utilize a unix daemon socket connection due to a limitation of JDBC, but only on very early versions of JDBC. However this is not the case now, see [https://www.morling.dev/blog/talking-to-postgres-through-java-16-unix-domain-socket-channels/](). So maybe keycloak can benefit from the improvement?
Issue description
The keycloak module in nixpkgs is lacking a way to directly appoint a db-url connection, namely
which is very inconvenient to connect to a non-standard unix daemon socket for postgresql. This is common in containerized cases.
Maybe I should notify the maintainer @talyz