Skip to content

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

@nvazquez

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)

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions