Verify What You Install
How Go checks the LogDrop Go module, and how to verify the signature of the Helm chart.
The LogDrop Go package is a Go module that Go downloads as source from its tagged release. Go itself checks that every download matches what everyone else gets. The Helm chart is signed by LogDrop with cosign.
Go module
Go records the hash of every module version in your go.sum and checks it against the public Go checksum database (sum.golang.org) the first time it downloads that version. A later download with different content fails, on your machine and in CI. Commit go.sum, and check it in CI with:
go mod verifyThe release tags are v0.1.0-alpha2 for github.com/initialcodess/LogDrop-Go-Agent and logdropredis/v0.1.0-alpha2, logdropkafka/v0.1.0-alpha2 and logdropamqp/v0.1.0-alpha2 for the separate modules, all on the same commit. A released version never changes: a fix comes as a new version.
The module is public, so it needs no private settings. Keep GOSUMDB on, and do not list github.com/initialcodess in GOPRIVATE, GONOSUMDB or GOINSECURE: the checksum database then keeps checking it, also through a private Go proxy.
Chart
Checking the chart's signature shows that the chart you install is the one LogDrop published, unchanged. The chart's signature is not recorded in the public Rekor transparency log, so verification is a check against LogDrop's public key:
curl -fsSLO https://artifactory.logdrop.io/repository/logdrop-public/keys/cosign.pub
cosign verify --key cosign.pub --insecure-ignore-tlog=true registry.logdrop.io/charts/logdrop-infrastructure:0.1.1-alpha15--insecure-ignore-tlog=true tells cosign not to look for a transparency log entry, because there is none. The signature is still checked against the key, and cosign prints a warning about the missing log entry.
Go pods use no agent image: the chart only adds settings and the key mount to them. The other images the chart uses are listed on the verify pages of the Java, Node.js, Python and .NET agents.
.png)