# Cosign Verification

This guide demonstrates how to verify signed artifacts (i.e., container images, Helm charts) hosted on ocir.immuta.com using [Cosign](https://github.com/sigstore/cosign) from [Sigstore](https://sigstore.dev/).

{% hint style="info" %}
**Cosign installation**

To verify a signed artifact or blob, install [Cosign](https://docs.sigstore.dev/cosign/system_config/installation/) before proceeding.
{% endhint %}

## Verify

1. Create a file named `immuta-cosign.pub` with the following content:

   ```sh
   -----BEGIN PUBLIC KEY-----
   MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEIGUDdu5dgqxQTlbNt0bCIl+zCN65
   JC/PmmaC08Eb/UbpkSDmcn/t9Jh+w6Chwkkcp1olcOS1BqCaWrbtViu6Xg==
   -----END PUBLIC KEY-----
   ```
2. Verify artifact signature.

   ```shell
   cosign verify \
       --key ./immuta-cosign.pub \
       ocir.immuta.com/stable/<artifact-name>:2024.2.20
   ```

## Frequently asked question

#### How can I list all container images referenced in the IEHC?

{% hint style="info" %}
**Yq installation**

The following step presumes command-line tool [yq](https://github.com/mikefarah/yq) is installed.
{% endhint %}

List all container images by rendering the chart templates locally.

```shell
helm template <release-name> oci://ocir.immuta.com/stable/immuta-enterprise \
    --values immuta-values.yaml \
    --version 2024.2.20 \
| yq '..|.image? | select(.)' | sort -u
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/2024.2/self-managed-deployment/configure/cosign-verification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
