commit 51b099c79e4fed72a013f89bb697137b1b794bf7
Author: Daniel Axtens <email address hidden>
Date: Thu May 11 04:41:19 2017 +1000
Rework enforce_ssl to use host name, not address
If enforce_ssl is set to true in openstack-dashboard, a user is
redirected to the IP address of the server, not its hostname.
This boils down to the template used to construct the site, which
is always fed an IP address by horizon_context.py.
Instead of using an IP address, use the result of resolve_address.
(This is part of an odd quirk whereby the charm doesn't use the
standard https tooling but does its own. A conversion to standard
tooling would be required for a full fix to #1664954.)
Reviewed: https:/ /review. openstack. org/463850 /git.openstack. org/cgit/ openstack/ charm-openstack -dashboard/ commit/ ?id=51b099c79e4 fed72a013f89bb6 97137b1b794bf7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 51b099c79e4fed7 2a013f89bb69713 7b1b794bf7
Author: Daniel Axtens <email address hidden>
Date: Thu May 11 04:41:19 2017 +1000
Rework enforce_ssl to use host name, not address
If enforce_ssl is set to true in openstack- dashboard, a user is
redirected to the IP address of the server, not its hostname.
This boils down to the template used to construct the site, which
is always fed an IP address by horizon_context.py.
Instead of using an IP address, use the result of resolve_address.
(This is part of an odd quirk whereby the charm doesn't use the
standard https tooling but does its own. A conversion to standard
tooling would be required for a full fix to #1664954.)
Closes-Bug: #1689882 48d64ba85108987 50dbc7b73cd
Related-Bug: #1664954
Change-Id: I93365b75211e3c
Signed-off-by: Daniel Axtens <email address hidden>