commit f4c8cadd4caa6a21f8511b3f5e4d9f1ab404f6cd
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
Related-Bug: #1664954
Change-Id: I93365b75211e3c48d64ba8510898750dbc7b73cd
Signed-off-by: Daniel Axtens <email address hidden>
(cherry picked from commit 51b099c79e4fed72a013f89bb697137b1b794bf7)
Reviewed: https:/ /review. openstack. org/468255 /git.openstack. org/cgit/ openstack/ charm-openstack -dashboard/ commit/ ?id=f4c8cadd4ca a6a21f8511b3f5e 4d9f1ab404f6cd
Committed: https:/
Submitter: Jenkins
Branch: stable/17.02
commit f4c8cadd4caa6a2 1f8511b3f5e4d9f 1ab404f6cd
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 2a013f89bb69713 7b1b794bf7)
Related-Bug: #1664954
Change-Id: I93365b75211e3c
Signed-off-by: Daniel Axtens <email address hidden>
(cherry picked from commit 51b099c79e4fed7