Docker Image and Helm Chart Validation Using Cosign
Prerequisites: Install the latest version of cosign as
described in the AppViewX SIGN+ Guide.
Validate a Docker Image
-
Download the Image Key file (<image-name>.pub) from AppViewX release portal respective release version.
Note: To get the release portal credentials, contact [email protected].
-
Validate the Image Using following command:
cosign verify --key <Image Key file> <Image uri>Example:
cosign verify --key my-app-image-key.pub registry.example.com/appviewx/my-service@sha256:abc123...
Validate a Helm Chart
- Download the helm chart signature file (.sig) from release portal.
-
Add the repo to your local Helm configuration using the following
command:
helm repo add crypto-mesh --username <your username> --password <your password or access token> <helm repo URL> -
Update your local Helm repo cache using the following command:
helm repo update -
Pull a specific version of a chart using the following command:
helm pull <repo-name>/<chart-name> --version <version of the chart>This downloads the helm chart as <chartname>.tgz file
-
Validate the helm chart using following command:
cosign verify-blob --key <keyfile> --signature <Helm chart signature file .sig> <CHART_TGZ file>