diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index cd125a34..50a04ffd 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -31,6 +31,6 @@ jobs: - name: Unpack sigstore-java distribution run: tar -xvf ${{ github.workspace }}/sigstore-cli/build/distributions/sigstore-cli-*.tar --strip-components 1 - - uses: sigstore/sigstore-conformance@064fb32a890c30235f305281f3509c5e65e6f9e5 # tag=v0.0.4 + - uses: sigstore/sigstore-conformance@1abc82cdefe80bd907855d8447f903ba8b4918e0 # v0.0.6 with: entrypoint: ${{ github.workspace }}/bin/sigstore-cli diff --git a/sigstore-cli/src/main/java/dev/sigstore/cli/Verify.java b/sigstore-cli/src/main/java/dev/sigstore/cli/Verify.java index 5dd47fb4..ce3c0926 100644 --- a/sigstore-cli/src/main/java/dev/sigstore/cli/Verify.java +++ b/sigstore-cli/src/main/java/dev/sigstore/cli/Verify.java @@ -36,7 +36,10 @@ import picocli.CommandLine.Option; import picocli.CommandLine.Parameters; -@Command(name = "verify", description = "verify an artifact") +@Command( + name = "verify", + aliases = {"verify-bundle"}, + description = "verify an artifact") public class Verify implements Callable { @Parameters(arity = "1", paramLabel = "", description = "artifact to verify") Path artifact; @@ -52,19 +55,20 @@ static class Policy { names = {"--certificate-identity"}, description = "subject alternative name in certificate", required = true) - private String certificateSan; + String certificateSan; @Option( names = {"--certificate-oidc-issuer"}, description = "sigstore issuer in certificate", required = true) - private String certificateIssuer; + String certificateIssuer; } @Override public Integer call() throws Exception { byte[] digest = asByteSource(artifact.toFile()).hash(Hashing.sha256()).asBytes(); - KeylessSignature keylessSignature = null; + KeylessSignature keylessSignature; + if (signatureFiles.sigAndCert != null) { byte[] signature = Files.readAllBytes(signatureFiles.sigAndCert.signatureFile); CertPath certPath = @@ -85,7 +89,7 @@ public Integer call() throws Exception { .subjectAlternativeName(policy.certificateSan) .build()); } - var verificationOptions = verificationOptionsBuilder.isOnline(true).build(); + var verificationOptions = verificationOptionsBuilder.isOnline(false).build(); var verifier = new KeylessVerifier.Builder().sigstorePublicDefaults().build(); verifier.verify( diff --git a/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java b/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java index c3daa183..1ba5a483 100644 --- a/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java +++ b/sigstore-java/src/main/java/dev/sigstore/KeylessVerifier.java @@ -179,16 +179,42 @@ public void verify(byte[] artifactDigest, KeylessVerificationRequest request) var signature = request.getKeylessSignature().getSignature(); - var rekorEntry = - request.getVerificationOptions().isOnline() - ? getEntryFromRekor(artifactDigest, leafCert, signature) - : request - .getKeylessSignature() - .getEntry() - .orElseThrow( - () -> - new KeylessVerificationException( - "No rekor entry was provided for offline verification")); + // logic is a bit convoluted for obtaining rekor entry + // 1. if we're in "online mode": + // a. grab the entry to use for verification + // b. if an entry was also provided directly to this library, verify it is valid and the + // "same" as the one we obtained from rekor. SETs will be different because rekor can + // generate those using a non-idempotent signer + // 2. if we're in offline mode, ensure an entry was provided + + RekorEntry rekorEntry = null; + if (request.getVerificationOptions().isOnline()) { + rekorEntry = getEntryFromRekor(artifactDigest, leafCert, signature); + if (request.getKeylessSignature().getEntry().isPresent()) { + var provided = request.getKeylessSignature().getEntry().get(); + if (!Arrays.equals( + rekorEntry.getSignableContent(), + request.getKeylessSignature().getEntry().get().getSignableContent())) { + throw new KeylessVerificationException( + "Entry obtained from rekor does not match provided entry"); + } + // verify the provided rekor entry is valid even if we are in online mode + try { + rekorVerifier.verifyEntry(provided); + } catch (RekorVerificationException ex) { + throw new KeylessVerificationException("Rekor entry signature was not valid"); + } + } + } else { + rekorEntry = + request + .getKeylessSignature() + .getEntry() + .orElseThrow( + () -> + new KeylessVerificationException( + "No rekor entry was provided for offline verification")); + } // verify the rekor entry is signed by the log keys try { diff --git a/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java b/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java new file mode 100644 index 00000000..ee4ed4f4 --- /dev/null +++ b/sigstore-java/src/test/java/dev/sigstore/KeylessVerifierTest.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 The Sigstore Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package dev.sigstore; + +import com.google.common.io.Resources; +import dev.sigstore.KeylessVerificationRequest.VerificationOptions; +import dev.sigstore.bundle.BundleFactory; +import java.io.StringReader; +import java.nio.charset.StandardCharsets; +import java.nio.file.Path; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; + +public class KeylessVerifierTest { + + @ParameterizedTest + @ValueSource(booleans = {true, false}) + public void testVerify(boolean isOnline) throws Exception { + var bundleFile = + Resources.toString( + Resources.getResource("dev/sigstore/samples/bundles/bundle.sigstore"), + StandardCharsets.UTF_8); + var artifact = Resources.getResource("dev/sigstore/samples/bundles/artifact.txt").getPath(); + + var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); + var verificationReq = + KeylessVerificationRequest.builder() + .keylessSignature(BundleFactory.readBundle(new StringReader(bundleFile))) + .verificationOptions(VerificationOptions.builder().isOnline(isOnline).build()) + .build(); + verifier.verify(Path.of(artifact), verificationReq); + } + + @ParameterizedTest + @ValueSource(booleans = {true, false}) + public void testVerify_mismatchedSet(boolean isOnline) throws Exception { + // a bundle file where the SET is replaced with a valid SET for another artifact + var bundleFile = + Resources.toString( + Resources.getResource( + "dev/sigstore/samples/bundles/bundle-with-mismatched-set.sigstore"), + StandardCharsets.UTF_8); + var artifact = Resources.getResource("dev/sigstore/samples/bundles/artifact.txt").getPath(); + + var verifier = KeylessVerifier.builder().sigstorePublicDefaults().build(); + var verificationReq = + KeylessVerificationRequest.builder() + .keylessSignature(BundleFactory.readBundle(new StringReader(bundleFile))) + .verificationOptions(VerificationOptions.builder().isOnline(isOnline).build()) + .build(); + Assertions.assertThrows( + KeylessVerificationException.class, + () -> verifier.verify(Path.of(artifact), verificationReq)); + } +} diff --git a/sigstore-java/src/test/java/dev/sigstore/fulcio/client/FulcioVerifierTest.java b/sigstore-java/src/test/java/dev/sigstore/fulcio/client/FulcioVerifierTest.java index b638b642..9dd0429b 100644 --- a/sigstore-java/src/test/java/dev/sigstore/fulcio/client/FulcioVerifierTest.java +++ b/sigstore-java/src/test/java/dev/sigstore/fulcio/client/FulcioVerifierTest.java @@ -62,7 +62,7 @@ public static void loadResources() throws IOException { bundleFile = Resources.toString( - Resources.getResource("dev/sigstore/samples/bundles/bundle-with-leaf-cert.sigstore"), + Resources.getResource("dev/sigstore/samples/bundles/bundle.sigstore"), StandardCharsets.UTF_8); } diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/artifact.txt b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/artifact.txt new file mode 100644 index 00000000..52c1fa7a --- /dev/null +++ b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/artifact.txt @@ -0,0 +1,5 @@ +DO NOT MODIFY ME! + +this is "a.txt", a sample input for sigstore-conformance's test suite. + +DO NOT MODIFY ME! diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle-with-mismatched-set.sigstore b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle-with-mismatched-set.sigstore new file mode 100644 index 00000000..6fa7757b --- /dev/null +++ b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle-with-mismatched-set.sigstore @@ -0,0 +1 @@ +{"mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.1", "verificationMaterial": {"x509CertificateChain": {"certificates": [{"rawBytes": "MIIIGTCCB5+gAwIBAgIUBPWs4OPN1kte0mUMGZrZ6ozMVRkwC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U3Y2U2MDM2ZThkOTBjNDAhBgorBgEEAYO/MAEUBBMMEXdvcmtmbG93X2Rpc3BhdGNoMIGBBgorBgEEAYO/MAEVBHMMcWh0dHBzOi8vZ2l0aHViLmNvbS9zaWdzdG9yZS1jb25mb3JtYW5jZS9leHRyZW1lbHktZGFuZ2Vyb3VzLXB1YmxpYy1vaWRjLWJlYWNvbi9hY3Rpb25zL3J1bnMvNTUzMzc0MTQ5Ny9hdHRlbXB0cy8xMIGKBgorBgEEAdZ5AgQCBHwEegB4AHYA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGJStGTCwAABAMARzBFAiBCA4jZQP4CwMiWoeS7WMW46QkI4e7OsNH3yVhf5wdBvgIhAPJYxdsi9NqOXVZsEUtCup8m1m/2zG39FTGlgE0MorDFMAoGCCqGSM49BAMDA2gAMGUCMEYWRwI5QJeOwNCuV4tnZ0n5QNlUlP0BtX5V2ZTQLqcQbWtneC7tLptiYgr0Z62UDQIxAO6ItXAH+sbZcsbj08xr3GApM6hjvyTAl39pS3Y3sZwAz8lfQDHNL4eALEo1heAYVg=="}]}, "tlogEntries": [{"logIndex": "27246492", "logId": {"keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="}, "kindVersion": {"kind": "hashedrekord", "version": "0.0.1"}, "integratedTime": "1689177396", "inclusionPromise": {"signedEntryTimestamp": "MEYCIQD4cnKdU4nfajoRoG033TPGqGfVn9kkHvIduZlVyHkwsgIhANFCGXm5GPzrDRw7g9+66CfiEBalWAf4VcnnnOBEdTGD"}, "inclusionProof": {"logIndex": "23083061", "rootHash": "dauhleYK4YyAdxwwDtR0l0KnSOWZdG2bwqHftlanvcI=", "treeSize": "23083062", "hashes": ["/vK4Da3g7ZhRgme8FxCi8QIBL7DSlwpSwyERyIV+uS8=", "k9N2htTx+7tA55tT0tiB/BO4uqaqSxqTV34ouZgCBWk=", "/ArdEa96pCZQOyrxyKhOHxd2HHEsXBldxS8p23CNIkk=", "5GQbI53IAmYSDjLtEjG0PNzp0hk2+W/eEkCbJlNqTKc=", "O86OnjaE1s+pcHWna1/xdeZ7ubCXgVmtV1f7nWlWYLI=", "Hj0TEef/bwMHB10DPoFLu5+RSLTGJ5YRaQWqwwVIp0s=", "aRtyVlt3GYDP4qaYrEAWqiGqcYDELxyk7Fl3icGXOoA=", "ZdynT2d4F3NFQNBurFDaZBoYMVRjbQjlTnSL1hL67+s=", "3VHoQOiS1wCTrX4dseLeo9UDNMc0XTYORE0i/Entn14=", "rXEsmEJN4PEoTU8US4qVtdIsGB1MCiRlGOepoiC99kM="], "checkpoint": {"envelope": "rekor.sigstore.dev - 2605736670972794746\n23083062\ndauhleYK4YyAdxwwDtR0l0KnSOWZdG2bwqHftlanvcI=\nTimestamp: 1689177396617352539\n\n\u2014 rekor.sigstore.dev wNI9ajBFAiBxaGyEtxkzFLkaCSEJqFuSS3dJjEZCNiyByVs1CNVQ8gIhAOoNnXtmMtTctV2oRnSRUZAo4EWUYPK/vBsqOzAU6TMs\n"}}, "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiJhMGNmYzcxMjcxZDZlMjc4ZTU3Y2QzMzJmZjk1N2MzZjcwNDNmZGRhMzU0YzRjYmIxOTBhMzBkNTZlZmEwMWJmIn19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1FUUNJRk9wYVhLV3Z2QkR3VGhEalRIWDd0RkY4bGlSb1N4TFpJc1Nlb1VNLzZENEFpQnhWOS9SblRNTXcxdDZubmlYMHJDdXdyZjhWaCtmZUxGdTk5bTRpciszeUE9PSIsInB1YmxpY0tleSI6eyJjb250ZW50IjoiTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVbEhWRU5EUWpVclowRjNTV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hod1dYa3hkbUZYVW1vS1RGZEtiRmxYVG5aaWFUbG9XVE5TY0dJeU5YcE1NMG94WW01TmRrNVVWWHBOZW1Nd1RWUlJOVTU1T1doa1NGSnNZbGhDTUdONU9IaE5TVWRMUW1kdmNncENaMFZGUVdSYU5VRm5VVU5DU0hkRlpXZENORUZJV1VFelZEQjNZWE5pU0VWVVNtcEhValJqYlZkak0wRnhTa3RZY21wbFVFc3pMMmcwY0hsblF6aHdDamR2TkVGQlFVZEtVM1JIVkVOM1FVRkNRVTFCVW5wQ1JrRnBRa05CTkdwYVVWQTBRM2ROYVZkdlpWTTNWMDFYTkRaUmEwazBaVGRQYzA1SU0zbFdhR1lLTlhka1FuWm5TV2hCVUVwWmVHUnphVGxPY1U5WVZscHpSVlYwUTNWd09HMHhiUzh5ZWtjek9VWlVSMnhuUlRCTmIzSkVSazFCYjBkRFEzRkhVMDAwT1FwQ1FVMUVRVEpuUVUxSFZVTk5SVmxYVW5kSk5WRktaVTkzVGtOMVZqUjBibG93YmpWUlRteFZiRkF3UW5SWU5WWXlXbFJSVEhGalVXSlhkRzVsUXpkMENreHdkR2xaWjNJd1dqWXlWVVJSU1hoQlR6WkpkRmhCU0N0ellscGpjMkpxTURoNGNqTkhRWEJOTm1ocWRubFVRV3d6T1hCVE0xa3pjMXAzUVhvNGJHWUtVVVJJVGt3MFpVRk1SVzh4YUdWQldWWm5QVDBLTFMwdExTMUZUa1FnUTBWU1ZFbEdTVU5CVkVVdExTMHRMUW89In19fX0="}]}, "messageSignature": {"messageDigest": {"algorithm": "SHA2_256", "digest": "oM/HEnHW4njlfNMy/5V8P3BD/do1TEy7GQow1W76Ab8="}, "signature": "MEQCIFOpaXKWvvBDwThDjTHX7tFF8liRoSxLZIsSeoUM/6D4AiBxV9/RnTMMw1t6nniX0rCuwrf8Vh+feLFu99m4ir+3yA=="}} diff --git a/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle-with-leaf-cert.sigstore b/sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.sigstore similarity index 100% rename from sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle-with-leaf-cert.sigstore rename to sigstore-java/src/test/resources/dev/sigstore/samples/bundles/bundle.sigstore