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

Proxy protocol moves tolog transport #156

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

Commits on Oct 11, 2024

  1. transport: publish log_transport_socket_read_method()

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    57e6f73 View commit details
    Browse the repository at this point in the history
  2. logproto-text-client: remove duplicate initialization of self->super.…

    …transport
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    045b89b View commit details
    Browse the repository at this point in the history
  3. afsocket: minor consistency changes in transport_mapper_*_apply_trans…

    …port()
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    324ed7f View commit details
    Browse the repository at this point in the history
  4. transport: rename MultiTransport to TransportStack

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7590a31 View commit details
    Browse the repository at this point in the history
  5. transport: rename TransfortFactory to LogTransportFactory

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    615d59d View commit details
    Browse the repository at this point in the history
  6. transport: merge transport-factory.h into transport-stack.h

    These are interdependent interfaces and LogTransportStack will be the
    sole user of LogTransportFactory.
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a49cfdc View commit details
    Browse the repository at this point in the history
  7. transport: initialize transport->name

    Instead of relying on the factory to initialize name, initialize it
    through the normal constructor path.
    
    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f5d3866 View commit details
    Browse the repository at this point in the history
  8. transport: change LogTransportStack (ex MultiTransport) to represent …

    …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]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    083096e View commit details
    Browse the repository at this point in the history
  9. transport: add LogTransportAdapter

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    12db622 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. transport: add transport-haproxy implementation

    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]>
    alexb271 authored and bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    79862a6 View commit details
    Browse the repository at this point in the history
  2. transport: use the new LogTransport based HAProxy implementation

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    2416386 View commit details
    Browse the repository at this point in the history
  3. logproto: Remove proxied-text-server

    Signed-off-by: Alex Becker <[email protected]>
    Signed-off-by: Hofi <[email protected]>
    bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    59a01cf View commit details
    Browse the repository at this point in the history
  4. transport: eliminate transport-factory-socket

    Signed-off-by: Balazs Scheidler <[email protected]>
    bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    98f0791 View commit details
    Browse the repository at this point in the history
  5. light: Added syslog() source and handling of the latest version of 'p…

    …roxied' loggen parameter
    
    Signed-off-by: Hofi <[email protected]>
    HofiOne authored and bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d0a98db View commit details
    Browse the repository at this point in the history
  6. light: Added proxied network() and syslog() source tested that all us…

    …e loggen with proper `proxied` switches
    
    Signed-off-by: Hofi <[email protected]>
    HofiOne authored and bazsi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    1774231 View commit details
    Browse the repository at this point in the history