Immutable Transparency Logs with Sigstore Rekor

Sign and log an artifact in Sigstore's public Rekor transparency log with rekor-cli, verify it, then run your own Rekor server with Docker Compose.

Sigstore logo
source: sigstore.dev

Sigstore, a Linux Foundation project, is an open-source project for signing, verifying and protecting software. It offers a set of tools for developers to sign software releases, and for users to verify the signatures - see my post on sigstore for an overall primer and this post for a deep dive on cosign. In this post, I'll discuss another one of the core technologies that sigstore relies upon - Rekor.

💡
Updated November 2026. Sigstore released Rekor v2 (also called rekor-tiles) in October 2025. It's a redesigned, cheaper-to-run log. In June 2026 the project said the public instance at rekor.sigstore.dev will keep using Rekor v1 by default for the foreseeable future. This tutorial uses Rekor v1, which rekor-cli talks to. See the end of the post for what changes in v2.

What is Rekor?

Cosign helps to sign software artifacts and verify the signatures, and Fulcio issues short-lived signing certificates tied to an identity, such as an email address or a CI workflow. Rekor, on the other hand, offers an immutable, tamper-resistant ledger for signed metadata; it fulfils the signature transparency role in the sigstore ecosystem. Monitors can be used to detect tampering i.e. examine Rekor logs and search for anomalies.

How Sigstore signing works with Fulcio, Rekor and Cosign
How sigstore works (Source: sigstore)

The Rekor community runs a public instance at rekor.sigstore.dev as a best-effort public good transparency service. Rekor offers a REST API for validation and a transparency log for storage; the API is accessible via a command line interface (CLI) client, rekor-cli. Using the client, you can create and verify entries, query the log for inclusion proof, verify log integrity, and retrieve log entries. Rekor can also be used on its own, to work with different manifest schemas and to fulfil different use cases.

The rest of this tutorial shows how to:

  • Install the Rekor CLI
  • Sign and upload entries with Rekor CLI
  • Verify entries in the public Rekor Server
  • Install a Rekor Server locally
  • Verify entries in the local Rekor Server

Install Rekor CLI on a DigitalOcean Droplet

For this walk-through, I'll use a DigitalOcean Droplet. If you don't have an account, signing up through that link gives you DigitalOcean's standard signup credit. Deploy the Docker 1-Click Droplet from the Marketplace: it comes with Docker and Docker Compose, which the local Rekor server needs later. Pick a region and an authentication method, and a size with at least 2 GB of memory, because building the Rekor server images is memory-hungry. Then click Create Droplet.

Once the Droplet is ready, open the Droplet Console and download the rekor-cli binary from the Rekor releases page. I'm pinning the version so the steps stay reproducible.

# Download rekor-cli v1.5.5 (released 21 Oct 2026) and put it on the PATH
curl -LO https://github.com/sigstore/rekor/releases/download/v1.5.5/rekor-cli-linux-amd64
install -m 0755 rekor-cli-linux-amd64 /usr/local/bin/rekor-cli

# Check that rekor-cli works
rekor-cli version

Each release also ships a signature and certificate for every binary. Sigstore's docs explain how to verify them. On macOS, brew install rekor-cli works too. If you have Go installed, use go install github.com/sigstore/rekor/cmd/rekor-cli@v1.5.5.

Sign Artifacts and Upload Entries with Rekor CLI

In this section, we'll generate a key pair and sign an artifact using ssh-keygen, and use rekor-cli to upload an entry to the public Rekor Server at rekor.sigstore.dev. You can sign data in other formats too - see the documentation here. In day-to-day use you rarely call rekor-cli upload yourself: Cosign records an entry in Rekor automatically every time it signs. rekor-cli is most useful for inspecting and verifying entries, and for signature types Cosign doesn't handle, such as the SSH signature here.

# Generate a key pair; I'll skip the password, but you could set it
# The private and public keys will be stored in id_rekor and id_rekor.pub respectively
ssh-keygen -f id_rekor -C user@example.com

# Create a simple README file as our artifact
echo "Hello, World!" > README.md

# Sign the artifact with the private key
ssh-keygen -Y sign -n file -f id_rekor README.md

# Upload the public key / signature and artifact URL to the public Rekor transparency log server
rekor-cli upload --artifact README.md --signature README.md.sig --pki-format=ssh --public-key=id_rekor.pub

