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

WIP: Add auto-detecting transport/logproto properties. #372

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Nov 9, 2024

Add TLS/haproxy auto-detection in case we have transport(auto)

With this we auto-detect:

  • if TLS is in use
  • if HAproxy is being used
  • framing/non-framing.

@bazsi bazsi changed the title Implement tls auto Add auto-detecting transport/logproto properties. Nov 9, 2024
@bazsi bazsi force-pushed the implement-tls-auto branch 2 times, most recently from 060611b to 19a319d Compare November 9, 2024 20:51
Copy link
Contributor

github-actions bot commented Nov 9, 2024

This Pull Request introduces config grammar changes

axoflow/c7e6f01069ae9b469457ecd3024b690d953b72ce -> bazsi/implement-tls-auto

--- a/destination
+++ b/destination

 network(
     transport(
+        auto
     )
 )

 syslog(
     transport(
+        auto
     )
 )

--- a/source
+++ b/source

 network(
     transport(
+        auto
     )
 )

 syslog(
     transport(
+        auto
     )
 )

…ogTransport instances

Signed-off-by: Balazs Scheidler <[email protected]>
This is just the change in test code, which adds LogProtoServer ** arguments
to the handshake related functions, in order to allow
log_proto_server_handshake to change the LogProto instance.

Signed-off-by: Balazs Scheidler <[email protected]>
This can be used to simplify LogProtoAutoServer.

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
…instance

Instead of going to the fd directly, wrap the lower-level LogTransport
instance into a BIO and use that. This implements proper stacking
for LogTransportTLS.

Signed-off-by: Balazs Scheidler <[email protected]>
Instead of using proxy protocol specific name value pairs, set the
addresses in the message's saddr/daddr members.

This should be a lot faster and a lot easier to use.

Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi changed the title Add auto-detecting transport/logproto properties. WIP: Add auto-detecting transport/logproto properties. Nov 12, 2024
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.

1 participant