-
Notifications
You must be signed in to change notification settings - Fork 63
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
TLS support: pgagroal - PostgreSQL #70
Comments
is there any hope of this getting merged into master? |
I'm working on something else at the momment, so community effort currently. |
Initial support for TLS connections to PostgreSQL, but doesn't support pooling so we will keep the issue open until fixed
Pooling support by saving the SSL session and reusing it
Pooling support by saving the SSL session and reusing it
Pooling support by saving the SSL session and reusing it
#404 is related |
Please assign me this issue. |
@ashu3103 Have fun with it ! |
What is the issue with the current implementation, the worker is establishing tls for itself and supplies the ssl context to pipeline for ssl support in further connections. Just for the part where |
@ashu3103 Yeah, we can connect to a TLS protected PostgreSQL instance, but the connections can't be cached since we can't currently serialize the SSLContext to be part of the pool. You can investigate newer versions of OpenSSL, or look at alternative implmentations like Create a test setup with self-signed certificates, create a connection, and return it to the pool. You will see it isn't cached. This ties into requiring TLS certificates for connections - it is the easier part to start with |
But why are we not able to make SSLContext a part of the pool? Something like
Sure, but don't you think openssl has better community support and therefore rapid development
Okay! |
In
Also in
|
We have to reserve the slot in the pool - even for a SSL based connection |
Support TLS v1.2 and TLS v1.3.
server
structure with the required configuration parametersconnection
structure with theSSL_SESSION
data (i2d_SSL_SESSION()
)The text was updated successfully, but these errors were encountered: