404 when set basicAuth middleware in a ingress

I trying configure basic auth to the Ingress, but when i add the annotation i get 404 Not found

annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: nuclio-auth

in my dynamic configuration:

http:
middlewares:
nuclio-auth:
basicAuth:
removeHeader: true
users:
- "nuclio:$2y$05$Vdn8nSnopZu5bdjO2Kjlm.68m9Gbl6IYQx7kp1qlJw9eT6zRMBUAS"

Hi Davo,

Please try to use the name of the provider where middleware is created, according to the template: @, in that case it should be , since the middleware is created from dynamic configuration stored as file.