Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add support for verifying base image policies.
🎁 This implements the very basics from my recent comment on #356. This still needs a bunch of work, but some playing with it and `go run` seem to demonstrate what I'd hope for. Things I'd like to do still: - Add validation that warns/errors if aspects of CIP irrelevant outside K8s are used (e.g. `match:`, `includeSpec:`), - Expand unit test coverage significantly, - Move `pkg/policy` upstream to `sigstore/policy-controller` to facilitate using this in other projects with similar ease (e.g. kaniko, buildpacks, ...) /kind feature
- Loading branch information
Showing
4,588 changed files
with
1,406,688 additions
and
2,250 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
baseImageOverrides: | ||
github.com/google/ko: golang:1.19 | ||
github.com/google/ko: cgr.dev/chainguard/go | ||
|
||
builds: | ||
- id: ko | ||
ldflags: | ||
- "{{ .Env.LDFLAGS }}" | ||
|
||
verification: | ||
# Override the default of "warn" to "deny" | ||
noMatchPolicy: deny | ||
policies: | ||
# Expand the default base image policy (covers static) to include | ||
# all Chainguard images (namely Go, see above). | ||
- data: | | ||
apiVersion: policy.sigstore.dev/v1beta1 | ||
kind: ClusterImagePolicy | ||
metadata: | ||
name: chainguard-images | ||
spec: | ||
images: | ||
- glob: cgr.dev/chainguard/** | ||
authorities: | ||
- keyless: | ||
url: https://fulcio.sigstore.dev | ||
identities: | ||
- issuer: https://token.actions.githubusercontent.com | ||
subject: https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main | ||
ctlog: | ||
url: https://rekor.sigstore.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.