From 92b4244e814c95e5ba205302dca6be3d3a56c6f9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 20 Dec 2021 22:43:58 +0100 Subject: [PATCH] providers/proxy: update traefik regex Signed-off-by: Jens Langhammer #1969 --- authentik/outposts/controllers/docker.py | 2 +- authentik/providers/proxy/controllers/k8s/traefik.py | 2 +- internal/outpost/ak/global.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index daa69321c..adae08ef7 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -169,7 +169,7 @@ class DockerController(BaseController): # Check if the container is out of date, delete it and retry if len(container.image.tags) > 0: should_image = self.try_pull_image() - if should_image not in container.image.tags: + if should_image not in container.image.tags: # pragma: no cover self.logger.info( "Container has mismatched image, re-creating...", has=container.image.tags, diff --git a/authentik/providers/proxy/controllers/k8s/traefik.py b/authentik/providers/proxy/controllers/k8s/traefik.py index f2dff1f11..7c29b7226 100644 --- a/authentik/providers/proxy/controllers/k8s/traefik.py +++ b/authentik/providers/proxy/controllers/k8s/traefik.py @@ -116,7 +116,7 @@ class TraefikMiddlewareReconciler(KubernetesObjectReconciler[TraefikMiddleware]) forwardAuth=TraefikMiddlewareSpecForwardAuth( address=f"http://{self.name}.{self.namespace}:9000/akprox/auth/traefik", authResponseHeaders=[], - authResponseHeadersRegex="^(Auth|Remote|X).*$", + authResponseHeadersRegex="^(Auth|Remote|X|Set).*$", trustForwardHeader=True, ) ), diff --git a/internal/outpost/ak/global.go b/internal/outpost/ak/global.go index 957ca0e88..852cecead 100644 --- a/internal/outpost/ak/global.go +++ b/internal/outpost/ak/global.go @@ -31,7 +31,7 @@ func doGlobalSetup(outpost api.Outpost, globalConfig api.Config) { log.SetLevel(log.DebugLevel) } } else { - l.Debug("Managed outpost, not seting global log level") + l.Debug("Managed outpost, not setting global log level") } l.WithField("hash", constants.BUILD()).WithField("version", constants.VERSION).Info("Starting authentik outpost")