Skip to content
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

PTEUDO-2041 Support SSL and non-SSL client connections #358

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

drewwells
Copy link
Contributor

The dbproxy is used on the same host as the client. As SSL would
be more secure, we already using SSL to secure the outbound
connection to cloud or actual database. Since this sidecar call
is local to the host, we will allow non-SSL connections. This will
ensure better usability for users of dbproxy.

    The dbproxy is used on the same host as the client. As SSL would
    be more secure, we already using SSL to secure the outbound
    connection to cloud or actual database. Since this sidecar call
    is local to the host, we will allow non-SSL connections. This will
    ensure better usability for users of dbproxy.
@drewwells
Copy link
Contributor Author

DEMO

{"level":"error","ts":"2024-11-13T22:08:28Z","msg":"+ timeout 10 psql 'postgres://localhost:5432/?sslmode=require' -c 'SELECT 1'","stacktrace":"github.com/infobloxopen/db-controller/dbproxy/pgbouncer.run.func3\n\t/workspace/pgbouncer/pgbouncer.go:78\ngithub.com/infobloxopen/db-controller/dbproxy/pgbouncer.run.func1\n\t/workspace/pgbouncer/pgbouncer.go:66"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":" ?column? "}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"----------"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"        1"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"(1 row)"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":""}
{"level":"error","ts":"2024-11-13T22:08:28Z","msg":"+ timeout 10 psql 'postgres://localhost:5432/?sslmode=disable' -c 'SELECT 1'","stacktrace":"github.com/infobloxopen/db-controller/dbproxy/pgbouncer.run.func3\n\t/workspace/pgbouncer/pgbouncer.go:78\ngithub.com/infobloxopen/db-controller/dbproxy/pgbouncer.run.func1\n\t/workspace/pgbouncer/pgbouncer.go:66"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":" ?column? "}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"----------"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"        1"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":"(1 row)"}
{"level":"info","ts":"2024-11-13T22:08:28Z","msg":""}

@drewwells drewwells merged commit 4bd28f5 into main Nov 14, 2024
3 checks passed
@drewwells drewwells deleted the pgbouncerSSLmode branch November 14, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants