]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: redirect browser to correct port by identity provider 68712/head
authorYonatan Zaken <yzaken@redhat.com>
Fri, 1 May 2026 08:41:46 +0000 (11:41 +0300)
committerYonatan Zaken <yzaken@redhat.com>
Fri, 1 May 2026 08:41:46 +0000 (11:41 +0300)
commit14957354d71691aa52de106f7ff9d252c756941d
treee32f1cbde2f8dc243518efb8797240c09fa1df65
parent407f9ccbd06177781f0336c7f833ab42dab31b20
mgr/cephadm: redirect browser to correct port by identity provider

After authentication, the external identity provider was redirecting
to the correct dashboard address but omitting the external port causing
the browser to redirect to the default https port (443) which isn't
used since an external port was configured in mgmt-gateway spec file.

The nginx external_server_conf.j2 file was changed to use $http_host
instead of $host in order for the oauth2-proxy service to correctly
construct the dashboard URL including the non-standard port.

Fixes: https://tracker.ceph.com/issues/74024
Signed-off-by: Yonatan Zaken <yzaken@redhat.com>
src/pybind/mgr/cephadm/templates/services/mgmt-gateway/external_server.conf.j2
src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.py