From c11be2284d337ec4440d49e869403a072301603b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 13 Dec 2021 15:05:55 +0100 Subject: [PATCH] outposts/proxy: also set max length for redis backend Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/session.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index 484629e20..2407a7577 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -19,6 +19,7 @@ func (a *Application) getStore(p api.ProxyOutpostConfig) sessions.Store { if err != nil { panic(err) } + rs.SetMaxLength(math.MaxInt64) if p.TokenValidity.IsSet() { t := p.TokenValidity.Get() // Add one to the validity to ensure we don't have a session with indefinite length