Sub topic 7
Rekor and the signature transparency log
This chapter assumes you can sign and verify an image with Cosign, and that you know what a keyless signing certificate from Fulcio is. It covers what Rekor records, why keyless signing depends on it, and how to inspect it.
Why keyless signing needs a log
A Fulcio certificate is valid for about ten minutes. By the time anyone verifies your image, the certificate has expired. An expired certificate normally means a failed check, so something must show that the signature was made while the certificate was still valid.
Rekor provides that proof. It is an append-only transparency log run by the Sigstore project. When Cosign signs, it sends the signature, the certificate and the image digest to Rekor. Rekor returns a signed timestamp called a signed entry timestamp (SET). Cosign stores the SET with the signature in the registry.
At verification time, Cosign checks that the Rekor timestamp falls inside the certificate's validity window. The expired certificate then counts as valid for that moment.
What a log entry contains
A Rekor entry is a record of a signing event. It holds:
- The hash of the signed artifact (the image digest).
- The signature.
- The signing certificate, or the public key for key-based signing.
- The time the entry was integrated into the log.
Rekor does not store your image. It stores only enough to show that a given identity signed a given digest.
How the log stays trustworthy
Rekor is built on a Merkle tree. Each new entry changes the tree's root hash. Anyone can request an inclusion proof, which shows that a specific entry is part of the tree at a given root. Because the log is append-only, quietly rewriting or deleting an old entry would change the root hashes that monitors have already seen.
Inspecting entries with the rekor-cli
The rekor-cli tool searches the log. You can look up entries by the image digest, which is the same value you sign.
# Install the CLI (requires Go)
go install github.com/sigstore/rekor/cmd/rekor-cli@latest
# Compute the SHA-256 of the signed payload digest and search for it
rekor-cli search --sha "sha256:<digest>"
# Show one entry by the UUID returned from the search
rekor-cli get --uuid <uuid> --format jsonThe search prints one or more entry UUIDs. The get command shows the entry's contents, including the certificate and its identity.
Controlling Rekor in Cosign
Cosign uses the public Rekor instance at https://rekor.sigstore.dev by default. You can change this behavior in a few ways:
| Situation | Option |
|---|---|
| Use a private Rekor instance | `--rekor-url https://rekor.internal.example.com` |
| Skip the log check during verification | `--insecure-ignore-tlog=true` |
| Skip uploading during signing | `--tlog-upload=false` |
Common errors
- No matching entries found in the transparency log. The signature was made with
--tlog-upload=false, or you are pointing at a different Rekor instance than the one used to sign. - Certificate expired errors during verification. The Rekor timestamp is missing or outside the validity window. Check that the signature was uploaded to the log.
- Rate limits or timeouts. The public instance is shared. Retry later, or run a private instance for heavy CI use.
Exercise
A keyless certificate from Fulcio expires after about ten minutes, yet a signature made last month still verifies. What does Cosign check in Rekor to allow this?
Show answer
Cosign checks the signed entry timestamp from Rekor. It shows the signature was logged while the certificate was still valid, so the expired certificate is accepted for that moment.
Exercise
A teammate signed an image keylessly with --tlog-upload=false. Verification fails with "no matching entries found in the transparency log." Why, and how could they avoid it?
Show answer
Verification expects a Rekor entry, and none was created. They should sign without disabling the log upload, or verify with --insecure-ignore-tlog=true only in testing. In an environment that cannot reach the public log, they should use a private Rekor instance on both sides.