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

Add support for proxy protocol in martian #916

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

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    bda2fc9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a46311 View commit details
    Browse the repository at this point in the history
  3. martian: update remote address info when reading request on connectio…

    …n with proxy header
    
    If connection provides proxy protocol header, when reading requests set http.Request.RemoteAddr to source IP address from proxy header.
    mmatczuk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    374c8f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    610ffe8 View commit details
    Browse the repository at this point in the history
  5. bind: add proxy-protocol-read-header-timeout flag

        --proxy-protocol-read-header-timeout <duration> (default 5s) (env FORWARDER_PROXY_PROTOCOL_READ_HEADER_TIMEOUT)
            The amount of time to wait for PROXY protocol header if present.
    mmatczuk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    d41d18a View commit details
    Browse the repository at this point in the history
  6. e2e: add proxy protocol tests

    Enable proxy protocol by default in tests.
    Add tests to check if XFF header is properly updated.
    mmatczuk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    e5f55f7 View commit details
    Browse the repository at this point in the history