Skip to content

Commit cc02603

Browse files
jackhodgkissAlex-Welsh
authored andcommitted
Deny access to server-status via single frontend
This change denies access to `server-status` when the using `single frontend` configuration for public API services with `HAProxy`. Closes-Bug: #2121626 Change-Id: I447212df92c0da4248e44f652fc66c7381a404bb Signed-off-by: Jack Hodgkiss <[email protected]> (cherry picked from commit 6eae55b)
1 parent 87fd382 commit cc02603

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ansible/roles/loadbalancer/templates/haproxy/haproxy_external_frontend.cfg.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ frontend external_frontend
99
http-request set-header X-Forwarded-Proto https if { ssl_fc }
1010
bind {{ kolla_external_vip_address }}:{{ haproxy_external_single_frontend_public_port }} {{ external_tls_bind_info }}
1111
use_backend %[req.hdr(host),lower,map_dom(/etc/haproxy/external-frontend-map,{{ haproxy_external_single_frontend_default_backend }})]
12+
http-request deny if { path -i -m beg /server-status }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
security:
3+
- |
4+
Deny access to /server-status via the single frontend.
5+
`LP#2121626 <https://bugs.launchpad.net/kolla-ansible/+bug/2121626>`__

0 commit comments

Comments
 (0)