From 43854dc8283a2b81de698ccfcdd0bf7b9b67331b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 19 Jan 2023 18:22:55 +0100 Subject: [PATCH] outposts/proxy: fix panic due to IsSet misbehaving Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/application.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/outpost/proxyv2/application/application.go b/internal/outpost/proxyv2/application/application.go index 26aecbe61..7b20274aa 100644 --- a/internal/outpost/proxyv2/application/application.go +++ b/internal/outpost/proxyv2/application/application.go @@ -77,9 +77,8 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore }.Encode() managed := false - if ak.Outpost.Managed.IsSet() { - m := *ak.Outpost.Managed.Get() - managed = m == "goauthentik.io/outposts/embedded" + if m := ak.Outpost.Managed.Get(); m != nil { + managed = *m == "goauthentik.io/outposts/embedded" } // Configure an OpenID Connect aware OAuth2 client. endpoint := GetOIDCEndpoint(