Skip to content

[Improvement] Use client IP addresses instead of proxy servers IPs on the logs #11375

Description

@nvazquez

Description

Improvement request

Setup:

  • Use multiple CloudStack management servers using HAProxy in front of them
  • Adjust the global settings accordingly:
    • proxy.header.verify = true
    • proxy.header.names = 'X-Forwarded-For'
    • proxy.cidr = list of CIDRs

The following observations have been made:

  • Requests logged to access.log do not use the client IP address but the proxy IP address.
  • Requests logged on the management-server.log file are only showing the client IP addresses for requests to <MGMT>:8080/client/api but not <MGMT>:8080/client (as the UI would do)

Expected behavior:

  • Having client IP addresses on the logs would be useful (access.log, apilog.log, management-server.log files)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions