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

fix: sign helm chart [HYB-731] #45

Merged
merged 1 commit into from
Nov 18, 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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ jobs:
- run:
name: Run semantic-release
command: npx semantic-release
## Note - signing happens via GitHub Action to leverage OIDC. CircleCI doesn't support this directly, yet.

security_scans:
docker:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/sigstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
## This workflow only runs on the default branch
check_suite:
types: [completed]

jobs:
sign:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
name: Sign Chart
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Install Cosign
uses: sigstore/[email protected]
- name: Check Cosign
run: cosign version
- name: Cosign with OIDC
run: |
# Get the latest tag
LATEST_TAG=$(git describe --tags 'git rev-list --tags --max-count=1')
# Obtain the digest from this tag
DIGEST=$(curl "https://hub.docker.com/v2/repositories/snyk/snyk-universal-broker/tags/${LATEST_TAG}" | jq '.digest' -r)
# Sign the image, using GitHub as an OIDC provider
cosign sign --yes oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${DIGEST}
- name: Verify signature
run: |
cosign verify oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${DIGEST}
cosign verify oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${LATEST_TAG}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ This is a Helm Chart to deploy the [Snyk Universal Broker](https://docs.snyk.io/

## Requirements

- Helm `3.8.0` or newer
- (Optionally) the `helm-sigstore` Helm plugin, or `cosign`

### Networking

#### Outbound
Expand All @@ -21,6 +24,14 @@ If a proxy, firewall, or other network appliance sits between Broker and the pub
- the above domains are whitelisted, _and_
- the proxy, firewall or other network appliance supports the websockets protocol

## Installing the Helm Chart for Universal Broker

Pull the Helm Chart, and provide any configuration necessary:

```
helm pull oci://registry-1.docker.io/snyk/snyk-universal-broker
```

## Basic Configuration

### Selecting your Snyk Region
Expand Down