mirror of
https://github.com/imjasonh/terraform-provider-cosign-old
synced 2026-07-08 08:56:10 +00:00
No description
Bumps [github.com/hashicorp/terraform-plugin-testing](https://github.com/hashicorp/terraform-plugin-testing) from 1.2.0 to 1.4.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-testing/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-testing/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-testing/compare/v1.2.0...v1.4.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-testing dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .github | ||
| docs | ||
| examples/provider | ||
| internal/provider | ||
| tools | ||
| .gitignore | ||
| .golangci.yml | ||
| .goreleaser.yml | ||
| CHANGELOG.md | ||
| GNUmakefile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| terraform-registry-manifest.json | ||
Terraform Provider for cosign
🚨 This is a work in progress. 🚨
https://registry.terraform.io/providers/chainguard-dev/cosign
Usage
This provides an cosign_sign and cosign_verify resources that will sign and
verify the provided images with cosign.
provider "cosign" {}
# Verify the Chainguard base image against a policy from
# github.com/sigstore/policy-controller.
data "cosign_verify" "example" {
image = "cgr.dev/chainguard/static:latest-glibc"
# This can also be inlined or fetched from a URL using the "http" data source
# check out https://github.com/chainguard-dev/policy-catalog for examples!
policy = file("my-policy.yaml")
}
# This is simply for illustration purposes!
# see: https://github.com/ko-build/terraform-provider-ko
resource "ko_build" "image-build" {
base_image = data.cosign_verify.example.verified_ref
importpath = "..."
repo = var.where-to-publish
}
# Sign the produced image!
resource "cosign_sign" "example" {
image = ko_build.image-build.image_ref
}