I wonder how to secure haproxy. For example I would like to use basic auth to limit access to some :9090. It's super weird that with default config for this project anyone can access getconfig.
Of course I could override whole HAPROXY_HEAD label but this seems a little bit odd (i need to keep super long string in my config to keep all defaults). Another idea would be to block access limit access via iptables.
@krzkaczor Modifying the HAPROXY_HEAD template is the intended method to do this. Are there specific challenges you're facing in setting up authentication?
I wonder how to secure haproxy. For example I would like to use basic auth to limit access to some :9090. It's super weird that with default config for this project anyone can access
getconfig
.Of course I could override whole
HAPROXY_HEAD
label but this seems a little bit odd (i need to keep super long string in my config to keep all defaults). Another idea would be to block access limit access via iptables.Am I missing something?