From 15a9682a85e4f7b50a65a92b78cd1d79e347dd60 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 19 Jun 2026 11:52:28 +0200 Subject: [PATCH] pkg/e2e: fix malformed JWT in fixtures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixture was not a valid JWT; the first 2 elements decode, but the last one is malformed; echo 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9' | base64 -d {"alg":"HS256","typ":"JWT"}⏎ echo 'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ' | base64 -d {"sub":"1234567890","name":"John Doe","iat":1516239022⏎ echo 'SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw' | base64 -d I�J�IHNJ(]�O��lj~�:N�%_�u ,⏎ This causes problems if the JWT parser is strict and rejecting invalid JWT's. It was added in 55b5f233c2a1863e038e6c3e59ba1f79d948240f, and probably copied from an example, like https://github.com/knottx/JWTCodable#example-jwt-token, but the last 2 bytes were truncated. Signed-off-by: Sebastiaan van Stijn --- pkg/e2e/fixtures/publish/config.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/e2e/fixtures/publish/config.txt b/pkg/e2e/fixtures/publish/config.txt index 32501ce3ed9..157b7b5dd4c 100644 --- a/pkg/e2e/fixtures/publish/config.txt +++ b/pkg/e2e/fixtures/publish/config.txt @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw \ No newline at end of file +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c \ No newline at end of file