Hello,
I am trying to not apply a forward-auth
middleware to a specific IP that hits the API. The middleware works fine otherwise.
I tried a few combinations like in which the most promising on was the following but I still get redirected when accessing the endpoint from 192.168.1.63.
- match: Host(`test.domain`)
kind: Rule
services:
- kind: Service
name: test-svc
namespace: test
port: webui
middlewares:
- name: traefik-forward-auth
namespace: kube-system
- match: Host(`test.domain`) && ClientIP("192.168.1.63/32")
kind: Rule
services:
- kind: Service
name: test-svc
namespace: test
port: webui
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: traefik-forward-auth
namespace: kube-system
spec:
forwardAuth:
address: http://traefik-forward-auth:4181
authResponseHeaders:
- X-Forwarded-User
I am new to Traefik so mostly tinkering at this point.