Skip to content

Commit

Permalink
hide basic-auth headers for backends
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Sep 2, 2024
1 parent 8246e66 commit 3593d77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/etc/haproxy/conf.d/backend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ backend {{ name }}
{% include "inc/security.j2" %}
{% if cnf.basic_auth.plaintext | bool and cnf.basic_auth.users | length > 0 %}
http-request auth unless { http_auth(basic_auth_{{ name }}) }
http-request del-header X-User
http-request del-header X-Auth
http-request del-header X-Auth-Type
http-request del-header Authorization
{% endif %}
{% endif %}
{% if cnf.mode == 'tcp' %}
Expand Down

0 comments on commit 3593d77

Please sign in to comment.