Skip to content

Commit

Permalink
Update README to include verification instructions (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyawadhwa authored Apr 6, 2021
1 parent fbb0061 commit b6b2611
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ It improves the signal to noise of scanners (e.g. CVE) and reduces the burden of

These images are built using the [bazel](https://bazel.build) tool, but they can also be used through other Docker image build tooling.

## How do I verify distroless images?

All distroless images are signed by [cosign](https://github.com/sigstore/cosign).
We recommend verifying any distroless image you use before building your image.

Once you've installed cosign, you can use the [distroless public key](cosign.pub) to verify any distroless image with:

```
cat cosign.pub
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZzVzkb8A+DbgDpaJId/bOmV8n7Q
OqxYbK0Iro6GzSmOzxkn+N2AKawLyXi84WSwJQBK//psATakCgAQKkNTAA==
-----END PUBLIC KEY-----
cosign verify -key cosign.pub $IMAGE_NAME
```

### Entrypoints

Note that distroless images by default do not contain a shell.
Expand Down

0 comments on commit b6b2611

Please sign in to comment.