Skip to content

Commit

Permalink
Merge pull request #1072 from chainguard-dev/create-pull-request/patch
Browse files Browse the repository at this point in the history
[AutoDocs] Update Images Reference Docs
  • Loading branch information
ltagliaferri authored Oct 17, 2023
2 parents 30f88bd + daed14e commit 9ed305f
Show file tree
Hide file tree
Showing 86 changed files with 1,073 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The table shows package distribution across variants.
| `libbz2-1` | X | X |
| `libcrypt1` | X | X |
| `libcrypto3` | X | X |
| `libcurl-rustls4` | X | |
| `libcurl-openssl4` | X | |
| `libexpat1` | X | X |
| `libffi` | X | X |
| `libgcc` | X | X |
Expand All @@ -84,8 +84,8 @@ The table shows package distribution across variants.
| `py3-six` | X | X |
| `py3-urllib3` | X | X |
| `py3-yaml` | X | X |
| `py3.11-setuptools` | X | X |
| `python-3.11` | X | X |
| `py3.12-setuptools` | X | X |
| `python-3.12` | X | X |
| `readline` | X | X |
| `sqlite-libs` | X | X |
| `wolfi-baselayout` | X | X |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 11th | `sha256:923bb651f8a2da4f54ac9477f2e9c7741c367047e36542c87c6414ffb24f7e1d` |
| `latest` | October 8th | `sha256:69193067749090982228e9217c75b8ce290d4ebe55c0799ee0f2e3e3f68efcaa` |
| `latest-dev` | October 16th | `sha256:965c4284ca909bb08d59ee9481b577e07b8941b445220d90be12eca83fbf5b97` |
| `latest` | October 16th | `sha256:56e956ff6f8099f7021d8b08ae16b5785df8e16d6c53b05b260580b3ef4ba773` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|-----------|--------------|---------------------------------------------------------------------------|
| `latest` | October 13th | `sha256:228b06725d960418bf852117b4d074e41445c4e045e06a6ccbef44482797d7fc` |
| `latest` | October 16th | `sha256:0dc35ba197d3e13e6b5342cb08ad329c55b8824fe4e7a6967a28b49b8eec4ae6` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 13th | `sha256:a3b80882adc922a932c035fd9f646246ed1db42977b879816265fccb18d08de4` |
| `latest` | October 13th | `sha256:0f5d4d31f8c8deefe14726f2dd2e0bcb8b8d7d8adc4bef1bd7428a55283f308e` |
| `latest-dev` | October 16th | `sha256:265b41bdf6018dae828bc6f05a3fe2622e73a2577462d8d71fbaf9cdfa0b53b0` |
| `latest` | October 16th | `sha256:632ce41e6bae34a7ce63bab974d52f2bae96d3a9e03da0fa0102e64c27d74d22` |

70 changes: 70 additions & 0 deletions content/chainguard/chainguard-images/reference/grype/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
title: "Image Overview: grype"
linktitle: "grype"
type: "article"
layout: "single"
description: "Overview: grype Chainguard Image"
date: 2022-11-01T11:07:52+02:00
lastmod: 2022-11-01T11:07:52+02:00
draft: false
tags: ["Reference", "Chainguard Images", "Product"]
images: []
menu:
docs:
parent: "images-reference"
weight: 500
toc: true
---

{{< tabs >}}
{{< tab title="Overview" active=true url="/chainguard/chainguard-images/reference/grype/" >}}
{{< tab title="Variants" active=false url="/chainguard/chainguard-images/reference/grype/image_specs/" >}}
{{< tab title="Tags History" active=false url="/chainguard/chainguard-images/reference/grype/tags_history/" >}}
{{< tab title="Provenance" active=false url="/chainguard/chainguard-images/reference/grype/provenance_info/" >}}
{{</ tabs >}}



Minimalist Wolfi-based grype images for signing and verifying images using Sigstore.

- [Documentation](https://edu.chainguard.dev/chainguard/chainguard-images/reference/grype)
- [Provenance Information](https://edu.chainguard.dev/chainguard/chainguard-images/reference/grype/provenance_info/)
<!-- TODO: add Getting Started Guide - [Getting Started Guide](https://edu.chainguard.dev/chainguard/chainguard-images/reference/grype/getting-started-grype/) -->

## Image Variants

Our `latest` tag uses the most recent build of the [Wolfi grype](https://github.com/wolfi-dev/os/blob/main/grype.yaml) package. The following tagged variant is available without authentication:

- `latest`: This is an image for running `grype` commands. It does not include a shell or other applications.

### grype help
This will automatically pull the image to your local system and execute the command `grype help`:

```shell
docker run --rm cgr.dev/chainguard/grype help


A vulnerability scanner for container images, filesystems, and SBOMs.

Supports the following image sources:
grype yourrepo/yourimage:tag defaults to using images from a Docker daemon
grype path/to/yourproject a Docker tar, OCI tar, OCI directory, SIF container, or generic filesystem directory

You can also explicitly specify the scheme to use:
grype podman:yourrepo/yourimage:tag explicitly use the Podman daemon
grype docker:yourrepo/yourimage:tag explicitly use the Docker daemon
grype docker-archive:path/to/yourimage.tar use a tarball from disk for archives created from "docker save"
grype oci-archive:path/to/yourimage.tar use a tarball from disk for OCI archives (from Podman or otherwise)
grype oci-dir:path/to/yourimage read directly from a path on disk for OCI layout directories (from Skopeo or otherwise)
grype singularity:path/to/yourimage.sif read directly from a Singularity Image Format (SIF) container on disk
grype dir:path/to/yourproject read directly from a path on disk (any directory)
grype sbom:path/to/syft.json read Syft JSON from path on disk
grype registry:yourrepo/yourimage:tag pull image directly from a registry (no container runtime required)
grype purl:path/to/purl/file read a newline separated file of purls from a path on disk

You can also pipe in Syft JSON directly:
syft yourimage:tag -o json | grype

Usage:
grype [command]
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: "grype Image Variants"
type: "article"
unlisted: true
description: "Detailed information about the public grype Chainguard Image variants"
date: 2023-03-07T11:07:52+02:00
lastmod: 2023-03-07T11:07:52+02:00
draft: false
tags: ["Reference", "Chainguard Images", "Product"]
images: []
weight: 550
toc: true
---

{{< tabs >}}
{{< tab title="Overview" active=false url="/chainguard/chainguard-images/reference/grype/" >}}
{{< tab title="Variants" active=true url="/chainguard/chainguard-images/reference/grype/image_specs/" >}}
{{< tab title="Tags History" active=false url="/chainguard/chainguard-images/reference/grype/tags_history/" >}}
{{< tab title="Provenance" active=false url="/chainguard/chainguard-images/reference/grype/provenance_info/" >}}
{{</ tabs >}}

This page shows detailed information about all public variants of the Chainguard **grype** Image.

## Variants Compared
The **grype** Chainguard Image currently has 2 public variants:

- `latest-dev`
- `latest`

The table has detailed information about each of these variants.

| | latest-dev | latest |
|--------------|------------------|------------------|
| Default User | `nonroot` | `nonroot` |
| Entrypoint | `/usr/bin/grype` | `/usr/bin/grype` |
| CMD | `help` | `help` |
| Workdir | not specified | not specified |
| Has apk? | yes | no |
| Has a shell? | yes | yes |

Check the [tags history page](/chainguard/chainguard-images/reference/grype/tags_history/) for the full list of available tags.

## Packages Included
The table shows package distribution across variants.

| | latest-dev | latest |
|--------------------------|------------|--------|
| `apk-tools` | X | |
| `bash` | X | |
| `busybox` | X | X |
| `ca-certificates-bundle` | X | X |
| `git` | X | |
| `glibc` | X | X |
| `glibc-locale-posix` | X | X |
| `grype` | X | X |
| `ld-linux` | X | X |
| `libbrotlicommon1` | X | |
| `libbrotlidec1` | X | |
| `libcrypt1` | X | X |
| `libcrypto3` | X | |
| `libcurl-openssl4` | X | |
| `libexpat1` | X | |
| `libnghttp2-14` | X | |
| `libpcre2-8-0` | X | |
| `libssl3` | X | |
| `ncurses` | X | |
| `ncurses-terminfo-base` | X | |
| `openssl-config` | X | |
| `wolfi-baselayout` | X | X |
| `zlib` | X | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
title: "Provenance Information for grype Images"
type: "article"
unlisted: true
description: "Provenance information for grype Chainguard Image"
date: 2022-11-01T11:07:52+02:00
lastmod: 2022-11-01T11:07:52+02:00
draft: false
tags: ["Reference", "Chainguard Images", "Product"]
images: []
weight: 600
toc: true
---

{{< tabs >}}
{{< tab title="Overview" active=false url="/chainguard/chainguard-images/reference/grype/" >}}
{{< tab title="Variants" active=false url="/chainguard/chainguard-images/reference/grype/image_specs/" >}}
{{< tab title="Tags History" active=false url="/chainguard/chainguard-images/reference/grype/tags_history/" >}}
{{< tab title="Provenance" active=true url="/chainguard/chainguard-images/reference/grype/provenance_info/" >}}
{{</ tabs >}}

All Chainguard Images contain verifiable signatures and high-quality SBOMs (software bill of materials), features that enable users to confirm the origin of each image built and have a detailed list of everything that is packed within.

## Verifying Image Signatures
The **grype** Chainguard Images are signed using Sigstore, and you can check the included signatures using `cosign`.

The following command requires [cosign](https://docs.sigstore.dev/cosign/overview/) and [jq](https://stedolan.github.io/jq/) to be installed on your machine. It will pull detailed information about all signatures found for the provided image.

```shell
cosign verify --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity=https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main cgr.dev/chainguard/grype | jq
```

By default, this command will fetch signatures for the `latest` tag. You can also specify the tag you want to fetch signatures for.

## Downloading and Verifying SBOMs

All Chainguard Images come with a high-quality Software Bill Of Materials (SBOM) attested at build-time. The SBOM can be downloaded using the cosign tool:

```shell
cosign download attestation \
--predicate-type=https://spdx.dev/Document \
cgr.dev/chainguard/grype | jq -r .payload | base64 -d | jq
```
By default, this command will fetch the SBOM assigned to the `latest` tag. You can also specify the tag you want to fetch the SBOM from.

With cosign 2.0+, you can use the `cosign verify-attestation` command to check the signature of an SBOM:

```shell
cosign verify-attestation \
--type https://spdx.dev/Document \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
--certificate-identity=https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main \
cgr.dev/chainguard/grype
```

And you should get output that verifies the SBOM signature in cosign's transparency log:

```
Verification for cgr.dev/chainguard/grype --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The code-signing certificate was verified using trusted certificate authority certificates
Certificate subject: https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main
Certificate issuer URL: https://token.actions.githubusercontent.com
GitHub Workflow Trigger: schedule
GitHub Workflow SHA: da283c26829d46c2d2883de5ff98bee672428696
GitHub Workflow Name: .github/workflows/release.yaml
GitHub Workflow Trigger chainguard-images/images
GitHub Workflow Ref: refs/heads/main
...
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: "grype Image Tags History"
type: "article"
unlisted: true
description: "Image Tags and History for the grype Chainguard Image"
date: 2023-06-22T11:07:52+02:00
lastmod: 2023-06-22T11:07:52+02:00
draft: false
tags: ["Reference", "Chainguard Images", "Product"]
images: []
weight: 700
toc: true
---

{{< tabs >}}
{{< tab title="Overview" active=false url="/chainguard/chainguard-images/reference/grype/" >}}
{{< tab title="Variants" active=false url="/chainguard/chainguard-images/reference/grype/image_specs/" >}}
{{< tab title="Tags History" active=true url="/chainguard/chainguard-images/reference/grype/tags_history/" >}}
{{< tab title="Provenance" active=false url="/chainguard/chainguard-images/reference/grype/provenance_info/" >}}
{{</ tabs >}}

The following table contains the most recent tags and digests that can be used to pin your Dockerfile to a specific build of this image. Check our guide on [Using the Tag History API](/chainguard/chainguard-images/using-the-tag-history-api/) for information on how to fetch all tags from an image and how to pin your Dockerfile to a specific digest.

Please note that digests and timestamps only change when there is a change to the image, even though images are rebuilt every night. The "Last Changed" column indicates when the image was last modified, and doesn't always reflect the latest build timestamp. For more information about how our reproducible builds work, please refer to [this blog post](https://www.chainguard.dev/unchained/reproducing-chainguards-reproducible-image-builds).

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 16th | `sha256:919fb131a6c56a455aaf64e7b22999cb9d0b962b39c4d414309ef9427cb3a040` |
| `latest` | October 16th | `sha256:164f3587296ac2871ddfca0f3d424bc69cd82a52880f61c4422c55b52587b504` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 13th | `sha256:ae5027b0ca6e2085ffeb918d385f6bf8151ff3a4340e8d8ecbebfefb5277c8b6` |
| `latest` | October 13th | `sha256:4f353d4716f10809e7fcbdb31721c97c625c7909896b03f4fb7dc3578b089a70` |
| `latest` | October 16th | `sha256:1a80efebf7fb4c399f4bd7533f07b83004747c36a0f0802a8304eb138b84eea1` |
| `latest-dev` | October 16th | `sha256:a6e2d8fca50b420ee37f2eb429c373e2c5602f2adc2896202139cd046661d69f` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 13th | `sha256:9ba708db3c8ad57474e84a57b604e6c67023a5b80466b7565674fd59a3fdbe8a` |
| `latest` | October 13th | `sha256:10e1de809b5aa510aab0850c85b90b594792df04b91bd0d48279c292be575130` |
| `latest` | October 16th | `sha256:7b85ecacfeb2928ba6fc5698c20acafc2979783b866c10c3badfd4ac8a0048aa` |
| `latest-dev` | October 16th | `sha256:86915cfdf43430852366c87884bc9f403ad31465ced534ca1248ed2f7419fac5` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest` | October 13th | `sha256:7ccc3c3682c6a17b654dbc5713e20808fc8183945c0b032987c885c554a87fb7` |
| `latest-dev` | October 13th | `sha256:ce1faedf9ecd01f52f2d1209591bb15f1e30c22872759014296246d29f5fc981` |
| `latest` | October 16th | `sha256:5c83e15a60e74df4596bb704c88e4d9be7b30cd404f702a12a8227ff9eb9a011` |
| `latest-dev` | October 16th | `sha256:10afca9f683e3fbee99e89d40da5f7e864c2cc96a644a140a1bf18c9dbc808b8` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 13th | `sha256:0bb3f936a79cfa2122fb4d595a17f8550fda2dec35f9265e33d1b79e8903f11d` |
| `latest` | October 13th | `sha256:e0a8f904d3a535365ceca88b62a9483d1d53517d2f94fbf8bd6058bf81e3c93d` |
| `latest` | October 16th | `sha256:dae02fe31302fa149d23712edee841b684bd9e3fe5d80418dd8c1d47b220e78e` |
| `latest-dev` | October 16th | `sha256:73e04398873fefcae654f54186d7dec1c6a7137f2e1829560a21614ef4d02123` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest-dev` | October 14th | `sha256:026e9a0a876d0ddf93e160ed24a9f0c50c0d39b59bb9653ca31d6660000838f9` |
| `latest` | October 14th | `sha256:d2a6b174e7cb4f0d0622a43e2fd69f5563b8a7e313c0970c2c1a9e5b0399a3d1` |
| `latest-dev` | October 16th | `sha256:af2a26482e7351c2b240a5841ec3068ce3946e1eacca27fd3f9edea4072a6d51` |
| `latest` | October 16th | `sha256:222ef18f96b1d4d15235f6cefbf4627bb7c208fbef1605bdadab3bd7b7be2ebd` |

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Please note that digests and timestamps only change when there is a change to th

| Tag (s) | Last Changed | Digest |
|---------------|--------------|---------------------------------------------------------------------------|
| `latest` | October 15th | `sha256:aebc1cdfb5daa77b1066113f602037fe976d9698a0624ed7ae4a4dab8b5b936a` |
| `latest-dev` | October 15th | `sha256:913e39178e146b0bbd6b09438567fece9b9cfe888c21baa75040e4abf7deb83c` |
| `latest` | October 16th | `sha256:52f33ba90d270cad877422d64c772f500bb1da1ce7696cfd59a59d1f3310829c` |
| `latest-dev` | October 16th | `sha256:1973e6192d0f9677f36de7020eadad79765875b2890e501e2b0da894eddc2b2f` |

Loading

0 comments on commit 9ed305f

Please sign in to comment.