From 0e3db348223d8017d391702c7c13f80ae4611479 Mon Sep 17 00:00:00 2001 From: Mitch Thomas Date: Fri, 18 Mar 2022 17:50:05 -0700 Subject: [PATCH] FUN.md broke when RecordObj changed to HashedRecordObj (#1633) * FUN.md broke when RecordObj changed to HashedRecordObj The breakage occured sometime on or before version 1.6 I found it when running this version: GitVersion: 1.6.0 GitCommit: 4b2c3c0c8ee97f31b9dac3859b40e0a48b8648ee GitTreeState: "clean" BuildDate: 2022-03-03T17:59:06Z GoVersion: go1.17.8 Compiler: gc Platform: darwin/amd64 Signed-off-by: Mitch Thomas * Included OpenSSF Best Practices Badge (#1628) - OpenSSF Best Practices Badge 94% Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> Signed-off-by: Mitch Thomas * FUN.md broke when RecordObj changed to HashedRecordObj The breakage occured sometime on or before version 1.6 I found it when running this version: GitVersion: 1.6.0 GitCommit: 4b2c3c0c8ee97f31b9dac3859b40e0a48b8648ee GitTreeState: "clean" BuildDate: 2022-03-03T17:59:06Z GoVersion: go1.17.8 Compiler: gc Platform: darwin/amd64 Signed-off-by: Mitch Thomas Co-authored-by: Naveen <172697+naveensrinivasan@users.noreply.github.com> --- FUN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FUN.md b/FUN.md index 57918d61d78..ad9b5473e6d 100644 --- a/FUN.md +++ b/FUN.md @@ -102,8 +102,8 @@ Now find it from the log: ``` $ uuid=$(rekor-cli search --artifact <(git rev-parse HEAD) | tail -n 1) -$ sig=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.RekordObj.signature.content) -$ cert=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.RekordObj.signature.publicKey.content) +$ sig=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.HashedRecordObj.signature.content) +$ cert=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.HashedRecordObj.signature.publicKey.content) $ cosign verify-blob --cert <(echo $cert | base64 --decode) --signature <(echo $sig) <(git rev-parse HEAD) Certificate is trusted by Fulcio Root CA