Skip to content

Commit

Permalink
fix: drop enterpriseContractPublicKey param from all pipelines (#504)
Browse files Browse the repository at this point in the history
Users can specify a key on their policy resource, but it gets ignored
since these param values always override it with that
openshift-pipelines key.

After this change, the verify task will always take the value from the
policy.

Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean authored Aug 7, 2024
1 parent 6fb851c commit c6edbbe
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 87 deletions.
4 changes: 3 additions & 1 deletion pipelines/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ affected by RHTAP services or which results could affect the RHTAP workflow.
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

### Changes in 3.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 2.2.2
- Increase `enterpriseContractTimeout` parameter default value.

Expand Down
8 changes: 1 addition & 7 deletions pipelines/e2e/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: e2e
labels:
app.kubernetes.io/version: "2.2.2"
app.kubernetes.io/version: "3.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -32,10 +32,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -110,8 +106,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
4 changes: 3 additions & 1 deletion pipelines/fbc-release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Tekton release pipeline to interact with FBC Pipeline
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the EnterpriseContractPolicy | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

### Changes in 4.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 3.7.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

Expand Down
8 changes: 1 addition & 7 deletions pipelines/fbc-release/fbc-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: fbc-release
labels:
app.kubernetes.io/version: "3.7.0"
app.kubernetes.io/version: "4.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -31,10 +31,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -165,8 +161,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
4 changes: 3 additions & 1 deletion pipelines/push-binaries-to-dev-portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Tekton pipeline to release Red Hat binaries to the Red Hat Developer Portal.
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

### Changes in 1.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 0.3.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: push-binaries-to-dev-portal
labels:
app.kubernetes.io/version: "0.3.0"
app.kubernetes.io/version: "1.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -31,10 +31,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -134,8 +130,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
4 changes: 3 additions & 1 deletion pipelines/push-disk-images-to-cdn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Tekton Pipeline to push disk images to a cdn using pulp
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 10m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

## Changes in 1.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

## Changes in 0.2.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: push-disk-images-to-cdn
labels:
app.kubernetes.io/version: "0.2.0"
app.kubernetes.io/version: "1.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -31,10 +31,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -154,8 +150,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
4 changes: 3 additions & 1 deletion pipelines/push-to-external-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Tekton pipeline to release Snapshots to an external registry.
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

### Changes in 5.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 4.8.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: push-to-external-registry
labels:
app.kubernetes.io/version: "4.8.0"
app.kubernetes.io/version: "5.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -31,10 +31,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -156,8 +152,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
4 changes: 3 additions & 1 deletion pipelines/release-to-github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Tekton release pipeline to release binaries extracted from the image built with
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

### Changes in 4.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 3.6.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

Expand Down
8 changes: 1 addition & 7 deletions pipelines/release-to-github/release-to-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: release-to-github
labels:
app.kubernetes.io/version: "3.6.0"
app.kubernetes.io/version: "4.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -32,10 +32,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -153,8 +149,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
6 changes: 4 additions & 2 deletions pipelines/rh-advisories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ the rh-push-to-registry-redhat-io pipeline.
| releaseServiceConfig | The namespaced name (namespace/name) of the releaseServiceConfig | No | - |
| snapshot | The namespaced name (namespace/name) of the snapshot | No | - |
| enterpriseContractPolicy | JSON representation of the policy to be applied when validating the enterprise contract | No | - |
| enterpriseContractPublicKey | Public key to use for validation by the enterprise contract | Yes | k8s://openshift-pipelines/public-key |
| enterpriseContractExtraRuleData | Extra rule data to be merged into the policy specified in params.enterpriseContractPolicy. Use syntax "key1=value1,key2=value2..." | Yes | pipeline_intention=release |
| enterpriseContractTimeout | Timeout setting for `ec validate` | Yes | 40m0s |
| postCleanUp | Cleans up workspace after finishing executing the pipeline | Yes | true |
| verify_ec_task_bundle | The location of the bundle containing the verify-enterprise-contract task | No | - |
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

## Changes in 1.0.0
- Drop the `enterpriseContractPublicKey` param. The verify task will take the value from the policy.

### Changes in 0.14.0
- Add `requireInternalServices` parameter to the 'verify-access-to-resources' task.

## Changes in 0.13.3
- Bugfix: block pipeline progress on the verify-enterprise-contract.

### Changes in 0.13.2
## Changes in 0.13.2
- Increase `enterpriseContractTimeout` parameter default value.

## Changes in 0.13.1
Expand Down
8 changes: 1 addition & 7 deletions pipelines/rh-advisories/rh-advisories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: rh-advisories
labels:
app.kubernetes.io/version: "0.14.0"
app.kubernetes.io/version: "1.0.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -31,10 +31,6 @@ spec:
- name: enterpriseContractPolicy
type: string
description: JSON representation of the EnterpriseContractPolicy
- name: enterpriseContractPublicKey
type: string
description: Public key to use for validation by the enterprise contract
default: k8s://openshift-pipelines/public-key
- name: enterpriseContractExtraRuleData
type: string
description: |
Expand Down Expand Up @@ -187,8 +183,6 @@ spec:
value: "1"
- name: IGNORE_REKOR
value: "true"
- name: PUBLIC_KEY
value: $(params.enterpriseContractPublicKey)
- name: EXTRA_RULE_DATA
value: $(params.enterpriseContractExtraRuleData)
- name: TIMEOUT
Expand Down
Loading

0 comments on commit c6edbbe

Please sign in to comment.