Skip to content

Commit 497ad00

Browse files
authored
Merge pull request #327 from txn2/fix/cosign-signing
fix: add Cosign signature bundle to releases
2 parents 13dbd4e + 41d34a2 commit 497ad00

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ checksum:
5858
signs:
5959
- cmd: cosign
6060
artifacts: checksum
61+
signature: "${artifact}.sigstore.json"
6162
args:
6263
- "sign-blob"
6364
- "--yes"
64-
- "--output-signature=${signature}"
65-
- "--output-certificate=${certificate}"
65+
- "--bundle=${signature}"
6666
- "${artifact}"
6767

6868
# Generate Software Bill of Materials for archives

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,33 @@ docker run -it --rm --privileged \
140140

141141
See [Advanced Usage](docs/advanced-usage.md#docker-integration) for Docker Compose examples and [Getting Started](docs/getting-started.md) for complete installation instructions.
142142

143+
## Verifying Downloads
144+
145+
All release artifacts are signed using [Cosign](https://github.com/sigstore/cosign) keyless signing with GitHub Actions OIDC.
146+
147+
### Verify Checksums
148+
149+
```bash
150+
# Download the checksum file and signature bundle
151+
curl -LO https://github.com/txn2/kubefwd/releases/latest/download/kubefwd_checksums.txt
152+
curl -LO https://github.com/txn2/kubefwd/releases/latest/download/kubefwd_checksums.txt.sigstore.json
153+
154+
# Verify signature
155+
cosign verify-blob \
156+
--bundle kubefwd_checksums.txt.sigstore.json \
157+
--certificate-identity-regexp="https://github.com/txn2/kubefwd/.*" \
158+
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
159+
kubefwd_checksums.txt
160+
```
161+
162+
### Verify Docker Images
163+
164+
```bash
165+
cosign verify txn2/kubefwd:latest \
166+
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
167+
--certificate-identity-regexp="https://github.com/txn2/kubefwd/.*"
168+
```
169+
143170
## Usage
144171

145172
### Interactive Mode (Recommended)

0 commit comments

Comments
 (0)