From d945d30cda5c028b6c92b0a7a695391341170921 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 15 Feb 2023 10:50:01 +0100 Subject: [PATCH] providers/proxy: fix value is too long with filesystem sessions closes #4693 Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/codecs/codec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/outpost/proxyv2/codecs/codec.go b/internal/outpost/proxyv2/codecs/codec.go index 472a25ed0..05fcdec87 100644 --- a/internal/outpost/proxyv2/codecs/codec.go +++ b/internal/outpost/proxyv2/codecs/codec.go @@ -1,6 +1,8 @@ package codecs import ( + "math" + "github.com/gorilla/securecookie" log "github.com/sirupsen/logrus" ) @@ -12,6 +14,7 @@ type Codec struct { func New(maxAge int, hashKey, blockKey []byte) *Codec { cookie := securecookie.New(hashKey, blockKey) cookie.MaxAge(maxAge) + cookie.MaxLength(math.MaxInt) return &Codec{ SecureCookie: cookie, }