Skip to content

stacklok/demo-repo-rust

Repository files navigation

demo-repo-rust 🦦

Overview

The demo-repo-rust project is a repository template primarily intended for testing and demonstration purposes with Stacklok projects. It is a simple Rust project that allows you to quickly get started with testing and demonstrating how you can use Minder and Trusty with your Rust projects. It features continuous integration (CI) workflows that demonstrate how to build, test, and sign artifacts using Sigstore and GitHub Attestations.

Features

  • Pre-configured Cargo.toml
  • Sample Rust code in src/main.rs
  • Dockerfile for building a container image

GitHub Actions workflows for:

  • Producing signed and unsigned artifacts using Sigstore and GitHub attestations API
  • Producing artifacts such as container images and binaries
  • Producing container images that are reproducible (always the same digest)
  • Producing "malicious" container images for testing purposes (e.g., code content was altered while building the image)

Makefile targets for simulating out-of-band signing of artifacts (both intended and not):

  • Generating signed container images and "malicious" images
  • Pushing container images to container registry (GHCR)
  • Generating a local key pair for signing container images
  • Sign container images using Sigstore by using a local key pair or by going through the Sigstore OIDC sign-in flow

Branches:

  • Set of pre-created branches to use for opening PRs each demonstrating a different feature or use case with Minder and Trusty

How to Use This Template

GitHub Users

  1. Use this Template:
    Click the "Use this template" button above the file list on this repository.

  2. Create New Repository:
    Provide your repository with a name, description, and set the privacy settings. Click "Create repository from template."

Happy testing! 🦦🎉

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •