Kong produces build provenance for Insomnia Application binary artifacts, which can be verified using cosign
/ slsa-verifier
.
This guide provides steps to verify build provenance for signed Insomnia Application binary artifacts in two different ways:
For the minimal example, you only need a compressed binary file(s) and provenance file.
For the complete example, you need the same details as the minimal example, as well as any of the optional annotations you wish to verify:
Shorthand | Description | Example Value |
---|---|---|
<repo> |
GitHub repository | insomnia |
version |
Artifact version to download | 9.3.0 |
<binary-files> |
Single / Space separated isnomnia binary files | Insomnia.Core-9.3.0.{snap,tar.gz,zip,rpm,dmg,deb,exe,AppImage} |
<provenance-file> |
Binary provenance file | inso-provenance.intoto.jsonl |
Because Kong uses GitHub Actions to build and release, Kong also uses GitHub’s OIDC identity to generate build provenance for binary artifacts, which is why many of these details are GitHub-related.
For both examples, you need to:
Ensure slsa-verifier
is installed.
Download Insomnia Core Application Binaries with file pattern Insomnia.Core-<version>.{snap,tar.gz,zip,rpm,dmg,deb,exe,AppImage}
Download Insomnia Binary Provenance Attestation with pattern insomnia-provenance.intoto.jsonl
The GitHub owner is case-sensitive (
Kong/insomnia
vskong/insomnia
).
Run the slsa-verifier verify-artifact...
command:
slsa-verifier verify-artifact \
--print-provenance \
--provenance-path '<provenance-file>' \
--source-uri 'github.com/Kong/<repo>' \
<binary-files>
Here’s the same example using sample values instead of placeholders:
slsa-verifier verify-artifact \
--print-provenance \
--provenance-path 'insomnia-provenance.intoto.jsonl' \
--source-uri 'github.com/Kong/insomnia' \
Insomnia.Core-9.3.0.{snap,tar.gz,zip,rpm,dmg,deb,AppImage,exe}
The command will print “Verified SLSA provenance” if successful:
...
PASSED: Verified SLSA provenance
Run the slsa-verifier verify-artifact ...
command:
slsa-verifier verify-artifact \
--print-provenance \
--provenance-path '<provenance-file>' \
--source-uri 'github.com/Kong/<repo>' \
--build-workflow-input 'version=9.3.0' \
<binary-files>
Here’s the same example using sample values instead of placeholders:
slsa-verifier verify-artifact \
--print-provenance \
--provenance-path 'insomnia-provenance.intoto.jsonl' \
--source-uri 'github.com/Kong/insomnia' \
--build-workflow-input 'version=9.3.0' \
Insomnia.Core-9.3.0.{snap,tar.gz,zip,rpm,dmg,deb,AppImage,exe}