You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When proxying messages from the psql cli to a postgres instance (using a Backend for the client and a Frontend for the DB, I can successfully pass most messages back and forth until it gets to the PasswordMessage. When I proxy that to the database, it returns the error:
FATAL 08P01 insufficient data left in message
To Reproduce
Steps to reproduce the behavior:
If possible, please provide runnable example such as:
Expected behavior
I expect the message from the client to be received without error by the postgres database, and for the initialization handshake to continue.
I've proxied the PG protocol before, but I've never done it with SSL or SASL. I would suggest trying it without SSL and maybe with a simpler password type. I wonder if psql is trying to use channel binding or something else not supported by pgx.
I'm currently injecting a N to ssl requests, but I'll give a simpler auth method a try.
Interestingly im able to make it work by proxying net.Conn communication, then when I see a Q message, i wrap those connections with pgproto3 frontend/backend, and operate at a higher level. I was just hoping to keep it with the nice higher level library. :)
Describe the bug
When proxying messages from the psql cli to a postgres instance (using a
Backend
for the client and aFrontend
for the DB, I can successfully pass most messages back and forth until it gets to thePasswordMessage
. When I proxy that to the database, it returns the error:FATAL 08P01 insufficient data left in message
To Reproduce
Steps to reproduce the behavior:
If possible, please provide runnable example such as:
Expected behavior
I expect the message from the client to be received without error by the postgres database, and for the initialization handshake to continue.
Actual behavior
Version
The text was updated successfully, but these errors were encountered: