From 15611349fdb1097aa6c9254621497ac01e84dc75 Mon Sep 17 00:00:00 2001 From: Bob Callaway Date: Sat, 2 Nov 2024 17:52:41 -0400 Subject: [PATCH] base64 encode body Signed-off-by: Bob Callaway --- pkg/tle/tle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tle/tle.go b/pkg/tle/tle.go index e0a20639d..2ce2bac5d 100644 --- a/pkg/tle/tle.go +++ b/pkg/tle/tle.go @@ -124,7 +124,7 @@ func GenerateLogEntry(tle *rekor_pb.TransparencyLogEntry) models.LogEntry { } return models.LogEntry{ entryUUID: models.LogEntryAnon{ - Body: tle.CanonicalizedBody, + Body: base64.StdEncoding.EncodeToString(tle.CanonicalizedBody), IntegratedTime: swag.Int64(tle.IntegratedTime), LogID: swag.String(tle.LogId.String()), LogIndex: swag.Int64(tle.LogIndex),