NetApp / harvest

Open-metrics endpoint for ONTAP and StorageGRID
https://netapp.github.io/harvest/latest
Apache License 2.0
147 stars 36 forks source link

Harvest should provide a FIPS compliant image #3082

Closed cgrinds closed 3 weeks ago

cgrinds commented 1 month ago

Use boringcrypto

cgrinds commented 1 month ago

https://kupczynski.info/posts/fips-golang/

Cross Compile with Zig

zig targets | jq .libc

CC="zig cc -target x86_64-linux-gnu" GOOS=linux GOARCH=amd64 CGO_ENABLED=1 GOEXPERIMENT=boringcrypto go build -trimpath -o bin -ldflags="-X 'github.com/netapp/harvest/v2/cmd/harvest/version.VERSION=24.07.30' -X 'github.com/netapp/harvest/v2/cmd/harvest/version.Release=1' -X 'github.com/netapp/harvest/v2/cmd/harvest/version.Commit=e896fa7a' -X 'github.com/netapp/harvest/v2/cmd/harvest/version.BuildDate=`date +%FT%T%z`'" ./cmd/harvest ./cmd/poller