From d6b598c3b09cce0d8ea3513263f1f27263516357 Mon Sep 17 00:00:00 2001 From: Appu Goundan Date: Tue, 19 Nov 2024 21:56:45 -0500 Subject: [PATCH] Add support for verifying dsse-intoto - Verification should be able to correctly validate a bundle as cryptographically valid (VerificationOptions.empty()) - Verifiers may also include signer identity during verification - Verifiers should extract the embedded attestation to do further analysis on the attestation. Sigstore-java does not process those in any way - There is no signing options for DSSE bundles Signed-off-by: Appu Goundan --- .github/workflows/conformance.yml | 2 +- .../java/dev/sigstore/KeylessVerifier.java | 127 +++++++++++++++++- .../dev/sigstore/KeylessVerifierTest.java | 97 ++++++++++--- .../bundle.dsse.bad-signature.sigstore | 59 ++++++++ .../bundle.dsse.mismatched-envelope.sigstore | 40 ++++++ .../bundle.dsse.mismatched-signature.sigstore | 39 ++++++ 6 files changed, 336 insertions(+), 28 deletions(-) create mode 100644 sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.bad-signature.sigstore create mode 100644 sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-envelope.sigstore create mode 100644 sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-signature.sigstore diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index eb994d15..7b659ede 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -39,4 +39,4 @@ jobs: with: entrypoint: ${{ github.workspace }}/bin/sigstore-cli environment: ${{ matrix.sigstore-env }} - xfail: "test_verify_dsse_bundle_with_trust_root test_verify_in_toto_in_dsse_envelope" + xfail: "test_verify_dsse_bundle_with_trust_root" diff --git a/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java b/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java index 0640711c..30bf645c 100644 --- a/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java +++ b/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java @@ -22,7 +22,9 @@ import dev.sigstore.VerificationOptions.CertificateMatcher; import dev.sigstore.VerificationOptions.UncheckedCertificateException; import dev.sigstore.bundle.Bundle; +import dev.sigstore.bundle.Bundle.DsseEnvelope; import dev.sigstore.bundle.Bundle.MessageSignature; +import dev.sigstore.dsse.InTotoPayload; import dev.sigstore.encryption.certificates.Certificates; import dev.sigstore.encryption.signers.Verifiers; import dev.sigstore.fulcio.client.FulcioVerificationException; @@ -33,6 +35,8 @@ import dev.sigstore.rekor.client.RekorTypes; import dev.sigstore.rekor.client.RekorVerificationException; import dev.sigstore.rekor.client.RekorVerifier; +import dev.sigstore.rekor.dsse.v0_0_1.Dsse; +import dev.sigstore.rekor.dsse.v0_0_1.PayloadHash; import dev.sigstore.tuf.SigstoreTufClient; import java.io.IOException; import java.nio.charset.StandardCharsets; @@ -52,6 +56,7 @@ import java.util.List; import java.util.Objects; import java.util.stream.Collectors; +import org.bouncycastle.util.encoders.DecoderException; import org.bouncycastle.util.encoders.Hex; /** Verify hashrekords from rekor signed using the keyless signing flow with fulcio certificates. */ @@ -125,12 +130,9 @@ public void verify(Path artifact, Bundle bundle, VerificationOptions options) public void verify(byte[] artifactDigest, Bundle bundle, VerificationOptions options) throws KeylessVerificationException { - if (bundle.getDsseEnvelope().isPresent()) { - throw new KeylessVerificationException("Cannot verify DSSE signature based bundles"); - } - if (bundle.getMessageSignature().isEmpty()) { - // this should be unreachable - throw new IllegalStateException("Bundle must contain a message signature to verify"); + if (bundle.getDsseEnvelope().isEmpty() && bundle.getMessageSignature().isEmpty()) { + throw new IllegalStateException( + "Bundle must contain a message signature or DSSE envelope to verify"); } if (bundle.getEntries().isEmpty()) { @@ -182,7 +184,12 @@ public void verify(byte[] artifactDigest, Bundle bundle, VerificationOptions opt throw new KeylessVerificationException("Signing time was after certificate expiry", e); } - checkMessageSignature(bundle.getMessageSignature().get(), rekorEntry, artifactDigest, leafCert); + if (bundle.getMessageSignature().isPresent()) { // hashedrekord + checkMessageSignature( + bundle.getMessageSignature().get(), rekorEntry, artifactDigest, leafCert); + } else { // dsse + checkDsseEnvelope(rekorEntry, bundle.getDsseEnvelope().get(), artifactDigest, leafCert); + } } @VisibleForTesting @@ -255,4 +262,110 @@ void checkMessageSignature( throw new KeylessVerificationException("Unexpected rekor type", re); } } + + // do all dsse specific checks + void checkDsseEnvelope( + RekorEntry rekorEntry, + DsseEnvelope dsseEnvelope, + byte[] artifactDigest, + X509Certificate leafCert) + throws KeylessVerificationException { + + // verify the artifact is in the subject list of the envelope + if (!Objects.equals(InTotoPayload.PAYLOAD_TYPE, dsseEnvelope.getPayloadType())) { + throw new KeylessVerificationException( + "DSSE envelope must have payload type " + + InTotoPayload.PAYLOAD_TYPE + + ", but found '" + + dsseEnvelope.getPayloadType() + + "'"); + } + InTotoPayload payload = InTotoPayload.from(dsseEnvelope); + + // find one sha256 hash in the subject list that matches the artifact hash + if (payload.getSubject().stream() + .noneMatch( + subject -> { + if (subject.getDigest().containsKey("sha256")) { + try { + var digestBytes = Hex.decode(subject.getDigest().get("sha256")); + return Arrays.equals(artifactDigest, digestBytes); + } catch (DecoderException de) { + // ignore (assume false) + } + } + return false; + })) { + var providedHashes = + payload.getSubject().stream() + .map(s -> s.getDigest().getOrDefault("sha256", "no-sha256-hash")) + .collect(Collectors.joining(",", "[", "]")); + + throw new KeylessVerificationException( + "Provided artifact digest does not match any subject sha256 digests in DSSE payload" + + "\nprovided(hex) : " + + Hex.toHexString(artifactDigest) + + "\nverification : " + + providedHashes); + } + + // verify the dsse signature + if (dsseEnvelope.getSignatures().size() != 1) { + throw new KeylessVerificationException( + "DSSE envelope must have exactly 1 signature, but found: " + + dsseEnvelope.getSignatures().size()); + } + try { + if (!Verifiers.newVerifier(leafCert.getPublicKey()) + .verify(dsseEnvelope.getPAE(), dsseEnvelope.getSignature())) { + throw new KeylessVerificationException("DSSE signature was not valid"); + } + } catch (NoSuchAlgorithmException | InvalidKeyException ex) { + throw new RuntimeException(ex); + } catch (SignatureException se) { + throw new KeylessVerificationException("Signature could not be processed", se); + } + + // check if the digest over the dsse payload matches the digest in the rekorEntry + Dsse rekorDsse; + try { + rekorDsse = RekorTypes.getDsse(rekorEntry); + } catch (RekorTypeException re) { + throw new KeylessVerificationException("Unexpected rekor type", re); + } + + var algorithm = rekorDsse.getPayloadHash().getAlgorithm(); + if (algorithm != PayloadHash.Algorithm.SHA_256) { + throw new KeylessVerificationException( + "Cannot process DSSE entry with hashing algorithm " + algorithm.toString()); + } + + byte[] payloadDigest; + try { + payloadDigest = Hex.decode(rekorDsse.getPayloadHash().getValue()); + } catch (DecoderException de) { + throw new KeylessVerificationException( + "Could not decode hex sha256 artifact hash in hashrekord", de); + } + + byte[] calculatedDigest = Hashing.sha256().hashBytes(dsseEnvelope.getPayload()).asBytes(); + if (!Arrays.equals(calculatedDigest, payloadDigest)) { + throw new KeylessVerificationException( + "Digest of DSSE payload in bundle does not match DSSE payload digest in log entry"); + } + + // check if the signature over the dsse payload matches the signature in the rekorEntry + if (rekorDsse.getSignatures().size() != 1) { + throw new KeylessVerificationException( + "DSSE log entry must have exactly 1 signature, but found: " + + rekorDsse.getSignatures().size()); + } + + if (!Base64.getEncoder() + .encodeToString(dsseEnvelope.getSignature()) + .equals(rekorDsse.getSignatures().get(0).getSignature())) { + throw new KeylessVerificationException( + "Provided DSSE signature materials are inconsistent with DSSE log entry"); + } + } } diff --git a/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java b/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java index bdee62b6..db6f9d08 100644 --- a/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java +++ b/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java @@ -16,6 +16,7 @@ package dev.sigstore; import com.google.common.collect.ImmutableList; +import com.google.common.hash.Hashing; import com.google.common.io.Resources; import dev.sigstore.VerificationOptions.CertificateMatcher; import dev.sigstore.bundle.Bundle; @@ -27,8 +28,14 @@ import java.nio.file.Path; import java.security.cert.X509Certificate; import java.util.List; +import java.util.stream.Stream; +import org.hamcrest.CoreMatchers; +import org.hamcrest.MatcherAssert; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; public class KeylessVerifierTest { @@ -105,26 +112,6 @@ public void testVerify_badCheckpointSignature() throws Exception { VerificationOptions.empty())); } - @Test - public void testVerify_errorsOnDSSEBundle() throws Exception { - var bundleFile = - Resources.toString( - Resources.getResource("dev/sigstore/samples/bundles/bundle.dsse.sigstore"), - StandardCharsets.UTF_8); - var artifact = Resources.getResource("dev/sigstore/samples/bundles/artifact.txt").getPath(); - - var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); - var ex = - Assertions.assertThrows( - KeylessVerificationException.class, - () -> - verifier.verify( - Path.of(artifact), - Bundle.from(new StringReader(bundleFile)), - VerificationOptions.empty())); - Assertions.assertEquals("Cannot verify DSSE signature based bundles", ex.getMessage()); - } - @Test public void testVerify_canVerifyV01Bundle() throws Exception { // note that this v1 bundle contains an inclusion proof @@ -231,4 +218,74 @@ public void verifyCertificateMatches_noneMatch() throws Exception { "No provided certificate identities matched values in certificate: [{issuer:'String: not-match',san:'String: not-match'},{issuer:'String: not-match-again',san:'String: not-match-again'}]", ex.getMessage()); } + + @Test + public void testVerify_dsseBundle() throws Exception { + var bundleFile = + Resources.toString( + Resources.getResource("dev/sigstore/samples/bundles/bundle.dsse.sigstore"), + StandardCharsets.UTF_8); + var artifact = Resources.getResource("dev/sigstore/samples/bundles/artifact.txt").getPath(); + + var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); + verifier.verify( + Path.of(artifact), Bundle.from(new StringReader(bundleFile)), VerificationOptions.empty()); + } + + static Stream badDsseProvider() { + return Stream.of( + Arguments.arguments("bundle.dsse.bad-signature.sigstore", "DSSE signature was not valid"), + Arguments.arguments( + "bundle.dsse.mismatched-envelope.sigstore", + "Digest of DSSE payload in bundle does not match DSSE payload digest in log entry"), + Arguments.arguments( + "bundle.dsse.mismatched-signature.sigstore", + "Provided DSSE signature materials are inconsistent with DSSE log entry")); + } + + @ParameterizedTest + @MethodSource("badDsseProvider") + public void testVerify_dsseBundleBadSignature(String bundleName, String expectedError) + throws Exception { + var bundleFile = + Resources.toString( + Resources.getResource("dev/sigstore/samples/bundles/" + bundleName), + StandardCharsets.UTF_8); + var artifact = Resources.getResource("dev/sigstore/samples/bundles/artifact.txt").getPath(); + var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); + + var ex = + Assertions.assertThrows( + KeylessVerificationException.class, + () -> + verifier.verify( + Path.of(artifact), + Bundle.from(new StringReader(bundleFile)), + VerificationOptions.empty())); + Assertions.assertEquals(expectedError, ex.getMessage()); + } + + @Test + public void testVerify_dsseBundleArtifactNotInSubjects() throws Exception { + var bundleFile = + Resources.toString( + Resources.getResource("dev/sigstore/samples/bundles/bundle.dsse.sigstore"), + StandardCharsets.UTF_8); + var badArtifactDigest = + Hashing.sha256().hashString("nonsense", StandardCharsets.UTF_8).asBytes(); + var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); + + var ex = + Assertions.assertThrows( + KeylessVerificationException.class, + () -> + verifier.verify( + badArtifactDigest, + Bundle.from(new StringReader(bundleFile)), + VerificationOptions.empty())); + MatcherAssert.assertThat( + ex.getMessage(), + CoreMatchers.startsWith( + "Provided artifact digest does not match any subject sha256 digests in DSSE payload")); + } } diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.bad-signature.sigstore b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.bad-signature.sigstore new file mode 100644 index 00000000..52d28cda --- /dev/null +++ b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.bad-signature.sigstore @@ -0,0 +1,59 @@ +{ + "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json", + "verificationMaterial": { + "tlogEntries": [ + { + "logIndex": "150322684", + "logId": { + "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0=" + }, + "kindVersion": { + "kind": "dsse", + "version": "0.0.1" + }, + "integratedTime": "1732135425", + "inclusionPromise": { + "signedEntryTimestamp": "MEUCIF/Y+XbEXKAblX/ohWp+wXIff65mYTzEUf+p557ocUEZAiEAjSHzJCkwJPP+8YF6bvmpuEl+sXb84RL1wf9zVnfLns4=" + }, + "inclusionProof": { + "logIndex": "28418422", + "rootHash": "+QIOalcm4FuDhJj9qII/2u9Nypdzjk0c9NK7hGTgac8=", + "treeSize": "28418423", + "hashes": [ + "wB0Bax3k2EbrDhHe/Am7xWtmsX0kV75PD38gAOQ6V/4=", + "ljcbev25ePyz7Ns8nCGnARFqCQ9gEy0J6nZLllEjx5w=", + "gSbCTgtyNMJHo+eX5BrdCm2lViZxYwdu3F0QVBhcxj8=", + "GdXev4gNvvFgWH0cLpbpKAYhfflAN2k4JyWFw9O5hts=", + "QamBghNmsUsGreZ9zxBhz7ynJzdS8Wt34XSWduDhJe4=", + "QmKt9GDPnFWd2pjpwiF9anMwu0zKnqqd9uSsS+Ghm0E=", + "zGmHsTSEnYk656ZFm3nFkDh/8cEiIYAqh1zD7l6Wl5M=", + "ggdeKtYR4Qf6kMEDhKtGxCnbgcZzb3YtF3fczGIjWCI=", + "iF6rmo01zrn23pMgcPKlXOufqui4F8Q1+hj8PHL6XuY=", + "bulsENariUUsC4xiR1yFtqKzD8evI9p/s+YCpl8t9tE=", + "E2rLOYPJFKiizYiyu07QLqkMVTVL7i2ZgXiQywdI9KQ=", + "4lUF0YOu9XkIDXKXA0wMSzd6VeDY3TZAgmoOeWmS2+Y=", + "gf+9m552B3PnkWnO0o4KdVvjcT3WVHLrCbf1DoVYKFw=" + ], + "checkpoint": { + "envelope": "rekor.sigstore.dev - 1193050959916656506\n28418423\n+QIOalcm4FuDhJj9qII/2u9Nypdzjk0c9NK7hGTgac8=\n\n— rekor.sigstore.dev wNI9ajBGAiEA5TnJBQi/DYgn5WvcQvZi0q5tlOF/h3sxLW2n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GY1ZiJ9fV19LCJydW5EZXRhaWxzIjp7ImJ1aWxkZXIiOnsiaWQiOiJodHRwczovL2dpdGh1Yi5jb20vbG9vc2ViYXpvb2thL2FhLXRlc3QvLmdpdGh1Yi93b3JrZmxvd3MvcHJvdmVuYW5jZS55YW1sQHJlZnMvaGVhZHMvbWFpbiJ9LCJtZXRhZGF0YSI6eyJpbnZvY2F0aW9uSWQiOiJodHRwczovL2dpdGh1Yi5jb20vbG9vc2ViYXpvb2thL2FhLXRlc3QvYWN0aW9ucy9ydW5zLzExOTQxNDI1NDg3L2F0dGVtcHRzLzEifX19fQ==", + "payloadType": "application/vnd.in-toto+json", + "signatures": [ + { + "sig": "MEUCIQDVGpVLsvEY3lps62cLGzmzgOVRcggySLpARNl9ZEjzcQIgJYViDku7E0JgYI2tODmMiqa5Xz9eELpTlpw/RpJdkWM=" + } + ] + } +} diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-envelope.sigstore b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-envelope.sigstore new file mode 100644 index 00000000..76060c01 --- /dev/null +++ b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-envelope.sigstore @@ -0,0 +1,40 @@ +{ + "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json", + "verificationMaterial": { + "tlogEntries": [{ + "logIndex": "156089099", + "logId": { + "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0=" + }, + "kindVersion": { + "kind": "dsse", + "version": "0.0.1" + }, + "integratedTime": "1734460216", + "inclusionPromise": { + "signedEntryTimestamp": "MEYCIQDbzb2mPfs/3A2cQWLDEbngPOruICqy1CwktV7bBaOz8AIhAJuXsBDEDZGN03dUUA01DFEo+UKCvV0MjXFVxuv+fMG1" + }, + "inclusionProof": { + "logIndex": "34184837", + "rootHash": "h+uTHnmhRthHyEykI35LBpupx096EPne9qfCMjRs58A=", + "treeSize": "34184838", + "hashes": ["yAj2XoBBnnZtLHitjAmb0lrWjzDgLkM7fS4Y4XiQYm4=", "lqByJgYL504ZcdBzSFUX6KUGPzv5o3nJH2zFLoD6p5I=", "wV+sNXCuELJvFB3rTc1xyTxg5XwWdLfAQ3KN8Fc+eHQ=", "wxbb2V5jq9ySAeB3egh3GdfrtNHQYDONET84eBQ7heg=", "HLj2ftagsmzEwhN0rdNAWd5Duh3lrjko9X/VJUfDoJ8=", "WTpORmF5gtpCjxeiDxDD7tvHUQhuKuccghhnEy4VrEQ=", "jWnC/yvGeo5CDmJskxAOD4kalvM177IaTREmNjwU6AU=", "zolBysv32KjamhalYTUjYaNKCBj86A+cjAcDGWqXimg=", "m0BAGFaYCQ+uwgir4xHplACVCJtnh38ODeFI6vfBcPI=", "oj35HyCM3EqQ5Lil2RUr9boiRWZlouxLnqNA7z28Glc=", "vemyaMj0Na1LMjbB/9Dmkq8T+jAb3o+yCESgAayUABU="], + "checkpoint": { + "envelope": "rekor.sigstore.dev - 1193050959916656506\n34184838\nh+uTHnmhRthHyEykI35LBpupx096EPne9qfCMjRs58A\u003d\n\n— rekor.sigstore.dev wNI9ajBFAiAGUtnJqTJK5s8BwUcJnLPgarlTImr9TDEFe6/5xesgbwIhAOTG/EgriQrMeXSAkZ7SFrmdSEWfRFXntXoPYXgv/YmD\n" + } + }, + "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiNDhmYzUxYWUyM2Q4ZmFkYWVmYmE3NmEyNjdiMDAzMjEwODFlYzhiMDNmMzgxOTUwMGU3YjdiZTBhMWRkMWUwMCJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6ImQ2YjIwOWJhOWRkZTNiMWVlNWVkZWJiODhkMWIxYjkxN2I3MmVlY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dGh1Yi5jb20vbG9vc2ViYXpvb2thL2FhLXRlc3QvYWN0aW9ucy9ydW5zLzEyMzU5Njg0MzYwL2F0dGVtcHRzLzEifX19fQ==", + "payloadType": "application/vnd.in-toto+json", + "signatures": [{ + "sig": "MEYCIQCC6Gv3aS/Q9+XI/o/HxAgKjjt0tHoabaJusi5x5chkzQIhAPJJcgOK3CKvRQsxJ0V4BjLWW+8keUearc5ssoXD4XLD" + }] + } +} diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-signature.sigstore b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-signature.sigstore new file mode 100644 index 00000000..c2ae3d8b --- /dev/null +++ b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.dsse.mismatched-signature.sigstore @@ -0,0 +1,39 @@ +{ + "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json", + "verificationMaterial": { + "tlogEntries": [{ + "logIndex": "155690847", + "logId": { + "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0=" + }, + "kindVersion": { + "kind": "dsse", + "version": "0.0.1" + }, + "integratedTime": "1734374575", + "inclusionPromise": { + "signedEntryTimestamp": "MEQCIGp3FKerIrGe5Au3uwZRAT7D0x+pWPmFf1c/aV1Q61e/AiAfYC0ZDNjMvbOJwy2EeiJ9R12C7OFp4nQLZ7C2nc2GQA==" + }, + "inclusionProof": { + "logIndex": "33786585", + "rootHash": "zEUC+VAgcy67UjNF5JAUcD9VLh84zlA7FgyQ44g/xlc=", + "treeSize": "33786586", + "hashes": ["PkY1o+JNOCXILlaRgRiwTQjERQg7BrgzvVbfhLIptvk=", "LqJ6VR40OBMQNjRn6sn2DzvPdl76UUyFj56I695HwMk=", "Vxih0ldCkuFOL7gFpnMZn63gf4ZVXyiUcpyH/R8YLkg=", "nHK3j3FND9FC7uvQdHYJgKVDyR9N2AtArGfXVjQY2xc=", "4i2Tj1XenNGuqU3tN0Zb5KoZrofm5DBc7WPx2eoSB9w=", "dXh7opvcxmvCuvcVkAs86LxwbZAU1jSctRCqRU8Q4mU=", "okgFF97IJzSevHDb33Gmgh9sEx+rbLdH1af2cAQ/g8w=", "6H6mnKt2PWDidTIzPMaoC9qi3plLA3oEB+D60VvELb4=", "kiIhmpBZ1MDSamluBRFBrPRnOMLjU+xZQWrIXKb7M4k=", "5JmbBBo8NzMcPnxvAqL71GRLxMAWvsQi6XiyKtu013g=", "vemyaMj0Na1LMjbB/9Dmkq8T+jAb3o+yCESgAayUABU="], + "checkpoint": { + "envelope": "rekor.sigstore.dev - 1193050959916656506\n33786586\nzEUC+VAgcy67UjNF5JAUcD9VLh84zlA7FgyQ44g/xlc\u003d\n\n— rekor.sigstore.dev wNI9ajBGAiEA8o/y2cOBhdMP1boAKjhGn/AuhvZL5kFX+iMuubABgMgCIQCXprxECNexOezj+gXR5QAOtofw4+1KUIo/6Yts1ow7qA\u003d\u003d\n" + } + }, + "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiOTBiNWUzY2NlMzlmZWU3ZjZjODNmMmRmZTJlMzY0NWEyNzEwZDMzMzlhN2Q5YWZhNDIxODg5ZmQ0YjAwOWEwZSJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6ImQ2YjIwOWJhOWRkZTNiMWVlNWVkZWJiODhkMWIxYjkxN2I3MmVlYjYxNDMyOGU3YmE2NjdmNWI3YWI3MGU5ODcifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVVQ0lFMVJ1empFeWxpMnJ3UWc4MjY3MEJzdzZNNWdpZWxzbjdlQTdieHRRSmZiQWlFQWpIdFhMUjl6dWx1QXZlOXpDZzd4amhaN1pOVThiUTl6Um5qVnhxZ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