Skip to content

Commit

Permalink
cleanup: drop support for Codenotary CAS
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Sep 23, 2023
1 parent ba957e7 commit 132ce44
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 170 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ jobs:
pat: ${{ secrets.REPO_ACCESS }}
ghcr-password: ${{ secrets.GHCR_PASSWORD }}

job-image-cas:
uses: ckotzbauer/sbom-operator/.github/workflows/release-job-image.yml@main
needs: [release]
with:
version: ${{ github.event.inputs.version }}
job-image: cas
docker-platforms: linux/amd64
docker-tags: |
ghcr.io/ckotzbauer/sbom-operator/cas:${{ github.event.inputs.version }}
ghcr.io/ckotzbauer/sbom-operator/cas:latest
cosign-repository: ghcr.io/ckotzbauer/sbom-operator-metadata
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
pat: ${{ secrets.REPO_ACCESS }}
ghcr-password: ${{ secrets.GHCR_PASSWORD }}

job-image-vcn:
uses: ckotzbauer/sbom-operator/.github/workflows/release-job-image.yml@main
needs: [release]
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/release-job-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,3 @@ jobs:
verify: true
attest: true
cosign-repository: ${{ inputs.cosign-repository }}

- name: Generate Provenance
uses: ckotzbauer/actions-toolkit/[email protected]
with:
action-sha: "0.22.0"
images: ${{ inputs.docker-tags }}
artifact-path: job-images/${{ inputs.job-image }}
sign: true
verify: true
attest: true
cosign-repository: ${{ inputs.cosign-repository }}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,22 +253,21 @@ the SBOMs on its own. Currently there are two possible integrations:

| Tool | Description |
| ---- | ----------- |
| [Codenotary CAS](job-images/cas/README.md) | The Community Attestation Service from Codenotary can notarize your images in the Codenotary Cloud. (free) |
| [Codenotary VCN](job-images/vcn/README.md) | The VCN-Tool from Codenotary can notarize your images in the Codenotary Cloud. (chargeable) |

This feature is built as generic approach. Any image which follows [these specs](job-images/SPEC.md) can be used as job-image.

e.g. Manifest (`deploy/job-image`):
```yaml
--job-image=ghcr.io/ckotzbauer/sbom-operator/cas:<TAG>
--job-image=ghcr.io/ckotzbauer/sbom-operator/vcn:<TAG>
```

e.g. Helm:
```yaml
jobImageMode: true

envVars:
- name: SBOM_JOB_CAS_API_KEY
- name: SBOM_JOB_VCN_LC_API_KEY
value: "<KEY>"
```
Expand Down
4 changes: 2 additions & 2 deletions deploy/job-image/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ spec:
fieldRef:
fieldPath: metadata.uid
# Free account
- name: SBOM_JOB_CAS_API_KEY
- name: SBOM_JOB_VCN_API_KEY
value: ""
args:
# example values
- --cron="0 6 * * * *"
- --job-image=ghcr.io/ckotzbauer/sbom-operator/cas:0.10.0
- --job-image=ghcr.io/ckotzbauer/sbom-operator/vcn:0.10.0
#- --pod-label-selector=sbom-operator\=true
ports:
- containerPort: 8080
Expand Down
11 changes: 0 additions & 11 deletions job-images/cas/Dockerfile

This file was deleted.

67 changes: 0 additions & 67 deletions job-images/cas/README.md

This file was deleted.

58 changes: 0 additions & 58 deletions job-images/cas/entrypoint.sh

This file was deleted.

3 changes: 1 addition & 2 deletions job-images/vcn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ This Job-Image notarizes your images with VCN.

## Usage

1. Reach out to Codenotary to get an API-Key for the VCN tool. If you're searching for the free Attestation Service from Codenotary
use the [CAS-Image](../cas/README.md) instead.
1. Reach out to Codenotary to get an API-Key for the VCN tool.
2. Add the following flag to the operator-installation.

Manifest:
Expand Down

0 comments on commit 132ce44

Please sign in to comment.