Middleware.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. apiVersion: traefik.containo.us/v1alpha1
  2. kind: Middleware
  3. metadata:
  4. name: coresvc.replay-attack
  5. spec:
  6. forwardAuth:
  7. address: http://coresvc2/api/security/detect/replayAttack
  8. authResponseHeadersRegex: ^X-
  9. trustForwardHeader: true
  10. ---
  11. apiVersion: traefik.containo.us/v1alpha1
  12. kind: Middleware
  13. metadata:
  14. name: coresvc-jwt-token-v2.2-verify
  15. spec:
  16. forwardAuth:
  17. address: http://coresvc2/api/auth/v2.2/verify
  18. authResponseHeadersRegex: ^X-
  19. trustForwardHeader: true
  20. ---
  21. apiVersion: traefik.containo.us/v1alpha1
  22. kind: Middleware
  23. metadata:
  24. name: coresvc-jwt-token-v2.1-verify
  25. spec:
  26. forwardAuth:
  27. address: http://coresvc2/api/auth/v2.1/verify
  28. authResponseHeadersRegex: ^X-
  29. trustForwardHeader: true
  30. ---
  31. apiVersion: traefik.containo.us/v1alpha1
  32. kind: Middleware
  33. metadata:
  34. name: coresvc-jwt-token-v2-verify
  35. spec:
  36. forwardAuth:
  37. address: http://coresvc2/api/auth/v2/verify
  38. authResponseHeadersRegex: ^X-
  39. trustForwardHeader: true
  40. ---
  41. apiVersion: traefik.containo.us/v1alpha1
  42. kind: Middleware
  43. metadata:
  44. name: coresvc-jwt-token-v3-verify
  45. spec:
  46. forwardAuth:
  47. address: http://coresvc2/api/auth/v3/verify
  48. authResponseHeadersRegex: ^X-
  49. trustForwardHeader: true
  50. ---
  51. apiVersion: traefik.containo.us/v1alpha1
  52. kind: Middleware
  53. metadata:
  54. name: coresvc-jwt-token-v2-verify-optional
  55. spec:
  56. forwardAuth:
  57. address: http://coresvc2/api/auth/v2/verify/optional
  58. authResponseHeadersRegex: ^X-
  59. trustForwardHeader: true
  60. ---
  61. apiVersion: traefik.containo.us/v1alpha1
  62. kind: Middleware
  63. metadata:
  64. name: coresvc-token-validation
  65. spec:
  66. forwardAuth:
  67. address: http://coresvc2/api/auth/verify
  68. ---
  69. apiVersion: traefik.containo.us/v1alpha1
  70. kind: Middleware
  71. metadata:
  72. name: coresvc-forward-geo
  73. spec:
  74. forwardAuth:
  75. address: http://coresvc2/api/geo/city/forward
  76. ---
  77. apiVersion: traefik.containo.us/v1alpha1
  78. kind: Middleware
  79. metadata:
  80. name: coresvc-ratelimit-byuser
  81. spec:
  82. forwardAuth:
  83. address: http://coresvc2/api/auth/rateLimitByUser