If the upload succeeds, you'll see a response similar to: Created entry at index <INDEX>, available at: https://rekor.sigstore.dev/api/v1/log/entries/<UUID>

Verify Entries in the Public Rekor Server

Search entries in the transparency log using an artifact name, a public key, or a SHA hash (prefixed by sha256:).

rekor-cli search --artifact README.md OR

rekor-cli search --public-key id_rekor.pub --pki-format=ssh OR

rekor-cli search --sha sha256:<HASH>

Retrieve entries from the transparency log using either the log index or the artifact UUID generated when the entry was uploaded.

rekor-cli get --log-index <INDEX> OR

rekor-cli get --uuid <UUID>

Verify log entry using the public key / signature and artifact URL - this can be used to prove that your artifact is indeed stored in the transparency log.

rekor-cli verify --signature README.md.sig --pki-format=ssh --public-key id_rekor.pub --artifact README.md

Finally, run the loginfo command to retrieve the public key of the transparency log itself and verify the signature on the signed tree head.

rekor-cli loginfo output for the public Rekor server
Loginfo output for the public Rekor Server

Run a Local Rekor Server on the Droplet

A Rekor server needs Trillian (the append-only log), a MySQL-compatible database and, for searches, Redis. The Rekor repository has a Compose file that builds and runs all four, so there's nothing to install by hand.

# Get the source for the same release as the CLI
git clone --depth 1 --branch v1.5.5 https://github.com/sigstore/rekor.git rekor-server
cd rekor-server

# Build and start Rekor, Trillian, MySQL and Redis in the background
docker compose up -d

# Wait until all services report healthy, then check the server
docker compose ps
curl http://localhost:3000/ping

The first run builds the images, which takes a few minutes. Once it's up, the Rekor server listens on port 3000.

The Compose file uses test passwords and plain HTTP, so treat this as a sandbox. Don't open port 3000 to the internet: reach it from the Droplet itself, or over an SSH tunnel (ssh -L 3000:localhost:3000 root@<DROPLET_IP>).

	Local Rekor server running
Local Rekor server running

Verify Entries in the Local Rekor Server

Launch another instance of the Droplet Console, and run the loginfo command again, but this time against the local Rekor Server instance.

rekor-cli loginfo output for a local Rekor server
rekor-cli loginfo output for a local Rekor server

Obviously, there are no log entries yet, but the signature on the signed tree head is retrieved successfully. Feel free to play around with other rekor-cli commands. You'll need to add --rekor_server http://localhost:3000 to run commands against the local server instead of the public one.

What Changes in Rekor v2

Rekor v2 replaces Trillian and MySQL with a tile-based log, which makes it much cheaper to run and easier to serve from a CDN. Three changes matter for this tutorial:

  • Fewer signature types. Rekor v2 accepts only X.509 certificates and plain public keys. SSH, PGP, minisign and TUF entries, like the SSH signature above, are v1 only.
  • A different API. Clients upload through a single endpoint and read the log as tiles. There's no lookup by log index or UUID, so rekor-cli get and search don't apply. Sigstore clients such as Cosign handle uploads for you.
  • Rotating URLs. The public v2 log moves to a new URL about every six months. Clients find the current one through Sigstore's TUF-distributed signing config, rather than a fixed address.

To try Rekor v2 locally, the rekor-tiles repository has a Compose file for a lightweight build that stores the log on local disk.

Frequently Asked Questions

What is Rekor used for? Rekor is Sigstore's transparency log. It keeps a public, append-only record of software signatures, so anyone can check when an artifact was signed and by whom, and spot signatures they didn't expect.

Is rekor.sigstore.dev still accepting entries? Yes. The public instance still uses Rekor v1 by default, and Sigstore has said it will announce any freeze of v1 uploads a year in advance.

Does Rekor v2 support SSH or PGP signatures? No. Rekor v2 only accepts X.509 certificates and public keys. Use Rekor v1 for SSH, PGP or minisign signatures.

Do I need rekor-cli to use Sigstore? No. Cosign and the other Sigstore clients upload to Rekor and check entries for you. rekor-cli is for inspecting the log directly and for signature types those clients don't cover.

Subscribe to alphasec

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe