Table of Contents

Notary

Notary is an open-source project that aims to enhance the security of container image distribution and deployment by providing trust and integrity guarantees for container images. It allows publishers to sign their container images, enabling users to verify the authenticity and integrity of those images before running them.

Key Features

Benefits

Code Examples

While Notary primarily operates through its command-line interface (CLI), here are a few illustrative examples:

1. **Initializing a Notary Repository:**

```bash notation cert generate-repository my-repository ```

This command initializes a new Notary repository named “my-repository” for storing signing keys and metadata.

2. **Signing an Image:**

```bash notation sign –key my-key my-org/my-image:latest ```

This command signs the `my-org/my-image:latest` image using the specified signing key.

3. **Verifying an Image:**

```bash notation verify my-org/my-image:latest ```

This command verifies the signature of the `my-org/my-image:latest` image, ensuring its authenticity and integrity.

Additional Resources