Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable public key path for EC pipelines #938

Merged
merged 6 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pipelines/enterprise-contract-everything.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ spec:
"/var/run/secrets/kubernetes.io/serviceaccount" is a good value. Multiple
paths can be provided by using the ":" separator.
default: ""
- name: PUBLIC_KEY
type: string
default: "k8s://openshift-pipelines/public-key"
description: |
Public key used to verify signatures. Must be a valid k8s cosign
reference, e.g. k8s://my-space/my-secret where my-secret contains
the expected cosign.pub attribute.
results:
- name: TEST_OUTPUT
value: "$(tasks.verify.results.TEST_OUTPUT)"
Expand All @@ -58,7 +65,7 @@ spec:
- name: STRICT
value: "true"
- name: PUBLIC_KEY
value: "k8s://openshift-pipelines/public-key"
value: "$(params.PUBLIC_KEY)"
- name: IGNORE_REKOR
value: "true"
taskRef:
Expand Down
9 changes: 8 additions & 1 deletion pipelines/enterprise-contract-redhat-no-hermetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ spec:
"/var/run/secrets/kubernetes.io/serviceaccount" is a good value. Multiple
paths can be provided by using the ":" separator.
default: ""
- name: PUBLIC_KEY
type: string
default: "k8s://openshift-pipelines/public-key"
description: |
Public key used to verify signatures. Must be a valid k8s cosign
reference, e.g. k8s://my-space/my-secret where my-secret contains
the expected cosign.pub attribute.
results:
- name: TEST_OUTPUT
value: "$(tasks.verify.results.TEST_OUTPUT)"
Expand All @@ -58,7 +65,7 @@ spec:
- name: STRICT
value: "true"
- name: PUBLIC_KEY
value: "k8s://openshift-pipelines/public-key"
value: "$(params.PUBLIC_KEY)"
- name: IGNORE_REKOR
value: "true"
taskRef:
Expand Down
9 changes: 8 additions & 1 deletion pipelines/enterprise-contract-redhat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ spec:
"/var/run/secrets/kubernetes.io/serviceaccount" is a good value. Multiple
paths can be provided by using the ":" separator.
default: ""
- name: PUBLIC_KEY
type: string
default: "k8s://openshift-pipelines/public-key"
description: |
Public key used to verify signatures. Must be a valid k8s cosign
reference, e.g. k8s://my-space/my-secret where my-secret contains
the expected cosign.pub attribute.
results:
- name: TEST_OUTPUT
value: "$(tasks.verify.results.TEST_OUTPUT)"
Expand All @@ -58,7 +65,7 @@ spec:
- name: STRICT
value: "true"
- name: PUBLIC_KEY
value: "k8s://openshift-pipelines/public-key"
value: "$(params.PUBLIC_KEY)"
- name: IGNORE_REKOR
value: "true"
taskRef:
Expand Down
9 changes: 8 additions & 1 deletion pipelines/enterprise-contract-slsa3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ spec:
"/var/run/secrets/kubernetes.io/serviceaccount" is a good value. Multiple
paths can be provided by using the ":" separator.
default: ""
- name: PUBLIC_KEY
type: string
default: "k8s://openshift-pipelines/public-key"
description: |
Public key used to verify signatures. Must be a valid k8s cosign
reference, e.g. k8s://my-space/my-secret where my-secret contains
the expected cosign.pub attribute.
results:
- name: TEST_OUTPUT
value: "$(tasks.verify.results.TEST_OUTPUT)"
Expand All @@ -58,7 +65,7 @@ spec:
- name: STRICT
value: "true"
- name: PUBLIC_KEY
value: "k8s://openshift-pipelines/public-key"
value: "$(params.PUBLIC_KEY)"
- name: IGNORE_REKOR
value: "true"
taskRef:
Expand Down
9 changes: 8 additions & 1 deletion pipelines/enterprise-contract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ spec:
"/var/run/secrets/kubernetes.io/serviceaccount" is a good value. Multiple
paths can be provided by using the ":" separator.
default: ""
- name: PUBLIC_KEY
type: string
default: "k8s://openshift-pipelines/public-key"
description: |
Public key used to verify signatures. Must be a valid k8s cosign
reference, e.g. k8s://my-space/my-secret where my-secret contains
the expected cosign.pub attribute.
results:
- name: TEST_OUTPUT
value: "$(tasks.verify.results.TEST_OUTPUT)"
Expand All @@ -59,7 +66,7 @@ spec:
- name: STRICT
value: "true"
- name: PUBLIC_KEY
value: "k8s://openshift-pipelines/public-key"
value: "$(params.PUBLIC_KEY)"
- name: IGNORE_REKOR
value: "true"
taskRef:
Expand Down