/verify-docker-cli-plugin

A docker CLI plugin for verifying signed attestations on images

Primary LanguageGoApache License 2.0Apache-2.0

docker verify CLI plugin

asciicast example

A docker CLI plugin for verifying signed attestations on images.

This plugin uses the OpenPubkey signed-attestations library to verify OpenPubkey tokens inside signed in-toto attestations.

Installation

To build with Go and install as a docker CLI plugin:

$ go build -o ~/.docker/cli-plugins/docker-verify cmd/docker-verify/main.go

Usage

$ docker verify IMAGE --repo-owner-id OWNER_ID

OWNER_ID is the Github ID of the organization or user that owns the source repository. This must match the owner in the OIDC ID token from the GitHub Actions run.

Example

$ docker verify openpubkey/demo:main --repo-owner-id 145685596