Websso fails when HTTP_REFERRER that horizon is unable to connect to gets used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Georgina Shippey | ||
OpenStack Identity (keystone) |
New
|
Undecided
|
Unassigned |
Bug Description
I am currently having an issue where a request to Horizon's websso endpoint fails to respond in time as the token validation request fails to connect between Horizon and Keystone.
(On Openstack Train)
I am trying to login to Horizon using an external identity provider.
I have set the WEBSSO_KEYSTONE_URL to keystones external facing endpoint as the IDP is on an external network.
The POST request to https:/
This request routes to the horizon view 'websso' (https:/
The token authentication request to keystone in this view uses the requests HTTP_REFERRER when available as the keystone endpoint to use.
The previous request was to keystone on its external endpoint (as used by the external identity provider) to its route 'auth/OS-
Our Openstack services have minimal external connectivity for security reasons.
So in our setup the horizon service is unable to make connections to the external keystone endpoint.
Therefore in the horizon apache logs I see:
Unable to establish connection to https:/
Which eventually leads to a time out.
As this is request between Horizon and Keystone ideally for us it should be using the internal endpoint. I've had a go at setting the auth_url to be settings.
I am unsure as to why the HTTP_REFERRER gets used in preference over the settings.
I propose either:
1. Removing the use of HTTP_REFERRER in favor of settings.
2. Providing a setting to toggle between using the HTTP_REFERRER or settings.
Original commit in django_
affects: | horizon → keystone |
affects: | keystone → horizon |
Fix proposed to branch: master /review. opendev. org/722685
Review: https:/