Redirecting loop with redirectScheme

I'm trying to redirect http to https traffic and it seems to create a loop. I'm running k8s and using an ELB running in EKS. I can't figure out what's causing this.

Middleware config

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: https-redirect
  namespace: dev
spec:
  redirectScheme:
    scheme: https
    permanent: true
    port: 443

Output from one hit to the page.

x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1722 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1723 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1724 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1725 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1726 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1727 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1728 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1729 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1730 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1731 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1732 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1733 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1734 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1735 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1736 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:43 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1737 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:44 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1738 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:44 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1739 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.233 - - [24/Sep/2019:21:14:44 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1740 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.235 - - [24/Sep/2019:21:14:44 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1741 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms
x.x.x.39 - - [24/Sep/2019:21:14:44 +0000] "GET /auth HTTP/1.1" 301 17 "-" "-" 1742 "pod-name-fb5776ccb918fc3be00f@kubernetescrd" - 0ms

Hello @mindcruft,

What ports does your ELB listen on, and what ports does it forward to on Traefik?

Can you provide your Traefik config?

I solved the issue, turns out it was a silly configuration issue on my end.

I'm facing the same issue. What did you change to make it work ?

How did you solve it. I'm facing the same issue.

@mindcruft how did you solved the issue?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.