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

Commits on Nov 8, 2024

  1. libtest: fixed LogTransportMock to not return bytes if the buffer siz…

    …e is 0
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    421058b View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. logtransport: add read_ahead() method

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    f2f9ffc View commit details
    Browse the repository at this point in the history
  2. transport: establish link between LogTransportStack and constituent L…

    …ogTransport instances
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    70dc1e6 View commit details
    Browse the repository at this point in the history
  3. transport: remove explicit stack argument from LogTransportAdapter

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    aaac335 View commit details
    Browse the repository at this point in the history
  4. logproto: add LogProtoAutoServer implementation

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    3a9f8e0 View commit details
    Browse the repository at this point in the history
  5. syslog: use rfc6587 style auto-detection when transport("auto") is se…

    …lected
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    017c45d View commit details
    Browse the repository at this point in the history
  6. libtest: allow LogProtoServer instance to change during handshake

    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]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    2210654 View commit details
    Browse the repository at this point in the history
  7. logreader: allow replacing LogProtoServer instances during handshake

    This can be used to simplify LogProtoAutoServer.
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    47f5643 View commit details
    Browse the repository at this point in the history
  8. light: add testcase for framing auto detection

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    f77bb5c View commit details
    Browse the repository at this point in the history
  9. news: updated news entry

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    963db7e View commit details
    Browse the repository at this point in the history
  10. tests/copyright: updated policy about new files

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    fa94fef View commit details
    Browse the repository at this point in the history
  11. logproto: rename prepare() methods to poll_prepare

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    137ed30 View commit details
    Browse the repository at this point in the history
  12. transport-stack: add assertion to log_transport_stack_get_active()

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    4d343ee View commit details
    Browse the repository at this point in the history
  13. transport-stack: indicate failure in log_transport_stack_switch()

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    c113e37 View commit details
    Browse the repository at this point in the history
  14. transport-tls: use OpenSSL BIOs to wrap the lower level LogTransport …

    …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]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    d7b6bfd View commit details
    Browse the repository at this point in the history
  15. transport-stack: add poll_prepare() methods for LogTransport and LogT…

    …ransportStack
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b627c33 View commit details
    Browse the repository at this point in the history
  16. transport-stack: add LogTransportStack level read/write/writev methods

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    a71e690 View commit details
    Browse the repository at this point in the history
  17. transport-aux-data: add log_transport_aux_data_move()

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    047cab5 View commit details
    Browse the repository at this point in the history
  18. transport-stack: make it possible to add aux data from the LogTranspo…

    …rtStack level
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    51d011e View commit details
    Browse the repository at this point in the history
  19. logproto: call transport-stack level I/O methods

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    d026b75 View commit details
    Browse the repository at this point in the history
  20. transport-haproxy: use the normal $SOURCEIP, $DESTIP, $DESTPORT macros

    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 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    71fe874 View commit details
    Browse the repository at this point in the history
  21. transport-haproxy: use the LogTransportStack->aux to save src/dst add…

    …resses
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    859ba65 View commit details
    Browse the repository at this point in the history
  22. transport-haproxy: implement transport switch instead of changing bas…

    …e_index
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    241b0fc View commit details
    Browse the repository at this point in the history
  23. transport-haproxy: add more information to the proxy detection failur…

    …e message
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    76f5109 View commit details
    Browse the repository at this point in the history
  24. logproto: add support for auto-detecting TLS handshakes

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b3c46fc View commit details
    Browse the repository at this point in the history
  25. logproto: add support for auto-detecting haproxy handshakes

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ed08dd4 View commit details
    Browse the repository at this point in the history
  26. light: use larger fonts when executing xterm

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    57e8313 View commit details
    Browse the repository at this point in the history
  27. light: add testcase for transport(auto)

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    dff7494 View commit details
    Browse the repository at this point in the history
  28. foo: bar

    bazsi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    a2bc880 View commit details
    Browse the repository at this point in the history