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: Implement rfc6587 auto detection #154

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

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Jun 9, 2024

This is a pretty common misconfiguration that should be handled automatically.

Open questions were resolved this way:

  • syslog(transport(tcp/tls)) will default to enable framing detection
  • if you want to require framing transport(force-framed) will do that, but I doubt anyone needs that, so let's not document it.
  • auto is only the name of the class, it's not user visible anymore.
  • testcases are added

lib/logproto/logproto-auto-server.c Show resolved Hide resolved
news/feature-4814.md Show resolved Hide resolved
@bazsi bazsi force-pushed the implement-rfc6587-auto-detection branch from 98435b3 to c728d0a Compare June 22, 2024 07:18
@bazsi bazsi force-pushed the implement-rfc6587-auto-detection branch from c728d0a to 902b563 Compare July 16, 2024 07:52
@bazsi bazsi force-pushed the implement-rfc6587-auto-detection branch from 902b563 to 6c992ba Compare August 10, 2024 15:26
@MrAnno MrAnno self-requested a review August 10, 2024 19:28
@bazsi
Copy link
Member Author

bazsi commented Sep 18, 2024

This should wait until #156 is merged.

bazsi and others added 22 commits October 11, 2024 15:50
These are interdependent interfaces and LogTransportStack will be the
sole user of LogTransportFactory.

Signed-off-by: Balazs Scheidler <[email protected]>
Instead of relying on the factory to initialize name, initialize it
through the normal constructor path.

Signed-off-by: Balazs Scheidler <[email protected]>
…a stack of LogTransports

Instead of trying to reuse the LogTransport interface and hide cases where
we need multiple swappable LogTransports, let's introduce a
LogTransportStack, that explicitly tracks all such LogTransports, takes
care of their lifecycle and allows them to be swapped during a connection.

To be used for HA Proxy protocol support.

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
This patch is based on the LogTransport implementation in
github.com/syslog-ng/syslog-ng, which in turn is based on my original
implementation of proxy support as a LogProto class.

Signed-off-by: Alex Becker <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Alex Becker <[email protected]>
Signed-off-by: Hofi <[email protected]>
…e loggen with proper `proxied` switches

Signed-off-by: Hofi <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi force-pushed the implement-rfc6587-auto-detection branch from 6c992ba to e87919d Compare October 16, 2024 13:46
@bazsi bazsi changed the title Implement rfc6587 auto detection WIP: Implement rfc6587 auto detection Oct 16, 2024
@bazsi
Copy link
Member Author

bazsi commented Oct 16, 2024

I have now rebased it but still need to check if it works on top of #156

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.

4 participants