From 8180d6f9e8b1998fa48cd6193be41235403eaab5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 8 Aug 2021 16:29:33 +0200 Subject: [PATCH] outposts: don't override authentik_host for embedded outpost authentik_host Signed-off-by: Jens Langhammer --- authentik/outposts/managed.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/authentik/outposts/managed.py b/authentik/outposts/managed.py index e5f915b2a..e8238a92e 100644 --- a/authentik/outposts/managed.py +++ b/authentik/outposts/managed.py @@ -1,12 +1,9 @@ """Outpost managed objects""" -from dataclasses import asdict - from authentik.managed.manager import EnsureExists, ObjectManager from authentik.outposts.models import ( DockerServiceConnection, KubernetesServiceConnection, Outpost, - OutpostConfig, OutpostType, ) @@ -33,14 +30,12 @@ class OutpostManager(ObjectManager): created_callback=outpost_created, name="authentik Embedded Outpost", type=OutpostType.PROXY, - _config=asdict( - OutpostConfig( - authentik_host="", - kubernetes_disabled_components=[ - "deployment", - "secret", - ], - ) - ), + _config={ + # We don't use OutpostConfig here to not override authentik_host + "kubernetes_disabled_components": [ + "deployment", + "secret", + ], + }, ), ]