diff options
author | Suresh Charan <suresh.charan@amdocs.com> | 2022-01-31 06:25:37 -0500 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2022-02-23 07:53:09 +0000 |
commit | c1aa75883eda55ab5e68cc60ba7d68ec27d1d126 (patch) | |
tree | 45a58012a9b2a48ad4d48f66e2c09278a2e53a16 /kubernetes/aai/resources/config/haproxy/haproxy.cfg | |
parent | adbc2b7113e015d2ed6070a76f53ed1c6c0ee4b3 (diff) |
[AAI] Request blocking enhancement for AAI
Enable configuration of HAProxy ACL to block incoming requests
Issue-ID: OOM-2920
Signed-off-by: Suresh Charan <suresh.charan@amdocs.com>
Change-Id: Icacaa7642f018b76b6c738b325c3d2a12702495e
Diffstat (limited to 'kubernetes/aai/resources/config/haproxy/haproxy.cfg')
-rw-r--r-- | kubernetes/aai/resources/config/haproxy/haproxy.cfg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kubernetes/aai/resources/config/haproxy/haproxy.cfg b/kubernetes/aai/resources/config/haproxy/haproxy.cfg index 1db4addb5a..1accff9935 100644 --- a/kubernetes/aai/resources/config/haproxy/haproxy.cfg +++ b/kubernetes/aai/resources/config/haproxy/haproxy.cfg @@ -119,6 +119,15 @@ frontend IST_8443 http-request set-header X-AAI-SSL-Client-ST %{+Q}[ssl_c_s_dn(ST)] http-request set-header X-AAI-SSL-Client-C %{+Q}[ssl_c_s_dn(C)] http-request set-header X-AAI-SSL-Client-O %{+Q}[ssl_c_s_dn(O)] +####################################### +## Request blocking configuration ### +####################################### + {{- if eq $.Values.haproxy.requestBlocking.enabled true }} + {{- range $custom_config := $.Values.haproxy.requestBlocking.customConfigs }} + {{ $custom_config }} + {{- end }} + {{- end }} + reqadd X-Forwarded-Proto:\ https reqadd X-Forwarded-Port:\ 8443 {{- end }} |