Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97898

Expose proxy endpoints in AsioSession API

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v8.0, v7.0
    • Security 2024-12-09, Security 2024-12-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The ASIO session currently stores a source and destination endpoint that may have been parsed from an inbound connection speaking the proxy protocol. Currently, these values are only populated on mongos, but ASIO session is common to both mongod and mongos so it is expected that those same values will be populated once proxy protocol support is built into mongod.

      We should expose an API to retrieve proxied endpoints and the "true" remote endpoint from transport::Session so that external subsystems (e.g., the Client) can use them.

      Additionally, log these endpoints in the "Connection Accepted" (log 22943) mongos system log.

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: