mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-12 04:04:26 +00:00
Add signing of the plugin on release.
This commit is contained in:
@@ -11,7 +11,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
id-token: write
|
||||||
contents: write
|
contents: write
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|||||||
@@ -47,3 +47,14 @@ release:
|
|||||||
name_template: "v{{ .Version }}"
|
name_template: "v{{ .Version }}"
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: auto
|
prerelease: auto
|
||||||
|
|
||||||
|
signs:
|
||||||
|
- cmd: cosign
|
||||||
|
signature: "${artifact}.sigstore.json"
|
||||||
|
args:
|
||||||
|
- sign-blob
|
||||||
|
- "--bundle=${signature}"
|
||||||
|
- "${artifact}"
|
||||||
|
- "--yes"
|
||||||
|
artifacts: checksum
|
||||||
|
output: true
|
||||||
|
|||||||
@@ -82,6 +82,19 @@ experimental:
|
|||||||
|
|
||||||
2. Configure the middleware in your dynamic configuration (see examples below).
|
2. Configure the middleware in your dynamic configuration (see examples below).
|
||||||
|
|
||||||
|
### Verifying Release Signatures
|
||||||
|
|
||||||
|
All release checksums are signed with [cosign](https://github.com/sigstore/cosign) using keyless signing. To verify:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Download the checksum file and its sigstore bundle from the release
|
||||||
|
cosign verify-blob \
|
||||||
|
--certificate-identity-regexp "https://github.com/lukaszraczylo/traefikoidc/.*" \
|
||||||
|
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
|
||||||
|
--bundle "traefikoidc_v<version>_checksums.txt.sigstore.json" \
|
||||||
|
traefikoidc_v<version>_checksums.txt
|
||||||
|
```
|
||||||
|
|
||||||
### Local Development with Docker Compose
|
### Local Development with Docker Compose
|
||||||
|
|
||||||
For local development or testing, you can use the provided Docker Compose setup:
|
For local development or testing, you can use the provided Docker Compose setup:
|
||||||
|
|||||||
Reference in New Issue
Block a user