horizon/openstack_auth
Tobias Urdin 5464dbc368 Pass client IP to keystoneauth1 session
This passes the client IP to the keystoneauth1 Session's
original_ip parameter.

This sets the Forwarder HTTP header so that when the request
lands in Keystone the request can actually be interpreted who
made the request and not only that it was proxied by Horizon.

  Forwarded: for=100.64.10.1;by=openstack_auth keystoneauth1/4.4.0 python-requests/2.25.1 CPython/3.6.8

In the above example header the 100.64.10.1 is the client IP
that is sent from a load balancer in the X-Forwarded-For header
while the actual REMOTE_ADDR in the HTTP request is the load balancers
IP address.

Change-Id: I52da9dcd7fb6b1ac46852718f285795628121e26
(cherry picked from commit 6a3fa87cde)
2022-08-01 08:32:26 +00:00
..
locale Imported Translations from Zanata 2022-02-22 03:02:39 +00:00
plugin Pass client IP to keystoneauth1 session 2022-08-01 08:32:26 +00:00
tests Merge "Address RemovedInDjango40Warning (3)" 2022-03-10 12:23:11 +00:00
__init__.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
backend.py Pass client IP to keystoneauth1 session 2022-08-01 08:32:26 +00:00
defaults.py Use OPENSTACK_KEYSTONE_URL instead of HTTP_REFERRER 2022-01-12 08:29:29 +00:00
exceptions.py Automatically redirect to the password change when it's expired 2019-09-16 12:45:23 +02:00
forms.py Merge "Address RemovedInDjango40Warning (2)" 2022-03-03 10:14:04 +00:00
middleware.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
models.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
policy.py Merge "Support policy-in-code and deprecated policy" 2021-03-04 22:01:52 +00:00
urls.py Address RemovedInDjango40Warning (3) 2022-02-04 16:26:54 +09:00
user.py Add system scope support to context switcher 2021-11-26 14:09:46 +01:00
utils.py Add system scope support to context switcher 2021-11-26 14:09:46 +01:00
views.py Pass client IP to keystoneauth1 session 2022-08-01 08:32:26 +00:00