apiVersion: v1
kind: Secret
metadata:
  name: name
  namespace: default

data:
  key1: YWRtaW5fcGFzc3dvcmQ=
  key2: dXNlcl9wYXNzd29yZA==

---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: test-secret
  namespace: default

spec:
  plugin:
    test-secret:
      users:
        - name: admin
          secret: urn:k8s:secret:name:key1
        - name: user
          secret: urn:k8s:secret:name:key2
