Hi,
Env
- Kubernetes v1.34.1
- Traefik Helm chart - v39.0.0
- Traefik v3.6.8
I'm trying to add basic auth to the Traefik dashboard via a Middleware. The dashboard itself works fine, I've exposed it through an HTTPRoute via a Gateway.
The inclusion of the basicAuth middleware in the filters section of the HTTPRoute seems to be a problem.
Related Kubernetes manifests:
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: traefik-dashboard
spec:
hostnames:
- dashboard.example.com
parentRefs:
- name: traefik-gateway
namespace: traefik
rules:
- backendRefs:
- kind: TraefikService
name: api@internal
port: 8080
matches:
- path:
type: RegularExpression
value: "^/(dashboard|api)"
filters:
- type: ExtensionRef
extensionRef:
group: traefik.io
kind: Middleware
name: traefik-dashboard-auth
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: traefik-dashboard-auth
spec:
basicAuth:
secret: traefik-dashboard-auth-secret
---
apiVersion: v1
kind: Secret
metadata:
name: traefik-dashboard-auth-secret
type: kubernetes.io/basic-auth
stringData:
username: admin
password: t0p-Secret
Helm values-override.yaml:
api:
dashboard: true
The error I'm getting :
2026-02-19T11:08:36Z ERR Unable to load HTTPRoute filters error="loading ExtensionRef filter ExtensionRef: unsupported filter extension ref traefik.io/Middleware/traefik-dashboard-auth" http_route=traefik-dashboard namespace=traefik providerName=kubernetesgateway
Does anyone have any ideas?
Thanks,