Skip to content

Commit

Permalink
Merge pull request #413 from stackhpc/upstream/yoga-2023-08-21
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
markgoddard authored Aug 21, 2023
2 parents 0e5908c + 15fdf1b commit 036a2c1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ frontend {{ service_name }}_front
mode {{ service_mode }}
{% endif %}
{% if service_mode == 'http' %}
{% if external|bool %}
http-request deny if { path -i -m beg /server-status }
{% endif %}
{# Delete any pre-populated XFP header #}
http-request del-header X-Forwarded-Proto
{% for http_option in frontend_http_extra %}
Expand Down
4 changes: 4 additions & 0 deletions ansible/roles/horizon/templates/horizon.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ TraceEnable off
Require all granted
</Location>

<Location "/server-status">
Require local
</Location>

{% if kolla_base_distro in ['debian', 'ubuntu'] and horizon_install_type == 'binary' %}
Alias /static /var/lib/openstack-dashboard/static
{% else %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
security:
- |
Restrict the access to the http Openstack services exposed /server-status
by default through the HAProxy on the public endpoint. Fixes issue for
Ubuntu/Debian installations. RockyLinux/CentOS not affected.
`LP#1996913 <https://bugs.launchpad.net/kolla-ansible/+bug/1996913>`__

0 comments on commit 036a2c1

Please sign in to comment.