providers/proxy: update traefik regex

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#1969
This commit is contained in:
Jens Langhammer 2021-12-20 22:43:58 +01:00
parent dfbf7027bc
commit 92b4244e81
3 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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,
)
),

View file

@ -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")