diff --git a/helm-charts/templates/data-plane/gateway-components/log-conf.yaml b/helm-charts/templates/data-plane/gateway-components/log-conf.yaml index faf59904d..68295ab60 100644 --- a/helm-charts/templates/data-plane/gateway-components/log-conf.yaml +++ b/helm-charts/templates/data-plane/gateway-components/log-conf.yaml @@ -132,6 +132,20 @@ data: host = "{{ template "apk-helm.resource.prefix" . }}-management-server.{{ .Release.Namespace }}.svc" {{end}} +{{ if and .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs.filters }} +{{ range $index, $filter := .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs.filters}} + [[enforcer.filters]] + className = "{{$filter.className}}" + position = {{$filter.position}} + {{ if $filter.properties }} + [enforcer.filters.configProperties] + {{range $key, $value := $filter.properties}} + {{$value.name}} = "{{$value.value}}" + {{end}} + {{end}} +{{end}} +{{end}} + config.toml.template: | # The configuration file for mgw diff --git a/helm-charts/values.yaml b/helm-charts/values.yaml index 756676365..eec343ac9 100644 --- a/helm-charts/values.yaml +++ b/helm-charts/values.yaml @@ -398,7 +398,12 @@ wso2: # certificatesSecret: "router-cert" # certKeyFilename: "" # certFilename: "" - + # filters: + # - className: org.wso2.micro.gateway.enforcer.filter.RequestFilter + # position: 1 + # properties: + # - name: filterConfig1 + # value: filterConfig1 certmanager: enabled: true enableClusterIssuer: true