-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added documentation on how to verify signatures (#1616)
* Added documentation on how to verify signatures Signed-off-by: Corbin Phelps <corbin.phelps@observiq.com> * Removed extra letter Signed-off-by: Corbin Phelps <corbin.phelps@observiq.com> * PR feedback Signed-off-by: Corbin Phelps <corbin.phelps@observiq.com> --------- Signed-off-by: Corbin Phelps <corbin.phelps@observiq.com>
- Loading branch information
Corbin Phelps
authored
Apr 9, 2024
1 parent
e01ddd1
commit c7b988f
Showing
6 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Verifying Artifact Signatures | ||
|
||
Each release artifact has been signed with a ECDSA-P256 key. The public key is available in the repository at [here](../signature/bp_agent_key.pub) and can be used to verify the signature of the artifact. | ||
|
||
In order to verify the signature of an artifact, you will need to install [cosign](https://github.com/sigstore/cosign). This can be done by getting the release artifacts from the [cosign releases page](https://github.com/sigstore/cosign/releases/tag/v1.13.1) or by using the following command if you have Go installed: | ||
|
||
```bash | ||
go install github.com/sigstore/cosign/cmd/cosign@v1.13.1 | ||
``` | ||
|
||
Once you have cosign installed, you can verify the signature of an artifact by running the following command: | ||
|
||
```bash | ||
cosign verify-blob --key ./signature/bp_agent_key.pub --signature <PATH_TO_SIG> <PATH_TO_ARTIFACT> | ||
``` | ||
|
||
## Example | ||
|
||
Heres an example of verifying the signature of an agent binary: | ||
|
||
```bash | ||
cosign verify-blob --key ./signature/bp_agent_key.pub --signature observiq-otel-collector-v1.47.1-darwin-amd64.tar.gz.sig observiq-otel-collector-v1.47.1-darwin-amd64.tar.gz | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOMhlQ5gZi9v5UUhW/Cx/zEv1tL9x | ||
TJwrvzwDucjvrd+aUUmGn6ojUWz88seu5alDANvq7b/NsqYlB4sXMgIAMQ== | ||
-----END PUBLIC KEY----- |