Skip to content

Traefik authentication middleware  #4

@lukasmrtvy

Description

@lukasmrtvy

First of all, thanks for the tutorial !

Did not You try to setup flow with Gatekeeper as Traefik`s authentication middleware ?

  Client +-----> Traefik +-----> Application
                  +    ^
                  |    |
                  |    |
                  v    +
                 Gatekeeper
                  +    ^
                  |    |
                  |    |
                  v    +
                 Keycloak

https://docs.traefik.io/configuration/entrypoints/#forward-authentication
v2 https://docs.traefik.io/v2.0/middlewares/forwardauth/

I am not sure, if Gatekeeper can work in this mode, cuz its a basically a reverse proxy. (--upstream-url should redirect in this case..)

Deprecated https://github.com/bitly/oauth2_proxy worked like that, after succesfully 200 from middleware, traefik served content from backend.

Traefik API in this mode can serve proper stats / metrics from backend (not from gatekeeper, which is only middleman here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions