providers/proxy: fix defaults for traefik integration
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0d23796989
commit
b4963bec76
|
@ -20,9 +20,11 @@ class TraefikMiddlewareSpecForwardAuth:
|
||||||
|
|
||||||
address: str
|
address: str
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
authResponseHeadersRegex: str
|
authResponseHeadersRegex: str = field(default="")
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
trustForwardHeader: bool
|
authResponseHeaders: list[str] = field(default_factory=list)
|
||||||
|
# pylint: disable=invalid-name
|
||||||
|
trustForwardHeader: bool = field(default=True)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -108,6 +110,7 @@ class TraefikMiddlewareReconciler(KubernetesObjectReconciler[TraefikMiddleware])
|
||||||
spec=TraefikMiddlewareSpec(
|
spec=TraefikMiddlewareSpec(
|
||||||
forwardAuth=TraefikMiddlewareSpecForwardAuth(
|
forwardAuth=TraefikMiddlewareSpecForwardAuth(
|
||||||
address=f"http://{self.name}.{self.namespace}:9000/akprox/auth/traefik",
|
address=f"http://{self.name}.{self.namespace}:9000/akprox/auth/traefik",
|
||||||
|
authResponseHeaders=[],
|
||||||
authResponseHeadersRegex="^.*$",
|
authResponseHeadersRegex="^.*$",
|
||||||
trustForwardHeader=True,
|
trustForwardHeader=True,
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue