-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
L4 module for Postgres #186
Conversation
- Detects Postgres connections based on `StartupMessage` and `SSLRequest` message formats defined in the protocol documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! Looks like a great start.
Can we add the Apache license notice to the beginning of the file? https://github.com/mholt/caddy-l4?tab=Apache-2.0-1-ov-file#readme
Then, let's just unexport identifiers that aren't used outside the package. (I've highlighted some examples but other code changes will be needed to compile of course.)
Then we can probably merge this in. Thanks!
Thanks for the feedback, all done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Looks good for now. Let's give it a try :)
The first 8 bytes are the Postgres' bespoke The server ( At that time, the Without sending It looks like we could add the Thoughts? |
This a simple module to detect and match on Postgres connections in a similar manner that the SSH module uses.
Currently it can be used to multiplex a single database connection along with HTTP/S and SSH to avoid needed to open additional ports: