← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1962488] [NEW] Show X-FORWARDED-FOR IP address if login failed

 

Public bug reported:

Failed login syslog message shows the internal IP address from ha-proxy,
not the real IP of the client.

Tested via: horizon-21.2.6

Message sent to syslog on a failed login:

httpd[4218]: [wsgi:error] [pid 4218] [remote 192.168.17.12:59680] Login
failed for user "aaaaaaaaaaaaaa" using domain "default", remote address
192.168.17.12.

(192.168.17.12 is the internal ha-proxy address)

I couldn't find a filed bug or anything related, the error message is
generated in openstack_auth/forms.py in "def clean(self)".

Please let me know if there is a workaround for it, or if I should see
to get a patch together to get the real client IP address into the log
file.

thx

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1962488

Title:
  Show X-FORWARDED-FOR IP address if login failed

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Failed login syslog message shows the internal IP address from ha-
  proxy, not the real IP of the client.

  Tested via: horizon-21.2.6

  Message sent to syslog on a failed login:

  httpd[4218]: [wsgi:error] [pid 4218] [remote 192.168.17.12:59680]
  Login failed for user "aaaaaaaaaaaaaa" using domain "default", remote
  address 192.168.17.12.

  (192.168.17.12 is the internal ha-proxy address)

  I couldn't find a filed bug or anything related, the error message is
  generated in openstack_auth/forms.py in "def clean(self)".

  Please let me know if there is a workaround for it, or if I should see
  to get a patch together to get the real client IP address into the log
  file.

  thx

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1962488/+subscriptions



Follow ups