Error with Middleware and Plugin AuthCookie Configuration: “Invalid middleware type or middleware not found.”

Issue with Middleware Configuration Using Plugin AuthCookie in Traefik (Kubernetes CRD)

Hi Traefik Community,

I'm currently experiencing an issue while configuring a middleware that utilizes the AuthCookie plugin in Traefik with Kubernetes CRD. I have carefully followed the documentation and created the required middleware, but I keep encountering the following error:

invalid middleware "xxxx-xxxx-xxxx-authcookie@kubernetescrd" configuration: invalid middleware type or middleware does not exist


I’m not sure if this helps, but here’s my Helm values.yaml configuration:

deployment:
  replicas: 1

  resources:
    requests:
      cpu: "100m"
      memory: "512Mi"
    limits:
      cpu: "500m"
      memory: "1024Mi"

  podAnnotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "8080"

  additionalVolumes:
    - name: plugins
      emptyDir:
        medium: Memory

  additionalVolumeMounts:
    - name: plugins
      mountPath: /etc/traefik/plugins-storage
      readOnly: false

  extraContainers:
    volumeMounts:
      - name: plugins
        mountPath: /etc/traefik/plugins-storage
        readOnly: false

service:
  enabled: false
  type: LoadBalancer
  ports:
    web:
      port: 80
      targetPort: 8000
    websecure:
      port: 443
      targetPort: 8443

ingressClass:
  enabled: false
  isDefaultClass: true

providers:
  kubernetesCRD:
    enabled: true
  kubernetesIngress:
    enabled: true
    publishedService:
      enabled: true

logs:
  general:
    level: "TRACE

Additionally, I have developed and published the AuthCookie middleware plugin, which can be found here:
authcookie

I would appreciate any insights or guidance on resolving this issue. Thanks in advance for your help!

Best,
Shay