From 25e34fda5fed89b37176654adfacbc5fc7572d01 Mon Sep 17 00:00:00 2001 From: Ramon de Klein Date: Wed, 6 Nov 2024 22:25:24 +0100 Subject: [PATCH] decompress audit log properly before sending to remote target (#20619) --- internal/store/queuestore.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/store/queuestore.go b/internal/store/queuestore.go index 1ee6278bb..2fb2ac475 100644 --- a/internal/store/queuestore.go +++ b/internal/store/queuestore.go @@ -242,6 +242,10 @@ func (store *QueueStore[I]) GetRaw(key Key) (raw []byte, err error) { return raw, os.ErrNotExist } + if key.Compress { + raw, err = s2.Decode(nil, raw) + } + return }