Skip to content

Commit 58c9a8b

Browse files
committed
docs: Added steps to verify files
1 parent 94c5a12 commit 58c9a8b

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,44 @@ You can expect that Gruntwork will take any report of a security vulnerability s
1717
## Thank you
1818

1919
We appreciate your help in making Terragrunt more secure. Thank you for your efforts in responsibly disclosing security issues, and for your patience as we work to address them.
20+
21+
## Verifying Release Signatures
22+
23+
All Terragrunt releases are signed with both GPG and Cosign. You can verify the authenticity of downloaded binaries using either method.
24+
25+
### Download Verification Files
26+
27+
```bash
28+
VERSION="v0.XX.X" # Replace with actual version
29+
curl -LO "https://github.com/gruntwork-io/terragrunt/releases/download/${VERSION}/SHA256SUMS"
30+
curl -LO "https://github.com/gruntwork-io/terragrunt/releases/download/${VERSION}/SHA256SUMS.gpgsig"
31+
curl -LO "https://github.com/gruntwork-io/terragrunt/releases/download/${VERSION}/SHA256SUMS.sig"
32+
curl -LO "https://github.com/gruntwork-io/terragrunt/releases/download/${VERSION}/SHA256SUMS.pem"
33+
```
34+
35+
### GPG Verification
36+
37+
```bash
38+
# Import the public key (first time only)
39+
curl -s https://gruntwork.io/.well-known/pgp-key.txt | gpg --import
40+
41+
# Verify the signature
42+
gpg --verify SHA256SUMS.gpgsig SHA256SUMS
43+
44+
# Verify binary checksum
45+
sha256sum -c SHA256SUMS --ignore-missing
46+
```
47+
48+
### Cosign Verification
49+
50+
```bash
51+
# Install cosign: https://docs.sigstore.dev/cosign/system_config/installation/
52+
cosign verify-blob SHA256SUMS \
53+
--signature SHA256SUMS.sig \
54+
--certificate SHA256SUMS.pem \
55+
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
56+
--certificate-identity-regexp "github.com/gruntwork-io/terragrunt"
57+
58+
# Verify binary checksum
59+
sha256sum -c SHA256SUMS --ignore-missing
60+
```

0 commit comments

Comments
 (0)