r2dbc-postgresql
r2dbc-postgresql copied to clipboard
Add support for GSS/Kerberos with Postgres 12
Postgres 12 added Kerberos support, so it would make sense to support it as well. We need to ensure that Kerberos support doesn't introduce blocking calls when obtaining the principal where we don't want to have blocking calls.
Reference:
- https://github.com/pgjdbc/pgjdbc/pull/1821
- https://www.postgresql.org/docs/12/gssapi-auth.html
anyone working on this? I would like to give it a shot.
Feel free, we hadn't had the time yet to work on this ticket.
Be a bit careful here. When I implemented it on the JDBC driver I tried to see if the server would respond correctly and a few big cloud providers just errored and closed the connection. Currently the driver uses some private methods to see if there is a key cached before attempting a GSS conversation. This is not ideal either
@davecramer Sure, thanks for the inputs. Let me go through the JDBC patch to get an understanding of how it works.