-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change job `check-oidc` name to `sign-job`. Add `verify-job` job which will run cosign verify. Bump Fulcio to v0.2.0 release. Update cosign containers to latest CI builds to pick up sigstore/cosign#1610 Signed-off-by: Ville Aikas <vaikas@chainguard.dev> * Forgot to copy and use fulcio public key in verify. Signed-off-by: Ville Aikas <vaikas@chainguard.dev> * Add --rekor-url flag to example verify command as well as the env variable SIGSTORE_TRUST_REKOR_API_PUBLIC_KEY=1 Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
- Loading branch information
Showing
6 changed files
with
89 additions
and
9 deletions.
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2022 The Sigstore Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package signjob |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: verify-job | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
automountServiceAccountToken: false | ||
containers: | ||
- name: cosign | ||
# Built from ci on 2022-03-15 | ||
image: gcr.io/projectsigstore/cosign/ci/cosign@sha256:8f7f1a0e7cef67c352f00acd14791d977faa8d1cd47a69f9c880a5185c44ffbb | ||
args: [ | ||
"verify", | ||
"--rekor-url", "http://rekor.rekor-system.svc", | ||
"--allow-insecure-registry", | ||
"ko://github.com/sigstore/scaffolding/cmd/rekor/checktree", | ||
] | ||
env: | ||
# Trust the Rekor public key that is fetched from it. | ||
- name: SIGSTORE_TRUST_REKOR_API_PUBLIC_KEY | ||
value: "true" | ||
- name: COSIGN_EXPERIMENTAL | ||
value: "true" | ||
- name: SIGSTORE_ROOT_FILE | ||
value: "/var/run/sigstore-fulcio/fulcio-public.pem" | ||
- name: COSIGN_REPOSITORY | ||
value: "registry.local:5000/knative" | ||
volumeMounts: | ||
- name: oidc-info | ||
mountPath: /var/run/sigstore/cosign | ||
- name: keys | ||
mountPath: "/var/run/sigstore-fulcio" | ||
readOnly: true | ||
volumes: | ||
- name: oidc-info | ||
projected: | ||
sources: | ||
- serviceAccountToken: | ||
path: oidc-token | ||
expirationSeconds: 600 # Use as short-lived as possible. | ||
audience: sigstore | ||
- name: keys | ||
secret: | ||
secretName: fulcio-secret | ||
items: | ||
- key: cert | ||
path: fulcio-public.pem |