Skip to content

Proxy providers suddenly stop working and hit a redirect loop #7435

@brujoand

Description

@brujoand

Describe the bug
One or two of the applications using proxy provider will stop working. They will just go for an infinite redirect loop until I recreate them from scratch in Authentik. Sometimes they can start working again seemingly at random. Looking at the logs all I see is the redirect being logged. All these apps are registerted as app.mydomain.com without any path fiddling. Ref: #6540

The applications are mostly in the k8s cluster, and I use local dns to reach them. For instance http://frigate.automation.svc.cluster.local:5000/, with https://frigate.mydomain.com/ as the external url. The only problem I'm seeing in the worker/server logs is "context canceled" "failed to proxy to backend". Worker and Server logs from a redirect loop is over here: https://gist.github.com/brujoand/37b372545f4a5ad86828077f1f230de3

To Reproduce
Steps to reproduce the behavior:

  1. Create a proxy provider
  2. Create an application using the proxy provider
  3. Add the application to an outputs
  4. Repeat and wait for some of the applications to go into a infinite redirect loop

Expected behavior
There should be a simple auth flow and the application should appear, instead of a redirect loop

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Logs are here: https://gist.github.com/brujoand/37b372545f4a5ad86828077f1f230de3

Version and Deployment (please complete the following information):

  • authentik version: 2023.10.2
  • Deployment: Helm

Additional context
Nope

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions